Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.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.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.Lines.Examples.ACSimpleGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.v.1.|load.v.2.|E.terminal.v.1.|E.terminal.v.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid") translateModel(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.v.1.|load.v.2.|E.terminal.v.1.|E.terminal.v.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001338/0.001338, allocations: 109.5 kB / 16.42 MB, free: 6.398 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.001458/0.001458, allocations: 194 kB / 17.35 MB, free: 5.691 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.372/1.372, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.561/2.561, allocations: 461.7 MB / 0.7352 GB, free: 10.94 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001418/0.001418, allocations: 60.12 kB / 1.055 GB, free: 7.688 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9145/0.916, allocations: 157.4 MB / 1.208 GB, free: 13.59 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid): time 0.006683/0.9227, allocations: 4.389 MB / 1.212 GB, free: 9.18 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.005373/0.9281, allocations: 3.271 MB / 1.216 GB, free: 5.898 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004767/0.9286, allocations: 11.94 kB / 1.216 GB, free: 5.887 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.001793/0.9305, allocations: 0.4979 MB / 1.216 GB, free: 5.387 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.001354/0.9318, allocations: 391.7 kB / 1.217 GB, free: 5.004 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008082/0.9327, allocations: 251.4 kB / 1.217 GB, free: 4.758 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.00104/0.9337, allocations: 0.5917 MB / 1.217 GB, free: 4.164 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008834/0.9346, allocations: 0.5245 MB / 1.218 GB, free: 3.641 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006437/0.9353, allocations: 275.1 kB / 1.218 GB, free: 3.371 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006206/0.9359, allocations: 275 kB / 1.218 GB, free: 3.102 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 0.0001114/0.936, allocations: 40 kB / 1.218 GB, free: 3.062 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007849/0.9368, allocations: 303.5 kB / 1.219 GB, free: 2.766 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0002235/0.9371, allocations: 159.6 kB / 1.219 GB, free: 2.609 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0003791/0.9374, allocations: 234.8 kB / 1.219 GB, free: 2.379 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.001267/0.9387, allocations: 0.7886 MB / 1.22 GB, free: 1.59 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 5.13e-06/0.9387, allocations: 0 / 1.22 GB, free: 1.59 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.844e-06/0.9387, allocations: 0 / 1.22 GB, free: 1.59 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 2.743e-05/0.9388, allocations: 4 kB / 1.22 GB, free: 1.586 MB / 0.9356 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.001898/0.9407, allocations: 0.7675 MB / 1.221 GB, free: 0.7656 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.743e-05/0.9407, allocations: 12.03 kB / 1.221 GB, free: 0.7539 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003097/0.9439, allocations: 0.6827 MB / 1.221 GB, free: 72 kB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009005/0.9448, allocations: 451.7 kB / 1.222 GB, free: 15.59 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.157e-05/0.9448, allocations: 25.03 kB / 1.222 GB, free: 15.57 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001002/0.9449, allocations: 40.06 kB / 1.222 GB, free: 15.53 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001731/0.9467, allocations: 0.7787 MB / 1.223 GB, free: 14.72 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.371e-05/0.9467, allocations: 7.938 kB / 1.223 GB, free: 14.71 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.27e-05/0.9468, allocations: 15.98 kB / 1.223 GB, free: 14.7 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001134/0.9469, allocations: 40.62 kB / 1.223 GB, free: 14.66 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002087/0.949, allocations: 0.8687 MB / 1.223 GB, free: 13.79 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004201/0.9532, allocations: 2.804 MB / 1.226 GB, free: 10.76 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001677/0.9549, allocations: 0.5097 MB / 1.227 GB, free: 10.24 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007133/0.9556, allocations: 260.6 kB / 1.227 GB, free: 9.984 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001202/0.9558, allocations: 93.08 kB / 1.227 GB, free: 9.875 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.062e-05/0.9558, allocations: 38.56 kB / 1.227 GB, free: 9.828 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=16): time 4.979e-06/0.9558, allocations: 0 / 1.227 GB, free: 9.828 MB / 0.9512 GB Notification: Performance of matching and sorting (n=24): time 0.012/0.9678, allocations: 3.052 MB / 1.23 GB, free: 6.746 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.207e-05/0.9679, allocations: 59.41 kB / 1.23 GB, free: 6.676 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006176/0.9685, allocations: 409.5 kB / 1.231 GB, free: 6.266 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 5.334e-05/0.9686, allocations: 25.7 kB / 1.231 GB, free: 6.234 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002029/0.9688, allocations: 239.8 kB / 1.231 GB, free: 5.992 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 9.728e-05/0.9689, allocations: 82.75 kB / 1.231 GB, free: 5.91 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001926/0.9691, allocations: 73.67 kB / 1.231 GB, free: 5.832 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001552/0.9693, allocations: 342.8 kB / 1.231 GB, free: 5.488 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001018/0.9703, allocations: 364.5 kB / 1.232 GB, free: 5.129 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001009/0.9713, allocations: 424.5 kB / 1.232 GB, free: 4.68 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001916/0.9733, allocations: 0.762 MB / 1.233 GB, free: 3.891 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.9733, allocations: 3.938 kB / 1.233 GB, free: 3.887 MB / 0.9512 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.005086/0.9784, allocations: 1.495 MB / 1.234 GB, free: 2.379 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 2.485e-05/0.9784, allocations: 4.188 kB / 1.234 GB, free: 2.375 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.029e-05/0.9784, allocations: 8 kB / 1.234 GB, free: 2.367 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003437/0.9819, allocations: 0.7701 MB / 1.235 GB, free: 1.59 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006633/0.9826, allocations: 131.8 kB / 1.235 GB, free: 1.461 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007085/0.9897, allocations: 4.839 MB / 1.24 GB, free: 12.34 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008215/0.9905, allocations: 111.8 kB / 1.24 GB, free: 12.23 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.253e-05/0.9906, allocations: 19.98 kB / 1.24 GB, free: 12.21 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001213/0.9918, allocations: 0.5348 MB / 1.24 GB, free: 11.67 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009542/0.9928, allocations: 417.7 kB / 1.241 GB, free: 11.23 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001876/0.9947, allocations: 0.7295 MB / 1.242 GB, free: 10.48 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.965e-06/0.9947, allocations: 0 / 1.242 GB, free: 10.48 MB / 0.9669 GB Notification: Performance of matching and sorting (n=35) (initialization_lambda0): time 0.004139/0.9988, allocations: 1.266 MB / 1.243 GB, free: 9.199 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.407e-05/0.9989, allocations: 4 kB / 1.243 GB, free: 9.195 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.107e-06/0.9989, allocations: 7.984 kB / 1.243 GB, free: 9.188 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002151/1.001, allocations: 0.4961 MB / 1.243 GB, free: 8.691 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006916/1.002, allocations: 139.8 kB / 1.243 GB, free: 8.555 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003659/1.005, allocations: 2.613 MB / 1.246 GB, free: 5.801 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007863/1.006, allocations: 103.8 kB / 1.246 GB, free: 5.699 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.299e-05/1.006, allocations: 19.98 kB / 1.246 GB, free: 5.68 MB / 0.9669 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0002118/1.007, allocations: 196.1 kB / 1.246 GB, free: 5.48 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001103/1.007, allocations: 31.69 kB / 1.246 GB, free: 5.449 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004373/1.011, allocations: 1.357 MB / 1.248 GB, free: 4.07 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.057e-06/1.011, allocations: 3.984 kB / 1.248 GB, free: 4.066 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-06/1.011, allocations: 0 / 1.248 GB, free: 4.066 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002496/1.011, allocations: 164.6 kB / 1.248 GB, free: 3.887 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.259e-05/1.011, allocations: 4 kB / 1.248 GB, free: 3.883 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005842/1.012, allocations: 83.8 kB / 1.248 GB, free: 3.801 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001249/1.012, allocations: 31.95 kB / 1.248 GB, free: 3.77 MB / 0.9669 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003239/1.015, allocations: 1.157 MB / 1.249 GB, free: 2.602 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002162/1.018, allocations: 1.1 MB / 1.25 GB, free: 1.48 MB / 0.9669 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0006785/1.018, allocations: 326.9 kB / 1.25 GB, free: 1.164 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.000417/1.019, allocations: 315 kB / 1.251 GB, free: 0.8633 MB / 0.9669 GB Notification: Performance of Backend: time 3.9e-07/1.019, allocations: 0 / 1.251 GB, free: 0.8633 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.003881/1.023, allocations: 1.498 MB / 1.252 GB, free: 15.32 MB / 0.9825 GB Notification: Performance of SimCode: time 0.002255/1.025, allocations: 1.421 MB / 1.254 GB, free: 13.86 MB / 0.9825 GB Notification: Performance of Templates: time 0.02459/1.049, allocations: 15.36 MB / 1.269 GB, free: 14.57 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.sim & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACSimpleGrid.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches