Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_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_3.0.0_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_3.0.0_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.001495/0.001494, allocations: 108 kB / 15.61 MB, free: 152 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.001473/0.001473, allocations: 195.8 kB / 16.53 MB, free: 6.699 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.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.9/2.9, allocations: 472.6 MB / 0.7451 GB, free: 4.703 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002319/0.002319, allocations: 68.22 kB / 0.912 GB, free: 33.43 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3916/0.3939, allocations: 159.9 MB / 1.068 GB, free: 10.42 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource): time 0.004501/0.3985, allocations: 3.025 MB / 1.071 GB, free: 7.379 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.003031/0.4015, allocations: 1.905 MB / 1.073 GB, free: 5.465 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001811/0.4017, allocations: 7.938 kB / 1.073 GB, free: 5.457 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0008441/0.4026, allocations: 239 kB / 1.073 GB, free: 5.223 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0005799/0.4032, allocations: 219 kB / 1.073 GB, free: 5.008 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007075/0.4039, allocations: 254.8 kB / 1.074 GB, free: 4.762 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.000457/0.4044, allocations: 386.6 kB / 1.074 GB, free: 4.383 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003896/0.4048, allocations: 213.8 kB / 1.074 GB, free: 4.176 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002199/0.405, allocations: 159.5 kB / 1.074 GB, free: 4.02 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003111/0.4053, allocations: 183.3 kB / 1.075 GB, free: 3.84 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 5.814e-05/0.4054, allocations: 28 kB / 1.075 GB, free: 3.812 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005344/0.406, allocations: 287.5 kB / 1.075 GB, free: 3.531 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001131/0.4061, allocations: 103.7 kB / 1.075 GB, free: 3.43 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001541/0.4062, allocations: 139.3 kB / 1.075 GB, free: 3.293 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0005779/0.4068, allocations: 494.7 kB / 1.076 GB, free: 2.809 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.4068, allocations: 0 / 1.076 GB, free: 2.809 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.423e-06/0.4068, allocations: 0 / 1.076 GB, free: 2.809 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.863e-06/0.4069, allocations: 0 / 1.076 GB, free: 2.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: 57 * Number of variables: 57 Notification: Performance of Generate backend data structure: time 0.001247/0.4081, allocations: 0.6331 MB / 1.076 GB, free: 2.121 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.818e-05/0.4082, allocations: 16.02 kB / 1.076 GB, free: 2.105 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009225/0.4091, allocations: 112.4 kB / 1.076 GB, free: 1.996 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003377/0.4094, allocations: 285.6 kB / 1.077 GB, free: 1.68 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.175e-05/0.4095, allocations: 16.81 kB / 1.077 GB, free: 1.664 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.508e-05/0.4095, allocations: 20.38 kB / 1.077 GB, free: 1.645 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008186/0.4104, allocations: 426.8 kB / 1.077 GB, free: 1.199 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.592e-05/0.4104, allocations: 4 kB / 1.077 GB, free: 1.195 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.555e-05/0.4104, allocations: 7.938 kB / 1.077 GB, free: 1.188 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.603e-05/0.4105, allocations: 28.36 kB / 1.077 GB, free: 1.156 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009405/0.4114, allocations: 400.8 kB / 1.077 GB, free: 0.7656 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001895/0.4133, allocations: 1.63 MB / 1.079 GB, free: 15.01 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001264/0.4146, allocations: 489 kB / 1.08 GB, free: 14.51 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004537/0.4151, allocations: 193.6 kB / 1.08 GB, free: 14.32 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001518/0.4152, allocations: 93.09 kB / 1.08 GB, free: 14.21 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005917/0.4158, allocations: 271.7 kB / 1.08 GB, free: 13.92 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=27): time 1.994e-06/0.4158, allocations: 0 / 1.08 GB, free: 13.92 MB / 0.8419 GB Notification: Performance of matching and sorting (n=28): time 0.002032/0.4179, allocations: 0.7612 MB / 1.081 GB, free: 13.13 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.282e-05/0.418, allocations: 85.3 kB / 1.081 GB, free: 13.03 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002374/0.4182, allocations: 221 kB / 1.081 GB, free: 12.8 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 4.035e-05/0.4183, allocations: 33.7 kB / 1.081 GB, free: 12.77 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.000129/0.4184, allocations: 172.2 kB / 1.081 GB, free: 12.59 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 8.966e-05/0.4185, allocations: 90.69 kB / 1.081 GB, free: 12.5 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001341/0.4186, allocations: 69.59 kB / 1.081 GB, free: 12.43 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001304/0.4188, allocations: 334.8 kB / 1.082 GB, free: 12.09 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004642/0.4192, allocations: 184.8 kB / 1.082 GB, free: 11.91 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004871/0.4197, allocations: 253.3 kB / 1.082 GB, free: 11.63 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00097/0.4207, allocations: 463.4 kB / 1.083 GB, free: 11.14 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.4207, allocations: 0 / 1.083 GB, free: 11.14 MB / 0.8419 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001227/0.422, allocations: 0.5475 MB / 1.083 GB, free: 10.58 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 4.069e-05/0.422, allocations: 33.7 kB / 1.083 GB, free: 10.54 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.184e-06/0.422, allocations: 0 / 1.083 GB, free: 10.54 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002516/0.4223, allocations: 44.81 kB / 1.083 GB, free: 10.5 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004281/0.4227, allocations: 84.02 kB / 1.083 GB, free: 10.41 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001513/0.4242, allocations: 1.611 MB / 1.085 GB, free: 8.66 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003738/0.4246, allocations: 47.8 kB / 1.085 GB, free: 8.613 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.657e-05/0.4247, allocations: 15.98 kB / 1.085 GB, free: 8.598 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005423/0.4252, allocations: 293.4 kB / 1.085 GB, free: 8.309 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004677/0.4257, allocations: 234.5 kB / 1.085 GB, free: 8.047 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009067/0.4266, allocations: 456.8 kB / 1.086 GB, free: 7.562 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.655e-06/0.4266, allocations: 0 / 1.086 GB, free: 7.562 MB / 0.8419 GB Notification: Performance of matching and sorting (n=39) (initialization_lambda0): time 0.001222/0.4279, allocations: 0.5231 MB / 1.086 GB, free: 7.023 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 3.524e-05/0.4279, allocations: 37.7 kB / 1.086 GB, free: 6.98 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.899e-06/0.4279, allocations: 0 / 1.086 GB, free: 6.98 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001582/0.4281, allocations: 48.86 kB / 1.086 GB, free: 6.93 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003911/0.4285, allocations: 87.86 kB / 1.087 GB, free: 6.844 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001345/0.4298, allocations: 1.611 MB / 1.088 GB, free: 5.082 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003543/0.4302, allocations: 43.8 kB / 1.088 GB, free: 5.039 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.795e-05/0.4303, allocations: 16 kB / 1.088 GB, free: 5.023 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.0001949/0.4305, allocations: 204.7 kB / 1.088 GB, free: 4.816 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.826e-05/0.4305, allocations: 23.72 kB / 1.088 GB, free: 4.793 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001192/0.4317, allocations: 479.1 kB / 1.089 GB, free: 4.316 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.031e-06/0.4317, allocations: 4 kB / 1.089 GB, free: 4.312 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.4318, allocations: 4 kB / 1.089 GB, free: 4.309 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.336e-05/0.4318, allocations: 3.984 kB / 1.089 GB, free: 4.305 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007185/0.4325, allocations: 0.5738 MB / 1.089 GB, free: 3.668 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.889e-06/0.4325, allocations: 8.094 kB / 1.089 GB, free: 3.66 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003732/0.4329, allocations: 71.86 kB / 1.09 GB, free: 3.59 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001403/0.4331, allocations: 36.83 kB / 1.09 GB, free: 3.551 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.849e-05/0.4331, allocations: 4 kB / 1.09 GB, free: 3.547 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00121/0.4343, allocations: 1.523 MB / 1.091 GB, free: 1.879 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.205e-06/0.4343, allocations: 4.031 kB / 1.091 GB, free: 1.875 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001093/0.4354, allocations: 0.5457 MB / 1.092 GB, free: 1.301 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001885/0.4356, allocations: 132.7 kB / 1.092 GB, free: 1.152 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.532e-05/0.4357, allocations: 8 kB / 1.092 GB, free: 1.145 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003639/0.4361, allocations: 35.95 kB / 1.092 GB, free: 1.109 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001375/0.4362, allocations: 28.09 kB / 1.092 GB, free: 1.082 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.646e-05/0.4362, allocations: 15.98 kB / 1.092 GB, free: 1.066 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0002578/0.4365, allocations: 184.5 kB / 1.092 GB, free: 0.8867 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.81e-07/0.4365, allocations: 3.938 kB / 1.092 GB, free: 0.8828 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0007282/0.4373, allocations: 124 kB / 1.092 GB, free: 0.7617 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.0002535/0.4375, allocations: 114 kB / 1.092 GB, free: 0.6445 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.002358/0.4399, allocations: 1.027 MB / 1.093 GB, free: 15.57 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 6.562e-06/0.4399, allocations: 0 / 1.093 GB, free: 15.57 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0006406/0.4406, allocations: 331.3 kB / 1.094 GB, free: 15.23 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005129/0.4411, allocations: 54.25 kB / 1.094 GB, free: 15.18 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001306/0.4424, allocations: 0.6118 MB / 1.094 GB, free: 14.53 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003935/0.4428, allocations: 0.7839 MB / 1.095 GB, free: 13.72 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.000349/0.4432, allocations: 94.2 kB / 1.095 GB, free: 13.63 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001046/0.4433, allocations: 31.42 kB / 1.095 GB, free: 13.61 MB / 0.8575 GB Notification: Performance of SimCode: time 4.51e-07/0.4433, allocations: 0 / 1.095 GB, free: 13.61 MB / 0.8575 GB Notification: Performance of Templates: time 0.00967/0.453, allocations: 4.784 MB / 1.1 GB, free: 8.844 MB / 0.8575 GB make -j1 -f Buildings_3.0.0_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.makefile (rm -f Buildings_3.0.0_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; mkfifo Buildings_3.0.0_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe >> ../files/Buildings_3.0.0_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.sim & ./Buildings_3.0.0_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe 2>&1)