Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_Buildings.Electrical.AC.ThreePhasesBalanced.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.ThreePhasesBalanced.Sources.Examples.VariablePowerSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009632/0.0009631, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.007612/0.007613, allocations: 169.4 kB / 16.26 MB, free: 6.652 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.541/1.541, allocations: 223.3 MB / 240.3 MB, free: 5.254 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.97/2.97, allocations: 473.4 MB / 0.7469 GB, free: 6.129 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003931/0.0003931, allocations: 10.44 kB / 0.9158 GB, free: 33.09 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4126/0.413, allocations: 162.2 MB / 1.074 GB, free: 7.574 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource): time 0.004694/0.4177, allocations: 3.233 MB / 1.077 GB, free: 4.328 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.003619/0.4214, allocations: 1.878 MB / 1.079 GB, free: 2.441 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002811/0.4217, allocations: 7.938 kB / 1.079 GB, free: 2.434 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0002608/0.422, allocations: 31.77 kB / 1.079 GB, free: 2.402 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.000834/0.4228, allocations: 199.2 kB / 1.079 GB, free: 2.207 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.000813/0.4236, allocations: 231.5 kB / 1.08 GB, free: 1.98 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.000698/0.4243, allocations: 0.4944 MB / 1.08 GB, free: 1.484 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009417/0.4253, allocations: 410.6 kB / 1.08 GB, free: 1.066 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003917/0.4257, allocations: 139.4 kB / 1.081 GB, free: 0.9297 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005038/0.4262, allocations: 171.3 kB / 1.081 GB, free: 0.7617 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 6.763e-05/0.4263, allocations: 16 kB / 1.081 GB, free: 0.7461 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006719/0.427, allocations: 331.3 kB / 1.081 GB, free: 432 kB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001616/0.4272, allocations: 87.77 kB / 1.081 GB, free: 344 kB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.000189/0.4274, allocations: 149 kB / 1.081 GB, free: 188 kB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0008531/0.4282, allocations: 494.6 kB / 1.082 GB, free: 15.7 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 6.693e-06/0.4282, allocations: 0 / 1.082 GB, free: 15.7 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.986e-06/0.4282, allocations: 0 / 1.082 GB, free: 15.7 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 2.257e-05/0.4283, allocations: 0 / 1.082 GB, free: 15.7 MB / 0.8419 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.001493/0.4298, allocations: 0.6059 MB / 1.082 GB, free: 15.04 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.723e-05/0.4298, allocations: 8.031 kB / 1.082 GB, free: 15.03 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001052/0.4309, allocations: 124.4 kB / 1.082 GB, free: 14.91 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004387/0.4313, allocations: 277.6 kB / 1.083 GB, free: 14.6 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.129e-05/0.4314, allocations: 16.81 kB / 1.083 GB, free: 14.59 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.639e-05/0.4315, allocations: 28.34 kB / 1.083 GB, free: 14.56 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009604/0.4324, allocations: 446.8 kB / 1.083 GB, free: 14.09 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.909e-05/0.4325, allocations: 3.938 kB / 1.083 GB, free: 14.09 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.993e-05/0.4325, allocations: 8 kB / 1.083 GB, free: 14.08 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.635e-05/0.4326, allocations: 24.36 kB / 1.083 GB, free: 14.05 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001046/0.4336, allocations: 428.8 kB / 1.084 GB, free: 13.63 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002169/0.4358, allocations: 1.634 MB / 1.085 GB, free: 11.87 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001359/0.4372, allocations: 0.4918 MB / 1.086 GB, free: 11.36 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004949/0.4377, allocations: 213.5 kB / 1.086 GB, free: 11.15 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001757/0.4379, allocations: 101.1 kB / 1.086 GB, free: 11.03 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006327/0.4385, allocations: 286.5 kB / 1.086 GB, free: 10.73 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=27): time 1.894e-06/0.4385, allocations: 0 / 1.086 GB, free: 10.73 MB / 0.8419 GB Notification: Performance of matching and sorting (n=28): time 0.00222/0.4408, allocations: 0.808 MB / 1.087 GB, free: 9.895 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.119e-05/0.4408, allocations: 85.3 kB / 1.087 GB, free: 9.793 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002473/0.4411, allocations: 221 kB / 1.087 GB, free: 9.566 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 4.291e-05/0.4411, allocations: 33.7 kB / 1.087 GB, free: 9.527 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001312/0.4413, allocations: 160.4 kB / 1.088 GB, free: 9.367 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 9.624e-05/0.4414, allocations: 94.64 kB / 1.088 GB, free: 9.273 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.346e-05/0.4415, allocations: 37.7 kB / 1.088 GB, free: 9.23 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001467/0.4416, allocations: 330.8 kB / 1.088 GB, free: 8.898 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004885/0.4421, allocations: 192.2 kB / 1.088 GB, free: 8.711 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005412/0.4427, allocations: 261.3 kB / 1.088 GB, free: 8.426 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001019/0.4437, allocations: 0.4884 MB / 1.089 GB, free: 7.902 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.4437, allocations: 0 / 1.089 GB, free: 7.902 MB / 0.8419 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001354/0.4451, allocations: 0.571 MB / 1.089 GB, free: 7.316 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 0.000187/0.4453, allocations: 183 kB / 1.09 GB, free: 7.098 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.056e-05/0.4453, allocations: 0 / 1.09 GB, free: 7.098 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003047/0.4456, allocations: 48.81 kB / 1.09 GB, free: 7.047 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004562/0.4461, allocations: 87.86 kB / 1.09 GB, free: 6.961 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001662/0.4477, allocations: 1.497 MB / 1.091 GB, free: 5.328 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004062/0.4482, allocations: 67.78 kB / 1.091 GB, free: 5.262 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.791e-05/0.4482, allocations: 15.94 kB / 1.091 GB, free: 5.246 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 9.208e-06/0.4482, allocations: 4 kB / 1.091 GB, free: 5.242 MB / 0.8419 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0012/0.4494, allocations: 0.506 MB / 1.092 GB, free: 4.727 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.4494, allocations: 0 / 1.092 GB, free: 4.727 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001338/0.4496, allocations: 44.75 kB / 1.092 GB, free: 4.68 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003872/0.45, allocations: 91.81 kB / 1.092 GB, free: 4.59 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001267/0.4513, allocations: 1.489 MB / 1.093 GB, free: 2.961 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003608/0.4516, allocations: 51.86 kB / 1.093 GB, free: 2.91 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.059e-05/0.4517, allocations: 23.92 kB / 1.094 GB, free: 2.887 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.0002834/0.452, allocations: 234.6 kB / 1.094 GB, free: 2.648 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.36e-05/0.4521, allocations: 27.8 kB / 1.094 GB, free: 2.621 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001206/0.4533, allocations: 0.4966 MB / 1.094 GB, free: 2.109 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.901e-06/0.4533, allocations: 8 kB / 1.094 GB, free: 2.102 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.467e-06/0.4533, allocations: 0 / 1.094 GB, free: 2.102 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.304e-06/0.4533, allocations: 4 kB / 1.094 GB, free: 2.098 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000738/0.4541, allocations: 0.5738 MB / 1.095 GB, free: 1.461 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.4541, allocations: 0 / 1.095 GB, free: 1.461 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003834/0.4545, allocations: 80.02 kB / 1.095 GB, free: 1.383 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001226/0.4546, allocations: 36.83 kB / 1.095 GB, free: 1.344 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.047e-05/0.4546, allocations: 7.984 kB / 1.095 GB, free: 1.336 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001131/0.4558, allocations: 1.42 MB / 1.096 GB, free: 15.78 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.038e-06/0.4558, allocations: 4.062 kB / 1.096 GB, free: 15.78 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001061/0.4569, allocations: 0.5693 MB / 1.097 GB, free: 15.18 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001594/0.457, allocations: 140.6 kB / 1.097 GB, free: 15.02 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.724e-05/0.4571, allocations: 8 kB / 1.097 GB, free: 15.02 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000344/0.4574, allocations: 43.95 kB / 1.097 GB, free: 14.97 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001109/0.4576, allocations: 31.89 kB / 1.097 GB, free: 14.94 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.553e-05/0.4576, allocations: 12 kB / 1.097 GB, free: 14.93 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0002325/0.4578, allocations: 180.5 kB / 1.097 GB, free: 14.75 MB / 0.8575 GB Notification: Performance of sort global known variables: time 2.31e-07/0.4578, allocations: 0 / 1.097 GB, free: 14.75 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.000679/0.4585, allocations: 131.9 kB / 1.097 GB, free: 14.62 MB / 0.8575 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.0002272/0.4588, allocations: 123.1 kB / 1.098 GB, free: 14.49 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.002183/0.4609, allocations: 1.021 MB / 1.099 GB, free: 13.42 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 4.419e-06/0.461, allocations: 0 / 1.099 GB, free: 13.42 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0006587/0.4616, allocations: 351.1 kB / 1.099 GB, free: 13.07 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004972/0.4621, allocations: 48.59 kB / 1.099 GB, free: 13.02 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001377/0.4635, allocations: 0.7293 MB / 1.1 GB, free: 12.26 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004111/0.464, allocations: 0.7838 MB / 1.1 GB, free: 11.45 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0003563/0.4643, allocations: 102.2 kB / 1.1 GB, free: 11.34 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001069/0.4644, allocations: 27.42 kB / 1.1 GB, free: 11.32 MB / 0.8575 GB Notification: Performance of SimCode: time 1.393e-06/0.4645, allocations: 0 / 1.1 GB, free: 11.32 MB / 0.8575 GB Notification: Performance of Templates: time 0.009499/0.474, allocations: 4.397 MB / 1.105 GB, free: 6.949 MB / 0.8575 GB make -j1 -f Buildings_1.6_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.makefile (rm -f Buildings_1.6_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe ; mkfifo Buildings_1.6_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe >> ../files/Buildings_1.6_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.sim & ./Buildings_1.6_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe 2>&1)