Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance") translateModel(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001223/0.001223, allocations: 110.3 kB / 15.99 MB, free: 6.352 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00127/0.00127, allocations: 199.5 kB / 16.91 MB, free: 6.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.383/1.383, allocations: 222.9 MB / 240.6 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002467/0.002467, allocations: 289.1 kB / 291 MB, free: 14.73 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.25/1.25, allocations: 178.5 MB / 0.5076 GB, free: 12.74 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002671/0.002671, allocations: 95.84 kB / 0.6066 GB, free: 9.719 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.183/0.1856, allocations: 89.13 MB / 0.6936 GB, free: 0.5 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance): time 0.005257/0.1909, allocations: 3.785 MB / 0.6973 GB, free: 12.69 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.00281/0.1938, allocations: 1.777 MB / 0.6991 GB, free: 10.9 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001683/0.194, allocations: 11.94 kB / 0.6991 GB, free: 10.89 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0007777/0.1948, allocations: 247 kB / 0.6993 GB, free: 10.65 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0005844/0.1954, allocations: 282.7 kB / 0.6996 GB, free: 10.37 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005238/0.1959, allocations: 226.3 kB / 0.6998 GB, free: 10.15 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.000641/0.1965, allocations: 0.6049 MB / 0.7004 GB, free: 9.547 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004722/0.197, allocations: 282.8 kB / 0.7007 GB, free: 9.27 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003123/0.1974, allocations: 235 kB / 0.7009 GB, free: 9.039 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003046/0.1977, allocations: 247 kB / 0.7011 GB, free: 8.797 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 4.423e-05/0.1977, allocations: 28 kB / 0.7011 GB, free: 8.77 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004116/0.1981, allocations: 267.4 kB / 0.7014 GB, free: 8.508 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.000127/0.1983, allocations: 123.6 kB / 0.7015 GB, free: 8.387 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0001997/0.1985, allocations: 206.9 kB / 0.7017 GB, free: 8.184 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0004905/0.199, allocations: 458.9 kB / 0.7022 GB, free: 7.734 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.199, allocations: 0 / 0.7022 GB, free: 7.734 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.423e-06/0.199, allocations: 0 / 0.7022 GB, free: 7.734 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.051e-05/0.199, allocations: 4 kB / 0.7022 GB, free: 7.73 MB / 0.545 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.001134/0.2002, allocations: 0.7322 MB / 0.7029 GB, free: 6.945 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.473e-05/0.2002, allocations: 12.03 kB / 0.7029 GB, free: 6.934 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008514/0.2011, allocations: 132.2 kB / 0.703 GB, free: 6.805 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004852/0.2015, allocations: 375.7 kB / 0.7034 GB, free: 6.395 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.054e-05/0.2016, allocations: 28.95 kB / 0.7034 GB, free: 6.367 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.739e-05/0.2016, allocations: 28.38 kB / 0.7034 GB, free: 6.34 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000826/0.2025, allocations: 0.5555 MB / 0.704 GB, free: 5.715 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.538e-05/0.2025, allocations: 0 / 0.704 GB, free: 5.715 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.123e-05/0.2025, allocations: 19.98 kB / 0.704 GB, free: 5.695 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.062e-05/0.2026, allocations: 40.53 kB / 0.704 GB, free: 5.656 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007069/0.2033, allocations: 413.7 kB / 0.7044 GB, free: 5.254 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003165/0.2065, allocations: 3.334 MB / 0.7077 GB, free: 1.668 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007265/0.2072, allocations: 345.8 kB / 0.708 GB, free: 1.324 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003172/0.2076, allocations: 180.7 kB / 0.7082 GB, free: 1.145 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 2.528e-05/0.2076, allocations: 0 / 0.7082 GB, free: 1.145 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.758e-05/0.2076, allocations: 42.5 kB / 0.7082 GB, free: 1.094 MB / 0.545 GB Notification: Performance of pre-optimization done (n=26): time 1.343e-06/0.2077, allocations: 0 / 0.7082 GB, free: 1.094 MB / 0.545 GB Notification: Performance of matching and sorting (n=27): time 0.3151/0.5227, allocations: 1.047 MB / 0.7092 GB, free: 50.43 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.236e-05/0.5228, allocations: 55.05 kB / 0.7093 GB, free: 50.37 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004126/0.5232, allocations: 339.2 kB / 0.7096 GB, free: 50.27 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 4.87e-05/0.5233, allocations: 31.86 kB / 0.7096 GB, free: 50.23 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001403/0.5234, allocations: 244.6 kB / 0.7099 GB, free: 50.15 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001035/0.5235, allocations: 95.64 kB / 0.71 GB, free: 50.13 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001338/0.5237, allocations: 75.08 kB / 0.71 GB, free: 50.11 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 7.669e-05/0.5238, allocations: 346.2 kB / 0.7104 GB, free: 49.8 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002867/0.5241, allocations: 150.9 kB / 0.7105 GB, free: 49.8 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003293/0.5244, allocations: 293.8 kB / 0.7108 GB, free: 49.63 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006152/0.525, allocations: 478.6 kB / 0.7112 GB, free: 49.46 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.212e-06/0.5251, allocations: 6.969 kB / 0.7113 GB, free: 49.46 MB / 0.545 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001057/0.5261, allocations: 0.5629 MB / 0.7118 GB, free: 49.38 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 2.521e-05/0.5262, allocations: 6.812 kB / 0.7118 GB, free: 49.38 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.414e-05/0.5262, allocations: 4.938 kB / 0.7118 GB, free: 49.38 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003264/0.5265, allocations: 95.5 kB / 0.7119 GB, free: 49.36 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003509/0.5269, allocations: 88.84 kB / 0.712 GB, free: 49.36 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.724e-05/0.5269, allocations: 10.44 kB / 0.712 GB, free: 49.36 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003155/0.5272, allocations: 32.48 kB / 0.712 GB, free: 49.36 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.386e-05/0.5273, allocations: 19.81 kB / 0.7121 GB, free: 49.36 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 3 systems {(2,100.0%), (2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000171/0.5274, allocations: 170 kB / 0.7122 GB, free: 49.24 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.524e-05/0.5275, allocations: 39.56 kB / 0.7123 GB, free: 49.22 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008342/0.5284, allocations: 465.4 kB / 0.7127 GB, free: 49.15 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.621e-06/0.5284, allocations: 2.938 kB / 0.7127 GB, free: 49.15 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.895e-06/0.5284, allocations: 5.703 kB / 0.7127 GB, free: 49.15 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.45e-06/0.5284, allocations: 1.453 kB / 0.7127 GB, free: 49.15 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001257/0.5297, allocations: 0.9642 MB / 0.7136 GB, free: 48.77 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.129e-06/0.5297, allocations: 3.641 kB / 0.7136 GB, free: 48.77 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00022/0.5299, allocations: 50.52 kB / 0.7137 GB, free: 48.77 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002014/0.5301, allocations: 88.09 kB / 0.7138 GB, free: 48.73 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.263e-05/0.5301, allocations: 6.969 kB / 0.7138 GB, free: 48.72 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.387e-06/0.5302, allocations: 3.062 kB / 0.7138 GB, free: 48.72 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.5302, allocations: 2.812 kB / 0.7138 GB, free: 48.72 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000673/0.5308, allocations: 0.5451 MB / 0.7143 GB, free: 48.42 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001266/0.531, allocations: 142.8 kB / 0.7145 GB, free: 48.29 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.507e-05/0.531, allocations: 10.84 kB / 0.7145 GB, free: 48.29 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002229/0.5313, allocations: 21.66 kB / 0.7145 GB, free: 48.28 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.098e-05/0.5313, allocations: 24.11 kB / 0.7145 GB, free: 48.28 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.674e-05/0.5314, allocations: 11.31 kB / 0.7145 GB, free: 48.28 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001683/0.5315, allocations: 240.4 kB / 0.7148 GB, free: 48.15 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.91e-07/0.5315, allocations: 0 / 0.7148 GB, free: 48.15 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0004076/0.532, allocations: 85.5 kB / 0.7148 GB, free: 48.14 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 3 systems {(2,100.0%), (2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001134/0.5321, allocations: 103.3 kB / 0.7149 GB, free: 48.05 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0007853/0.5329, allocations: 0.6624 MB / 0.7156 GB, free: 47.62 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.786e-06/0.5329, allocations: 0 / 0.7156 GB, free: 47.62 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0003354/0.5332, allocations: 439.6 kB / 0.716 GB, free: 47.26 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007133/0.534, allocations: 124.2 kB / 0.7161 GB, free: 47.23 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001047/0.535, allocations: 0.9236 MB / 0.717 GB, free: 46.65 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002179/0.5352, allocations: 0.8282 MB / 0.7178 GB, free: 45.94 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001003/0.5354, allocations: 31.66 kB / 0.7179 GB, free: 45.93 MB / 0.545 GB Notification: Performance of SimCode: time 4.41e-07/0.5354, allocations: 0 / 0.7179 GB, free: 45.93 MB / 0.545 GB Notification: Performance of Templates: time 0.009801/0.5452, allocations: 9.44 MB / 0.7271 GB, free: 45.32 MB / 0.545 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.sim & ./BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe 2>&1)