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.001174/0.001175, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001292/0.001291, allocations: 194 kB / 16.14 MB, free: 6.688 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.382/1.382, allocations: 222.9 MB / 239.8 MB, free: 4.582 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.755/2.755, allocations: 472.6 MB / 0.7447 GB, free: 4.934 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001232/0.001232, allocations: 61.02 kB / 0.9114 GB, free: 33.67 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3349/0.3362, allocations: 159.9 MB / 1.068 GB, free: 10.86 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance): time 0.005096/0.3414, allocations: 3.779 MB / 1.071 GB, free: 7.062 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002819/0.3442, allocations: 1.809 MB / 1.073 GB, free: 5.246 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001846/0.3444, allocations: 15.88 kB / 1.073 GB, free: 5.23 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0007861/0.3452, allocations: 239 kB / 1.073 GB, free: 4.996 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0005481/0.3458, allocations: 274.7 kB / 1.073 GB, free: 4.727 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005306/0.3463, allocations: 238.9 kB / 1.074 GB, free: 4.496 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0006263/0.347, allocations: 0.7413 MB / 1.074 GB, free: 3.754 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004503/0.3474, allocations: 245.9 kB / 1.075 GB, free: 3.508 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002692/0.3477, allocations: 207.1 kB / 1.075 GB, free: 3.305 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002694/0.348, allocations: 242.9 kB / 1.075 GB, free: 3.066 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.087e-05/0.348, allocations: 20 kB / 1.075 GB, free: 3.047 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004906/0.3485, allocations: 343.3 kB / 1.075 GB, free: 2.711 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001219/0.3487, allocations: 115.6 kB / 1.076 GB, free: 2.598 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001843/0.3489, allocations: 198.9 kB / 1.076 GB, free: 2.402 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0005942/0.3495, allocations: 0.5881 MB / 1.076 GB, free: 1.812 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.3495, allocations: 4 kB / 1.076 GB, free: 1.809 MB / 0.8262 GB Notification: Performance of FrontEnd: time 9.62e-07/0.3495, allocations: 0 / 1.076 GB, free: 1.809 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.623e-06/0.3495, allocations: 0 / 1.076 GB, free: 1.809 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.001122/0.3506, allocations: 0.7379 MB / 1.077 GB, free: 1.023 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.638e-05/0.3507, allocations: 12.03 kB / 1.077 GB, free: 1.012 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008566/0.3515, allocations: 136.2 kB / 1.077 GB, free: 0.8789 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004705/0.352, allocations: 371.7 kB / 1.078 GB, free: 492 kB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.508e-05/0.352, allocations: 25.03 kB / 1.078 GB, free: 464 kB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.856e-05/0.3521, allocations: 32.36 kB / 1.078 GB, free: 432 kB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007841/0.3529, allocations: 0.5471 MB / 1.078 GB, free: 15.8 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.977e-05/0.3529, allocations: 15.94 kB / 1.078 GB, free: 15.79 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.761e-05/0.353, allocations: 15.98 kB / 1.078 GB, free: 15.77 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.904e-05/0.353, allocations: 40.53 kB / 1.078 GB, free: 15.73 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006736/0.3537, allocations: 409.7 kB / 1.079 GB, free: 15.33 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002718/0.3564, allocations: 3.333 MB / 1.082 GB, free: 11.75 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006597/0.3571, allocations: 334.5 kB / 1.082 GB, free: 11.41 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002896/0.3574, allocations: 176.8 kB / 1.082 GB, free: 11.24 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.549e-05/0.3575, allocations: 0 / 1.082 GB, free: 11.24 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.657e-05/0.3575, allocations: 42.56 kB / 1.082 GB, free: 11.19 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=26): time 1.252e-06/0.3575, allocations: 0 / 1.082 GB, free: 11.19 MB / 0.8419 GB Notification: Performance of matching and sorting (n=27): time 0.00212/0.3596, allocations: 1.073 MB / 1.083 GB, free: 10.04 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.891e-05/0.3597, allocations: 55.64 kB / 1.083 GB, free: 9.977 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003251/0.36, allocations: 333.6 kB / 1.084 GB, free: 9.645 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.473e-05/0.36, allocations: 29.7 kB / 1.084 GB, free: 9.609 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001607/0.3602, allocations: 251.4 kB / 1.084 GB, free: 9.359 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 7.655e-05/0.3603, allocations: 94.73 kB / 1.084 GB, free: 9.266 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001136/0.3604, allocations: 78.05 kB / 1.084 GB, free: 9.184 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0002382/0.3607, allocations: 346.8 kB / 1.085 GB, free: 8.836 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002839/0.3609, allocations: 144.8 kB / 1.085 GB, free: 8.691 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003601/0.3613, allocations: 294.5 kB / 1.085 GB, free: 8.34 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006393/0.362, allocations: 482.3 kB / 1.085 GB, free: 7.805 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.362, allocations: 0 / 1.085 GB, free: 7.805 MB / 0.8419 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0009497/0.3629, allocations: 0.5695 MB / 1.086 GB, free: 7.219 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.108e-05/0.363, allocations: 8 kB / 1.086 GB, free: 7.211 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.919e-06/0.363, allocations: 4 kB / 1.086 GB, free: 7.207 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003359/0.3633, allocations: 91.08 kB / 1.086 GB, free: 7.109 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003479/0.3637, allocations: 91.81 kB / 1.086 GB, free: 7.02 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.722e-05/0.3637, allocations: 11.98 kB / 1.086 GB, free: 7.008 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002473/0.364, allocations: 23.92 kB / 1.086 GB, free: 6.984 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.402e-05/0.364, allocations: 23.98 kB / 1.086 GB, free: 6.961 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.0001871/0.3642, allocations: 173.6 kB / 1.086 GB, free: 6.781 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.617e-05/0.3643, allocations: 43.53 kB / 1.086 GB, free: 6.738 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000859/0.3651, allocations: 460 kB / 1.087 GB, free: 6.27 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.801e-06/0.3651, allocations: 4 kB / 1.087 GB, free: 6.266 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.005e-06/0.3652, allocations: 0 / 1.087 GB, free: 6.266 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.252e-06/0.3652, allocations: 7.922 kB / 1.087 GB, free: 6.258 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001397/0.3666, allocations: 0.9684 MB / 1.088 GB, free: 5.215 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.3666, allocations: 0 / 1.088 GB, free: 5.215 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002324/0.3668, allocations: 47.91 kB / 1.088 GB, free: 5.168 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000237/0.3671, allocations: 86.59 kB / 1.088 GB, free: 5.074 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.152e-05/0.3671, allocations: 7.984 kB / 1.088 GB, free: 5.066 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.222e-06/0.3671, allocations: 7.938 kB / 1.088 GB, free: 5.059 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.3671, allocations: 0 / 1.088 GB, free: 5.059 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008388/0.368, allocations: 0.5499 MB / 1.089 GB, free: 4.477 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001373/0.3681, allocations: 132.6 kB / 1.089 GB, free: 4.328 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.556e-05/0.3682, allocations: 8 kB / 1.089 GB, free: 4.32 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002236/0.3684, allocations: 19.97 kB / 1.089 GB, free: 4.301 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.84e-05/0.3685, allocations: 31.91 kB / 1.089 GB, free: 4.27 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.542e-05/0.3685, allocations: 4 kB / 1.089 GB, free: 4.266 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0002173/0.3687, allocations: 239.2 kB / 1.089 GB, free: 4.035 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3687, allocations: 0 / 1.089 GB, free: 4.035 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0004128/0.3692, allocations: 88 kB / 1.089 GB, free: 3.949 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.0001507/0.3693, allocations: 107.2 kB / 1.089 GB, free: 3.832 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0009012/0.3702, allocations: 0.6243 MB / 1.09 GB, free: 3.145 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.3702, allocations: 0 / 1.09 GB, free: 3.145 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0004724/0.3707, allocations: 437.8 kB / 1.09 GB, free: 2.652 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000707/0.3714, allocations: 125.4 kB / 1.09 GB, free: 2.523 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001212/0.3727, allocations: 0.8805 MB / 1.091 GB, free: 1.609 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003663/0.373, allocations: 0.8237 MB / 1.092 GB, free: 0.7617 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0002376/0.3733, allocations: 83.34 kB / 1.092 GB, free: 0.6797 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.86e-05/0.3734, allocations: 31.42 kB / 1.092 GB, free: 0.6484 MB / 0.8419 GB Notification: Performance of SimCode: time 2.31e-07/0.3734, allocations: 0 / 1.092 GB, free: 0.6484 MB / 0.8419 GB Notification: Performance of Templates: time 0.008644/0.382, allocations: 4.474 MB / 1.096 GB, free: 12.23 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)