Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_Buildings.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/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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(Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance") translateModel(Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.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.001372/0.001372, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001587/0.001588, allocations: 192.3 kB / 16.25 MB, free: 6.617 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.322/1.322, allocations: 222.9 MB / 239.9 MB, free: 4.551 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.689/2.689, allocations: 472.6 MB / 0.7448 GB, free: 4.945 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001339/0.001339, allocations: 65.53 kB / 0.9115 GB, free: 33.5 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3306/0.332, allocations: 159.9 MB / 1.068 GB, free: 10.85 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance): time 0.005502/0.3375, allocations: 3.79 MB / 1.071 GB, free: 7.043 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.00267/0.3402, allocations: 1.785 MB / 1.073 GB, free: 5.25 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001878/0.3404, allocations: 15.88 kB / 1.073 GB, free: 5.234 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0008347/0.3413, allocations: 243 kB / 1.073 GB, free: 4.996 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0005679/0.3418, allocations: 274.8 kB / 1.074 GB, free: 4.727 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005368/0.3424, allocations: 230.7 kB / 1.074 GB, free: 4.504 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0007104/0.3431, allocations: 0.6087 MB / 1.074 GB, free: 3.895 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004886/0.3436, allocations: 278.5 kB / 1.075 GB, free: 3.617 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000409/0.344, allocations: 239 kB / 1.075 GB, free: 3.383 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003608/0.3444, allocations: 239 kB / 1.075 GB, free: 3.148 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.277e-05/0.3445, allocations: 24 kB / 1.075 GB, free: 3.125 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004067/0.3449, allocations: 279.4 kB / 1.075 GB, free: 2.852 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001349/0.345, allocations: 119.6 kB / 1.076 GB, free: 2.734 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001992/0.3452, allocations: 206.8 kB / 1.076 GB, free: 2.531 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0006175/0.3458, allocations: 0.6037 MB / 1.076 GB, free: 1.926 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 7.565e-06/0.3459, allocations: 4 kB / 1.076 GB, free: 1.922 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.414e-06/0.3459, allocations: 0 / 1.076 GB, free: 1.922 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 9.137e-06/0.3459, allocations: 3.938 kB / 1.076 GB, free: 1.918 MB / 0.8262 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.001181/0.3471, allocations: 0.7362 MB / 1.077 GB, free: 1.133 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.392e-05/0.3471, allocations: 12.03 kB / 1.077 GB, free: 1.121 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008567/0.348, allocations: 132.2 kB / 1.077 GB, free: 0.9922 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004795/0.3485, allocations: 379.7 kB / 1.078 GB, free: 0.582 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.348e-05/0.3485, allocations: 21.03 kB / 1.078 GB, free: 0.5625 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.349e-05/0.3486, allocations: 32.36 kB / 1.078 GB, free: 0.5312 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008506/0.3494, allocations: 0.551 MB / 1.078 GB, free: 15.91 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.119e-05/0.3495, allocations: 8 kB / 1.078 GB, free: 15.9 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.827e-05/0.3495, allocations: 15.94 kB / 1.078 GB, free: 15.89 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.363e-05/0.3496, allocations: 44.53 kB / 1.078 GB, free: 15.84 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007356/0.3503, allocations: 409.7 kB / 1.079 GB, free: 15.44 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002995/0.3533, allocations: 3.337 MB / 1.082 GB, free: 11.86 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006778/0.354, allocations: 331.2 kB / 1.082 GB, free: 11.52 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002838/0.3543, allocations: 172.8 kB / 1.082 GB, free: 11.35 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.939e-05/0.3544, allocations: 3.984 kB / 1.082 GB, free: 11.35 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.988e-05/0.3544, allocations: 46.5 kB / 1.082 GB, free: 11.29 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=26): time 1.472e-06/0.3544, allocations: 3.938 kB / 1.082 GB, free: 11.29 MB / 0.8419 GB Notification: Performance of matching and sorting (n=27): time 0.002063/0.3565, allocations: 1.065 MB / 1.083 GB, free: 10.15 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.745e-05/0.3565, allocations: 55.64 kB / 1.084 GB, free: 10.09 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003318/0.3569, allocations: 337.6 kB / 1.084 GB, free: 9.75 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.802e-05/0.3569, allocations: 29.7 kB / 1.084 GB, free: 9.715 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001645/0.3571, allocations: 251.4 kB / 1.084 GB, free: 9.465 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 7.436e-05/0.3572, allocations: 90.73 kB / 1.084 GB, free: 9.375 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001158/0.3573, allocations: 86.03 kB / 1.084 GB, free: 9.285 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001834/0.3575, allocations: 342.8 kB / 1.085 GB, free: 8.941 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002764/0.3578, allocations: 148.8 kB / 1.085 GB, free: 8.793 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004068/0.3582, allocations: 294.5 kB / 1.085 GB, free: 8.441 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006313/0.3588, allocations: 478.3 kB / 1.085 GB, free: 7.91 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.3588, allocations: 0 / 1.085 GB, free: 7.91 MB / 0.8419 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0009112/0.3598, allocations: 0.5656 MB / 1.086 GB, free: 7.328 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.269e-05/0.3598, allocations: 9.875 kB / 1.086 GB, free: 7.32 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.258e-06/0.3598, allocations: 4.625 kB / 1.086 GB, free: 7.316 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003037/0.3601, allocations: 98.44 kB / 1.086 GB, free: 7.211 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003202/0.3604, allocations: 83.88 kB / 1.086 GB, free: 7.129 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.468e-05/0.3605, allocations: 11.94 kB / 1.086 GB, free: 7.117 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002469/0.3607, allocations: 31.91 kB / 1.086 GB, free: 7.086 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.116e-05/0.3608, allocations: 20 kB / 1.086 GB, free: 7.066 MB / 0.8419 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.0001919/0.361, allocations: 180.5 kB / 1.086 GB, free: 6.883 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.095e-05/0.361, allocations: 39.53 kB / 1.086 GB, free: 6.844 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009533/0.362, allocations: 464 kB / 1.087 GB, free: 6.371 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.911e-06/0.362, allocations: 4 kB / 1.087 GB, free: 6.367 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.163e-06/0.362, allocations: 0 / 1.087 GB, free: 6.367 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.329e-06/0.362, allocations: 4 kB / 1.087 GB, free: 6.363 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001503/0.3636, allocations: 0.964 MB / 1.088 GB, free: 5.328 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.3636, allocations: 0 / 1.088 GB, free: 5.328 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002263/0.3638, allocations: 48.05 kB / 1.088 GB, free: 5.281 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002378/0.364, allocations: 90.45 kB / 1.088 GB, free: 5.184 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.063e-05/0.3641, allocations: 4 kB / 1.088 GB, free: 5.18 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.099e-06/0.3641, allocations: 4 kB / 1.088 GB, free: 5.176 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/0.3641, allocations: 3.984 kB / 1.088 GB, free: 5.172 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008032/0.3649, allocations: 0.5389 MB / 1.089 GB, free: 4.598 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002255/0.3651, allocations: 140.6 kB / 1.089 GB, free: 4.441 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.413e-05/0.3652, allocations: 15.94 kB / 1.089 GB, free: 4.426 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002106/0.3654, allocations: 23.97 kB / 1.089 GB, free: 4.402 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.213e-05/0.3655, allocations: 23.91 kB / 1.089 GB, free: 4.379 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.612e-05/0.3655, allocations: 8 kB / 1.089 GB, free: 4.371 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0002536/0.3658, allocations: 235.2 kB / 1.089 GB, free: 4.145 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.894e-06/0.3658, allocations: 0 / 1.089 GB, free: 4.145 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0004375/0.3662, allocations: 87.94 kB / 1.089 GB, free: 4.059 MB / 0.8419 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.0001356/0.3664, allocations: 107.2 kB / 1.089 GB, free: 3.941 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0009079/0.3673, allocations: 0.6633 MB / 1.09 GB, free: 3.215 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.3673, allocations: 0 / 1.09 GB, free: 3.215 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0004039/0.3677, allocations: 433.8 kB / 1.09 GB, free: 2.727 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006944/0.3684, allocations: 135.3 kB / 1.09 GB, free: 2.59 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001203/0.3696, allocations: 0.8734 MB / 1.091 GB, free: 1.68 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004333/0.3701, allocations: 0.8234 MB / 1.092 GB, free: 0.832 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0002413/0.3703, allocations: 83.3 kB / 1.092 GB, free: 0.75 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.888e-05/0.3704, allocations: 31.44 kB / 1.092 GB, free: 0.7188 MB / 0.8419 GB Notification: Performance of SimCode: time 6.21e-07/0.3704, allocations: 0 / 1.092 GB, free: 0.7188 MB / 0.8419 GB Notification: Performance of Templates: time 0.00978/0.3802, allocations: 4.686 MB / 1.097 GB, free: 12.09 MB / 0.8575 GB make -j1 -f Buildings_1.6_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.makefile (rm -f Buildings_1.6_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe ; mkfifo Buildings_1.6_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe >> ../files/Buildings_1.6_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.sim & ./Buildings_1.6_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe 2>&1)