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.001095/0.001095, 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.001188/0.001188, allocations: 197.9 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.396/1.396, allocations: 222.9 MB / 239.8 MB, free: 4.613 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.873/2.873, allocations: 472.6 MB / 0.7447 GB, free: 4.949 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001217/0.001217, allocations: 60.27 kB / 0.9114 GB, free: 33.62 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3365/0.3378, allocations: 159.9 MB / 1.068 GB, free: 10.91 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource): time 0.005204/0.343, allocations: 3.074 MB / 1.071 GB, free: 7.816 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.003377/0.3464, allocations: 1.924 MB / 1.072 GB, free: 5.883 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002465/0.3467, allocations: 4 kB / 1.072 GB, free: 5.879 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0008416/0.3476, allocations: 219.2 kB / 1.073 GB, free: 5.664 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0006974/0.3483, allocations: 203.2 kB / 1.073 GB, free: 5.465 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006987/0.349, allocations: 223.5 kB / 1.073 GB, free: 5.246 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0006399/0.3496, allocations: 0.4944 MB / 1.074 GB, free: 4.75 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004793/0.3501, allocations: 209.8 kB / 1.074 GB, free: 4.547 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003268/0.3505, allocations: 139.5 kB / 1.074 GB, free: 4.41 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003983/0.3509, allocations: 187.3 kB / 1.074 GB, free: 4.227 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 5.818e-05/0.3509, allocations: 16 kB / 1.074 GB, free: 4.211 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006925/0.3516, allocations: 343.3 kB / 1.074 GB, free: 3.875 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001436/0.3518, allocations: 87.7 kB / 1.074 GB, free: 3.789 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001933/0.352, allocations: 135.3 kB / 1.075 GB, free: 3.656 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0007608/0.3528, allocations: 498.7 kB / 1.075 GB, free: 3.168 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.732e-06/0.3528, allocations: 0 / 1.075 GB, free: 3.168 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.022e-06/0.3528, allocations: 7.938 kB / 1.075 GB, free: 3.16 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.064e-05/0.3528, allocations: 0 / 1.075 GB, free: 3.16 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.001474/0.3543, allocations: 0.635 MB / 1.076 GB, free: 2.473 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.736e-05/0.3543, allocations: 8.031 kB / 1.076 GB, free: 2.465 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009904/0.3553, allocations: 124.4 kB / 1.076 GB, free: 2.344 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003765/0.3557, allocations: 277.6 kB / 1.076 GB, free: 2.035 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.566e-05/0.3558, allocations: 16.81 kB / 1.076 GB, free: 2.02 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.527e-05/0.3558, allocations: 24.36 kB / 1.076 GB, free: 1.996 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008711/0.3567, allocations: 426.9 kB / 1.077 GB, free: 1.551 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.47e-05/0.3567, allocations: 3.938 kB / 1.077 GB, free: 1.547 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.813e-05/0.3568, allocations: 7.984 kB / 1.077 GB, free: 1.539 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.496e-05/0.3568, allocations: 28.36 kB / 1.077 GB, free: 1.508 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00106/0.3579, allocations: 404.7 kB / 1.077 GB, free: 1.113 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001967/0.3599, allocations: 1.623 MB / 1.079 GB, free: 15.36 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001256/0.3611, allocations: 480 kB / 1.079 GB, free: 14.88 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004861/0.3616, allocations: 197.6 kB / 1.079 GB, free: 14.68 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000152/0.3618, allocations: 93.09 kB / 1.079 GB, free: 14.57 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005792/0.3624, allocations: 282.4 kB / 1.08 GB, free: 14.27 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=27): time 1.873e-06/0.3624, allocations: 0 / 1.08 GB, free: 14.27 MB / 0.8419 GB Notification: Performance of matching and sorting (n=28): time 0.001978/0.3644, allocations: 0.7655 MB / 1.08 GB, free: 13.48 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.954e-05/0.3644, allocations: 81.11 kB / 1.08 GB, free: 13.38 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002199/0.3647, allocations: 221 kB / 1.081 GB, free: 13.16 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 3.591e-05/0.3647, allocations: 33.7 kB / 1.081 GB, free: 13.12 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001129/0.3648, allocations: 168.5 kB / 1.081 GB, free: 12.95 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 8.578e-05/0.3649, allocations: 90.73 kB / 1.081 GB, free: 12.86 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001645/0.3651, allocations: 69.59 kB / 1.081 GB, free: 12.79 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001634/0.3653, allocations: 334.8 kB / 1.081 GB, free: 12.45 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004607/0.3657, allocations: 184.8 kB / 1.081 GB, free: 12.27 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004848/0.3662, allocations: 257.3 kB / 1.082 GB, free: 11.98 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009353/0.3672, allocations: 464.1 kB / 1.082 GB, free: 11.5 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.3672, allocations: 0 / 1.082 GB, free: 11.5 MB / 0.8419 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001306/0.3685, allocations: 0.5513 MB / 1.083 GB, free: 10.93 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 4.458e-05/0.3685, allocations: 33.98 kB / 1.083 GB, free: 10.89 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.327e-06/0.3686, allocations: 8 kB / 1.083 GB, free: 10.88 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002477/0.3688, allocations: 40.81 kB / 1.083 GB, free: 10.84 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004369/0.3693, allocations: 87.86 kB / 1.083 GB, free: 10.75 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001483/0.3708, allocations: 1.497 MB / 1.084 GB, free: 9.121 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003787/0.3711, allocations: 47.78 kB / 1.084 GB, free: 9.074 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.049e-05/0.3712, allocations: 16 kB / 1.084 GB, free: 9.059 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005247/0.3717, allocations: 280.4 kB / 1.085 GB, free: 8.781 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004667/0.3722, allocations: 246.5 kB / 1.085 GB, free: 8.508 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008977/0.3731, allocations: 446.8 kB / 1.085 GB, free: 8.031 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.617e-06/0.3731, allocations: 0 / 1.085 GB, free: 8.031 MB / 0.8419 GB Notification: Performance of matching and sorting (n=39) (initialization_lambda0): time 0.001178/0.3743, allocations: 0.5166 MB / 1.086 GB, free: 7.5 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 3.626e-05/0.3744, allocations: 33.7 kB / 1.086 GB, free: 7.461 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.532e-06/0.3744, allocations: 3.938 kB / 1.086 GB, free: 7.457 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001461/0.3745, allocations: 48.81 kB / 1.086 GB, free: 7.406 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000377/0.3749, allocations: 80.03 kB / 1.086 GB, free: 7.328 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001403/0.3763, allocations: 1.501 MB / 1.087 GB, free: 5.684 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003352/0.3767, allocations: 47.86 kB / 1.087 GB, free: 5.637 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.461e-05/0.3767, allocations: 20.06 kB / 1.087 GB, free: 5.617 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.0001643/0.3769, allocations: 208 kB / 1.088 GB, free: 5.406 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.215e-05/0.3769, allocations: 27.7 kB / 1.088 GB, free: 5.379 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001118/0.3781, allocations: 473.1 kB / 1.088 GB, free: 4.906 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.007e-06/0.3781, allocations: 4 kB / 1.088 GB, free: 4.902 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-06/0.3781, allocations: 0 / 1.088 GB, free: 4.902 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.676e-06/0.3781, allocations: 7.922 kB / 1.088 GB, free: 4.895 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006539/0.3788, allocations: 0.5661 MB / 1.089 GB, free: 4.266 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.3788, allocations: 0 / 1.089 GB, free: 4.266 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003741/0.3792, allocations: 83.95 kB / 1.089 GB, free: 4.184 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001235/0.3793, allocations: 36.86 kB / 1.089 GB, free: 4.145 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.856e-05/0.3793, allocations: 11.94 kB / 1.089 GB, free: 4.133 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001142/0.3805, allocations: 1.405 MB / 1.09 GB, free: 2.59 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.3805, allocations: 0 / 1.09 GB, free: 2.59 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001012/0.3815, allocations: 0.5419 MB / 1.091 GB, free: 2.02 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001278/0.3817, allocations: 132.6 kB / 1.091 GB, free: 1.871 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.842e-05/0.3817, allocations: 8 kB / 1.091 GB, free: 1.863 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003416/0.3821, allocations: 35.95 kB / 1.091 GB, free: 1.828 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001092/0.3822, allocations: 43.83 kB / 1.091 GB, free: 1.785 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.353e-05/0.3822, allocations: 8 kB / 1.091 GB, free: 1.777 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0002099/0.3824, allocations: 180.5 kB / 1.091 GB, free: 1.602 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2.41e-07/0.3824, allocations: 0 / 1.091 GB, free: 1.602 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0005994/0.383, allocations: 132 kB / 1.091 GB, free: 1.473 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.0001677/0.3832, allocations: 107.2 kB / 1.091 GB, free: 1.359 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.00197/0.3852, allocations: 0.9852 MB / 1.092 GB, free: 332 kB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.3852, allocations: 0 / 1.092 GB, free: 332 kB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0007027/0.3859, allocations: 331.3 kB / 1.093 GB, free: 15.98 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004451/0.3864, allocations: 45.73 kB / 1.093 GB, free: 15.94 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001219/0.3876, allocations: 0.721 MB / 1.093 GB, free: 15.19 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003879/0.388, allocations: 0.7878 MB / 1.094 GB, free: 14.37 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0003421/0.3883, allocations: 98.33 kB / 1.094 GB, free: 14.28 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001075/0.3885, allocations: 35.36 kB / 1.094 GB, free: 14.25 MB / 0.8575 GB Notification: Performance of SimCode: time 2.71e-07/0.3885, allocations: 4 kB / 1.094 GB, free: 14.24 MB / 0.8575 GB Notification: Performance of Templates: time 0.008985/0.3975, allocations: 4.462 MB / 1.099 GB, free: 9.797 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)