Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.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.Sources.Examples.VariablePowerSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource") translateModel(Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001182/0.001182, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00132/0.001319, allocations: 193.6 kB / 16.53 MB, free: 6.391 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.385/1.385, allocations: 222.9 MB / 240.2 MB, free: 4.367 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.808/2.808, allocations: 472.6 MB / 0.7451 GB, free: 4.656 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001445/0.001445, allocations: 65.41 kB / 0.912 GB, free: 33.46 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3422/0.3436, allocations: 159.9 MB / 1.068 GB, free: 10.36 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource): time 0.004652/0.3483, allocations: 3.03 MB / 1.071 GB, free: 7.316 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002892/0.3512, allocations: 1.908 MB / 1.073 GB, free: 5.398 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001334/0.3514, allocations: 4 kB / 1.073 GB, free: 5.395 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0008091/0.3522, allocations: 239 kB / 1.073 GB, free: 5.16 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0005053/0.3528, allocations: 219 kB / 1.073 GB, free: 4.945 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005898/0.3534, allocations: 247.3 kB / 1.074 GB, free: 4.703 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0004994/0.3539, allocations: 390.5 kB / 1.074 GB, free: 4.32 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004213/0.3543, allocations: 209.8 kB / 1.074 GB, free: 4.117 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002729/0.3546, allocations: 159.5 kB / 1.074 GB, free: 3.961 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003525/0.3549, allocations: 183.3 kB / 1.075 GB, free: 3.781 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 6.16e-05/0.355, allocations: 28 kB / 1.075 GB, free: 3.754 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004804/0.3555, allocations: 287.5 kB / 1.075 GB, free: 3.473 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.000128/0.3556, allocations: 99.66 kB / 1.075 GB, free: 3.375 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001819/0.3558, allocations: 143.3 kB / 1.075 GB, free: 3.234 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0006264/0.3565, allocations: 490.8 kB / 1.076 GB, free: 2.754 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.3565, allocations: 7.938 kB / 1.076 GB, free: 2.746 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.443e-06/0.3565, allocations: 0 / 1.076 GB, free: 2.746 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.214e-05/0.3565, allocations: 0 / 1.076 GB, free: 2.746 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: 57 * Number of variables: 57 Notification: Performance of Generate backend data structure: time 0.001255/0.3578, allocations: 0.6331 MB / 1.076 GB, free: 2.059 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.534e-05/0.3578, allocations: 8.031 kB / 1.076 GB, free: 2.051 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009712/0.3588, allocations: 132.4 kB / 1.076 GB, free: 1.922 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003645/0.3592, allocations: 273.6 kB / 1.077 GB, free: 1.617 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.914e-05/0.3592, allocations: 16.8 kB / 1.077 GB, free: 1.602 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.071e-05/0.3593, allocations: 20.38 kB / 1.077 GB, free: 1.582 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008547/0.3601, allocations: 430.8 kB / 1.077 GB, free: 1.133 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.612e-05/0.3601, allocations: 0 / 1.077 GB, free: 1.133 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.622e-05/0.3602, allocations: 4 kB / 1.077 GB, free: 1.129 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.711e-05/0.3602, allocations: 28.36 kB / 1.077 GB, free: 1.098 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009825/0.3612, allocations: 404.7 kB / 1.077 GB, free: 0.7031 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001992/0.3632, allocations: 1.626 MB / 1.079 GB, free: 14.95 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001292/0.3645, allocations: 477 kB / 1.08 GB, free: 14.46 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004697/0.365, allocations: 201.6 kB / 1.08 GB, free: 14.26 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001485/0.3652, allocations: 93.08 kB / 1.08 GB, free: 14.15 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005835/0.3658, allocations: 275.6 kB / 1.08 GB, free: 13.86 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=27): time 1.683e-06/0.3658, allocations: 0 / 1.08 GB, free: 13.86 MB / 0.8419 GB Notification: Performance of matching and sorting (n=28): time 0.002048/0.3678, allocations: 0.7578 MB / 1.081 GB, free: 13.08 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.262e-05/0.3679, allocations: 85.05 kB / 1.081 GB, free: 12.98 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00022/0.3681, allocations: 225 kB / 1.081 GB, free: 12.75 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 3.687e-05/0.3682, allocations: 29.89 kB / 1.081 GB, free: 12.71 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001155/0.3683, allocations: 168.3 kB / 1.081 GB, free: 12.54 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 9.06e-05/0.3684, allocations: 90.73 kB / 1.081 GB, free: 12.45 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001246/0.3685, allocations: 77.53 kB / 1.081 GB, free: 12.37 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001353/0.3687, allocations: 334.8 kB / 1.082 GB, free: 12.04 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004695/0.3692, allocations: 184.8 kB / 1.082 GB, free: 11.85 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005104/0.3697, allocations: 245.3 kB / 1.082 GB, free: 11.58 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009893/0.3707, allocations: 467.4 kB / 1.083 GB, free: 11.09 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.907e-06/0.3707, allocations: 0 / 1.083 GB, free: 11.09 MB / 0.8419 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001238/0.3719, allocations: 0.5437 MB / 1.083 GB, free: 10.53 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 4.066e-05/0.372, allocations: 37.73 kB / 1.083 GB, free: 10.49 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.036e-05/0.372, allocations: 4 kB / 1.083 GB, free: 10.48 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002612/0.3723, allocations: 44.81 kB / 1.083 GB, free: 10.44 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004271/0.3727, allocations: 79.86 kB / 1.083 GB, free: 10.36 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001553/0.3743, allocations: 1.619 MB / 1.085 GB, free: 8.598 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003615/0.3747, allocations: 51.72 kB / 1.085 GB, free: 8.547 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.699e-05/0.3747, allocations: 16 kB / 1.085 GB, free: 8.531 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005244/0.3752, allocations: 280.3 kB / 1.085 GB, free: 8.254 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004617/0.3757, allocations: 238.6 kB / 1.085 GB, free: 7.988 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000912/0.3766, allocations: 456.6 kB / 1.086 GB, free: 7.504 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.324e-06/0.3766, allocations: 0 / 1.086 GB, free: 7.504 MB / 0.8419 GB Notification: Performance of matching and sorting (n=39) (initialization_lambda0): time 0.001219/0.3779, allocations: 0.5228 MB / 1.086 GB, free: 6.965 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 3.305e-05/0.3779, allocations: 33.7 kB / 1.086 GB, free: 6.926 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.531e-06/0.3779, allocations: 4.281 kB / 1.086 GB, free: 6.922 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001548/0.3781, allocations: 44.81 kB / 1.086 GB, free: 6.875 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003836/0.3785, allocations: 83.81 kB / 1.087 GB, free: 6.793 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001352/0.3798, allocations: 1.611 MB / 1.088 GB, free: 5.031 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003383/0.3802, allocations: 51.86 kB / 1.088 GB, free: 4.98 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.823e-05/0.3802, allocations: 8.125 kB / 1.088 GB, free: 4.973 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 5 (load.count,$PRE.load.count,load.T_start,$PRE.load.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001627/0.3804, allocations: 204.7 kB / 1.088 GB, free: 4.766 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.6e-05/0.3805, allocations: 27.84 kB / 1.088 GB, free: 4.738 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001146/0.3816, allocations: 482.9 kB / 1.089 GB, free: 4.258 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.606e-06/0.3816, allocations: 0 / 1.089 GB, free: 4.258 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.497e-06/0.3816, allocations: 4 kB / 1.089 GB, free: 4.254 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.893e-06/0.3816, allocations: 3.984 kB / 1.089 GB, free: 4.25 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000677/0.3823, allocations: 0.5739 MB / 1.089 GB, free: 3.613 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.646e-06/0.3823, allocations: 3.938 kB / 1.089 GB, free: 3.609 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003691/0.3827, allocations: 75.95 kB / 1.09 GB, free: 3.535 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001219/0.3829, allocations: 40.77 kB / 1.09 GB, free: 3.492 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.84e-05/0.3829, allocations: 8 kB / 1.09 GB, free: 3.484 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001134/0.384, allocations: 1.523 MB / 1.091 GB, free: 1.816 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.395e-06/0.384, allocations: 0 / 1.091 GB, free: 1.816 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009858/0.385, allocations: 0.5418 MB / 1.092 GB, free: 1.246 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001374/0.3852, allocations: 132.7 kB / 1.092 GB, free: 1.098 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.959e-05/0.3852, allocations: 12 kB / 1.092 GB, free: 1.086 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003317/0.3856, allocations: 35.95 kB / 1.092 GB, free: 1.051 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001026/0.3857, allocations: 31.89 kB / 1.092 GB, free: 1.02 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.382e-05/0.3857, allocations: 12 kB / 1.092 GB, free: 1.008 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0002142/0.3859, allocations: 180.5 kB / 1.092 GB, free: 0.832 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2.31e-07/0.386, allocations: 0 / 1.092 GB, free: 0.832 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0006023/0.3866, allocations: 132 kB / 1.092 GB, free: 0.7031 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: 3 ($whenCondition1,load.T_start,load.count) * Number of discrete states: 1 (load.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001806/0.3868, allocations: 112.1 kB / 1.092 GB, free: 0.5859 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.002041/0.3888, allocations: 1.019 MB / 1.093 GB, free: 15.52 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 4.148e-06/0.3888, allocations: 0 / 1.093 GB, free: 15.52 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0006077/0.3894, allocations: 335.3 kB / 1.094 GB, free: 15.18 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000448/0.3899, allocations: 56.56 kB / 1.094 GB, free: 15.12 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001225/0.3911, allocations: 0.6042 MB / 1.094 GB, free: 14.48 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004171/0.3916, allocations: 0.7917 MB / 1.095 GB, free: 13.66 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0003504/0.3919, allocations: 102.2 kB / 1.095 GB, free: 13.57 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001076/0.392, allocations: 31.42 kB / 1.095 GB, free: 13.54 MB / 0.8575 GB Notification: Performance of SimCode: time 2.5e-07/0.392, allocations: 0 / 1.095 GB, free: 13.54 MB / 0.8575 GB Notification: Performance of Templates: time 0.01041/0.4025, allocations: 4.773 MB / 1.1 GB, free: 8.789 MB / 0.8575 GB make -j1 -f Buildings_1.6_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.makefile (rm -f Buildings_1.6_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; mkfifo Buildings_1.6_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe >> ../files/Buildings_1.6_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.sim & ./Buildings_1.6_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe 2>&1)