Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/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="mat",numberOfIntervals=5000,variableFilter="time|RL.i.1.|RL.i.2.|RL.S.1.|RL.S.2.|generator.S.1.|generator.S.2.|grid.sou.S.1.|grid.sou.S.2.",fileNamePrefix="Buildings_11_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource") translateModel(Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|RL.i.1.|RL.i.2.|RL.S.1.|RL.S.2.|generator.S.1.|generator.S.2.|grid.sou.S.1.|grid.sou.S.2.",fileNamePrefix="Buildings_11_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.001594/0.001594, allocations: 114.9 kB / 16.81 MB, free: 5.766 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.001752/0.001752, allocations: 199.2 kB / 17.77 MB, free: 5.117 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.547/1.547, allocations: 225.6 MB / 244.2 MB, free: 13.88 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.914/2.914, allocations: 476.7 MB / 0.7556 GB, free: 11.3 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001926/0.001926, allocations: 68.02 kB / 1.097 GB, free: 11.77 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3813/0.3832, allocations: 168.7 MB / 1.262 GB, free: 12.94 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource): time 0.005012/0.3882, allocations: 3.063 MB / 1.265 GB, free: 9.859 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.003302/0.3915, allocations: 1.913 MB / 1.267 GB, free: 7.938 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000144/0.3916, allocations: 11.88 kB / 1.267 GB, free: 7.926 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.000865/0.3925, allocations: 238.4 kB / 1.267 GB, free: 7.695 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0005237/0.393, allocations: 223 kB / 1.267 GB, free: 7.477 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006593/0.3937, allocations: 255.3 kB / 1.268 GB, free: 7.227 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.000504/0.3942, allocations: 390.8 kB / 1.268 GB, free: 6.844 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003634/0.3946, allocations: 169.8 kB / 1.268 GB, free: 6.672 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002384/0.3948, allocations: 159.4 kB / 1.268 GB, free: 6.516 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003461/0.3951, allocations: 195.3 kB / 1.268 GB, free: 6.324 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 5.125e-05/0.3952, allocations: 24 kB / 1.269 GB, free: 6.301 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004921/0.3957, allocations: 295.4 kB / 1.269 GB, free: 6.012 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0001302/0.3958, allocations: 99.7 kB / 1.269 GB, free: 5.914 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001729/0.396, allocations: 147.3 kB / 1.269 GB, free: 5.77 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0006442/0.3966, allocations: 490.1 kB / 1.269 GB, free: 5.289 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.3966, allocations: 0 / 1.269 GB, free: 5.289 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.132e-06/0.3966, allocations: 0 / 1.269 GB, free: 5.289 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.643e-06/0.3966, allocations: 0 / 1.269 GB, free: 5.289 MB / 0.9825 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.001363/0.398, allocations: 0.6559 MB / 1.27 GB, free: 4.578 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.213e-05/0.3981, allocations: 8.031 kB / 1.27 GB, free: 4.57 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009499/0.399, allocations: 112.6 kB / 1.27 GB, free: 4.461 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004065/0.3994, allocations: 291.8 kB / 1.271 GB, free: 4.137 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.466e-05/0.3994, allocations: 20.81 kB / 1.271 GB, free: 4.117 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.161e-05/0.3995, allocations: 20.36 kB / 1.271 GB, free: 4.098 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008835/0.4004, allocations: 430.8 kB / 1.271 GB, free: 3.648 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.623e-05/0.4004, allocations: 0 / 1.271 GB, free: 3.648 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.811e-05/0.4004, allocations: 11.94 kB / 1.271 GB, free: 3.637 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.015e-05/0.4005, allocations: 24.36 kB / 1.271 GB, free: 3.609 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009804/0.4015, allocations: 408.7 kB / 1.271 GB, free: 3.211 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002021/0.4035, allocations: 1.619 MB / 1.273 GB, free: 1.465 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001287/0.4048, allocations: 466.7 kB / 1.273 GB, free: 0.9961 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004575/0.4052, allocations: 185.6 kB / 1.274 GB, free: 0.8086 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001515/0.4054, allocations: 93.08 kB / 1.274 GB, free: 0.6992 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006058/0.406, allocations: 274.5 kB / 1.274 GB, free: 420 kB / 0.9825 GB Notification: Performance of pre-optimization done (n=27): time 1.463e-06/0.406, allocations: 0 / 1.274 GB, free: 420 kB / 0.9825 GB Notification: Performance of matching and sorting (n=28): time 0.00219/0.4082, allocations: 0.7619 MB / 1.275 GB, free: 15.62 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.887e-05/0.4082, allocations: 81.11 kB / 1.275 GB, free: 15.52 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002436/0.4085, allocations: 229.2 kB / 1.275 GB, free: 15.29 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 3.95e-05/0.4085, allocations: 33.7 kB / 1.275 GB, free: 15.25 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001294/0.4086, allocations: 164.6 kB / 1.275 GB, free: 15.08 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 9.889e-05/0.4087, allocations: 99.16 kB / 1.275 GB, free: 14.98 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001336/0.4089, allocations: 69.69 kB / 1.275 GB, free: 14.91 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001635/0.409, allocations: 330.8 kB / 1.276 GB, free: 14.58 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004707/0.4095, allocations: 185 kB / 1.276 GB, free: 14.39 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005125/0.41, allocations: 249.3 kB / 1.276 GB, free: 14.12 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009821/0.411, allocations: 470.9 kB / 1.277 GB, free: 13.62 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.411, allocations: 4 kB / 1.277 GB, free: 13.62 MB / 0.9981 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001274/0.4123, allocations: 0.5437 MB / 1.277 GB, free: 13.06 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 4.259e-05/0.4123, allocations: 35.73 kB / 1.277 GB, free: 13.02 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.973e-06/0.4123, allocations: 0 / 1.277 GB, free: 13.02 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002444/0.4126, allocations: 44.81 kB / 1.277 GB, free: 12.98 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004469/0.413, allocations: 83.86 kB / 1.277 GB, free: 12.89 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001674/0.4147, allocations: 1.616 MB / 1.279 GB, free: 11.14 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003604/0.415, allocations: 55.92 kB / 1.279 GB, free: 11.08 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.434e-05/0.4151, allocations: 8 kB / 1.279 GB, free: 11.07 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000543/0.4156, allocations: 288.1 kB / 1.279 GB, free: 10.79 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005136/0.4161, allocations: 243.8 kB / 1.279 GB, free: 10.52 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009122/0.4171, allocations: 453.3 kB / 1.28 GB, free: 10.04 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.737e-06/0.4171, allocations: 7.938 kB / 1.28 GB, free: 10.03 MB / 0.9981 GB Notification: Performance of matching and sorting (n=39) (initialization_lambda0): time 0.001179/0.4182, allocations: 0.519 MB / 1.28 GB, free: 9.496 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 3.007e-05/0.4183, allocations: 29.7 kB / 1.28 GB, free: 9.461 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.669e-06/0.4183, allocations: 4 kB / 1.28 GB, free: 9.457 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001477/0.4184, allocations: 45.09 kB / 1.28 GB, free: 9.41 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003825/0.4188, allocations: 79.94 kB / 1.28 GB, free: 9.332 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001495/0.4203, allocations: 1.619 MB / 1.282 GB, free: 7.566 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003313/0.4206, allocations: 51.78 kB / 1.282 GB, free: 7.516 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.824e-05/0.4207, allocations: 12 kB / 1.282 GB, free: 7.504 MB / 0.9981 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.0002035/0.4209, allocations: 200.3 kB / 1.282 GB, free: 7.301 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.682e-05/0.4209, allocations: 23.86 kB / 1.282 GB, free: 7.277 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001157/0.4221, allocations: 481.1 kB / 1.283 GB, free: 6.793 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.976e-06/0.4221, allocations: 3.984 kB / 1.283 GB, free: 6.789 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.4221, allocations: 0 / 1.283 GB, free: 6.789 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000178/0.4223, allocations: 132.9 kB / 1.283 GB, free: 6.641 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.845e-05/0.4223, allocations: 7.953 kB / 1.283 GB, free: 6.633 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003524/0.4227, allocations: 47.94 kB / 1.283 GB, free: 6.586 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001264/0.4228, allocations: 27.95 kB / 1.283 GB, free: 6.559 MB / 0.9981 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001357/0.4242, allocations: 0.6138 MB / 1.284 GB, free: 5.934 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001484/0.4256, allocations: 0.8458 MB / 1.284 GB, free: 5.07 MB / 0.9981 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0004046/0.426, allocations: 172.5 kB / 1.285 GB, free: 4.902 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0002423/0.4263, allocations: 180.5 kB / 1.285 GB, free: 4.727 MB / 0.9981 GB Notification: Performance of Backend: time 6.91e-07/0.4263, allocations: 0 / 1.285 GB, free: 4.727 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.002641/0.4289, allocations: 1.028 MB / 1.286 GB, free: 3.641 MB / 0.9981 GB Notification: Performance of SimCode: time 0.001544/0.4305, allocations: 0.9827 MB / 1.287 GB, free: 2.613 MB / 0.9981 GB Notification: Performance of Templates: time 0.01547/0.4459, allocations: 7.993 MB / 1.295 GB, free: 10.63 MB / 1.014 GB make -j1 -f Buildings_11_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.makefile (rm -f Buildings_11_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; mkfifo Buildings_11_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; head -c 1048576 < Buildings_11_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe >> ../files/Buildings_11_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.sim & ./Buildings_11_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Electrical_AC_OnePhase_Sources_Examples_VariablePowerSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches