Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.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.Lines.Examples.ACLine_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.v.1.|R1.v.2.|R2.v.1.|R2.v.2.|R3.v.1.|R3.v.2.|R1.i.1.|R1.i.2.|sc_load.i.1.|sc_load.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R") translateModel(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.v.1.|R1.v.2.|R2.v.1.|R2.v.2.|R3.v.1.|R3.v.2.|R1.i.1.|R1.i.2.|sc_load.i.1.|sc_load.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001514/0.001514, allocations: 105.7 kB / 16.27 MB, free: 6.414 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.001494/0.001494, allocations: 189.7 kB / 17.2 MB, free: 5.953 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.36/1.36, allocations: 222.9 MB / 240.9 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.651/2.651, allocations: 482.4 MB / 0.7553 GB, free: 6.922 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001881/0.001881, allocations: 68.31 kB / 0.9245 GB, free: 15.98 MB / 0.7012 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7498/0.7517, allocations: 162.2 MB / 1.083 GB, free: 1.652 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R): time 0.008926/0.7607, allocations: 6.731 MB / 1.089 GB, free: 13.06 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.005689/0.7664, allocations: 3.031 MB / 1.092 GB, free: 11 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007922/0.7672, allocations: 27.19 kB / 1.092 GB, free: 10.99 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.002678/0.7699, allocations: 0.9534 MB / 1.093 GB, free: 10.41 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.00164/0.7716, allocations: 0.4982 MB / 1.094 GB, free: 10.12 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.001294/0.7729, allocations: 424.9 kB / 1.094 GB, free: 9.91 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.001831/0.7747, allocations: 1.225 MB / 1.095 GB, free: 9.348 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001214/0.7759, allocations: 0.6606 MB / 1.096 GB, free: 9.074 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008976/0.7768, allocations: 475.3 kB / 1.097 GB, free: 8.871 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007684/0.7776, allocations: 0.5157 MB / 1.097 GB, free: 8.652 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.000127/0.7778, allocations: 66.25 kB / 1.097 GB, free: 8.652 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001008/0.7788, allocations: 375.1 kB / 1.098 GB, free: 8.539 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0004038/0.7792, allocations: 311.1 kB / 1.098 GB, free: 8.41 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0005454/0.7797, allocations: 450.4 kB / 1.098 GB, free: 8.148 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.001799/0.7816, allocations: 1.205 MB / 1.099 GB, free: 7.727 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.7816, allocations: 3.938 kB / 1.099 GB, free: 7.723 MB / 0.8419 GB Notification: Performance of FrontEnd: time 3.547e-06/0.7816, allocations: 1.156 kB / 1.099 GB, free: 7.723 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 1.486e-05/0.7816, allocations: 3.938 kB / 1.099 GB, free: 7.719 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: 183 * Number of variables: 183 Notification: Performance of Generate backend data structure: time 0.002286/0.7839, allocations: 1.155 MB / 1.101 GB, free: 6.93 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.392e-05/0.7839, allocations: 8.844 kB / 1.101 GB, free: 6.93 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001663/0.7856, allocations: 238.8 kB / 1.101 GB, free: 6.875 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00098/0.7866, allocations: 0.5464 MB / 1.101 GB, free: 6.496 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.139e-05/0.7867, allocations: 46.17 kB / 1.101 GB, free: 6.477 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001321/0.7868, allocations: 71.12 kB / 1.101 GB, free: 6.449 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001843/0.7887, allocations: 1.084 MB / 1.103 GB, free: 5.824 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.937e-05/0.7887, allocations: 7.578 kB / 1.103 GB, free: 5.82 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.283e-05/0.7888, allocations: 28.52 kB / 1.103 GB, free: 5.801 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001793/0.789, allocations: 84.89 kB / 1.103 GB, free: 5.789 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001324/0.7903, allocations: 0.7541 MB / 1.103 GB, free: 5.52 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006411/0.7967, allocations: 5.896 MB / 1.109 GB, free: 0.4961 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001113/0.7979, allocations: 0.5588 MB / 1.11 GB, free: 284 kB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005188/0.7984, allocations: 325.2 kB / 1.11 GB, free: 156 kB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 4.102e-05/0.7984, allocations: 4.969 kB / 1.11 GB, free: 156 kB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.548e-05/0.7985, allocations: 42.97 kB / 1.11 GB, free: 108 kB / 0.8419 GB Notification: Performance of pre-optimization done (n=47): time 3.206e-06/0.7985, allocations: 0 / 1.11 GB, free: 108 kB / 0.8419 GB Notification: Performance of matching and sorting (n=48): time 0.004613/0.8031, allocations: 1.981 MB / 1.112 GB, free: 15.05 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.971e-05/0.8032, allocations: 59.38 kB / 1.112 GB, free: 14.99 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008201/0.804, allocations: 0.5557 MB / 1.113 GB, free: 14.73 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 5.02e-05/0.8041, allocations: 34.33 kB / 1.113 GB, free: 14.69 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003444/0.8044, allocations: 422.8 kB / 1.113 GB, free: 14.36 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001819/0.8046, allocations: 171 kB / 1.113 GB, free: 14.22 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002244/0.8048, allocations: 124.3 kB / 1.113 GB, free: 14.16 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0002364/0.8051, allocations: 377.5 kB / 1.114 GB, free: 13.81 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00045/0.8055, allocations: 270.5 kB / 1.114 GB, free: 13.72 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007484/0.8063, allocations: 499.2 kB / 1.114 GB, free: 13.34 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001187/0.8075, allocations: 0.811 MB / 1.115 GB, free: 12.81 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.458e-06/0.8075, allocations: 2.25 kB / 1.115 GB, free: 12.81 MB / 0.8575 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001896/0.8094, allocations: 1.083 MB / 1.116 GB, free: 12.34 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.308e-05/0.8094, allocations: 12.09 kB / 1.116 GB, free: 12.34 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.414e-05/0.8095, allocations: 7.594 kB / 1.116 GB, free: 12.34 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008516/0.8103, allocations: 275.9 kB / 1.116 GB, free: 12.25 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004849/0.8108, allocations: 125.5 kB / 1.117 GB, free: 12.24 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007072/0.8179, allocations: 7.148 MB / 1.124 GB, free: 5.996 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000776/0.8187, allocations: 36.47 kB / 1.124 GB, free: 5.988 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.451e-05/0.8188, allocations: 35.8 kB / 1.124 GB, free: 5.977 MB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (67): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,6,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004403/0.8192, allocations: 254.8 kB / 1.124 GB, free: 5.789 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001207/0.8193, allocations: 76.48 kB / 1.124 GB, free: 5.75 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001646/0.821, allocations: 0.8833 MB / 1.125 GB, free: 5.355 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.662e-06/0.821, allocations: 5.125 kB / 1.125 GB, free: 5.355 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.593e-06/0.821, allocations: 3.812 kB / 1.125 GB, free: 5.355 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.833e-06/0.821, allocations: 3.188 kB / 1.125 GB, free: 5.355 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002851/0.8239, allocations: 1.72 MB / 1.127 GB, free: 4.484 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.66e-06/0.8239, allocations: 2.188 kB / 1.127 GB, free: 4.484 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002775/0.8242, allocations: 68.36 kB / 1.127 GB, free: 4.473 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007487/0.825, allocations: 274.7 kB / 1.127 GB, free: 4.379 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.679e-05/0.825, allocations: 10.97 kB / 1.127 GB, free: 4.371 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006714/0.8317, allocations: 7.126 MB / 1.134 GB, free: 14.14 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.3e-06/0.8318, allocations: 5.125 kB / 1.134 GB, free: 14.13 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001632/0.8334, allocations: 0.9815 MB / 1.135 GB, free: 13.51 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003256/0.8337, allocations: 192.6 kB / 1.135 GB, free: 13.34 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.183e-05/0.8338, allocations: 12.44 kB / 1.135 GB, free: 13.34 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003926/0.8342, allocations: 32.89 kB / 1.135 GB, free: 13.32 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001237/0.8344, allocations: 42.61 kB / 1.135 GB, free: 13.29 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.067e-05/0.8344, allocations: 15.22 kB / 1.135 GB, free: 13.29 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.000459/0.8349, allocations: 380.7 kB / 1.135 GB, free: 13.07 MB / 0.8731 GB Notification: Performance of sort global known variables: time 5.09e-06/0.8349, allocations: 1.406 kB / 1.135 GB, free: 13.07 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0008685/0.8357, allocations: 232.7 kB / 1.136 GB, free: 13.04 MB / 0.8731 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 simulation (31): * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001706/0.8359, allocations: 115.7 kB / 1.136 GB, free: 12.93 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.002072/0.838, allocations: 1.328 MB / 1.137 GB, free: 12.06 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 1.11e-05/0.838, allocations: 1.312 kB / 1.137 GB, free: 12.06 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.00124/0.8393, allocations: 0.8885 MB / 1.138 GB, free: 11.37 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001042/0.8403, allocations: 225 kB / 1.138 GB, free: 11.25 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002284/0.8426, allocations: 1.409 MB / 1.14 GB, free: 10.34 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006497/0.8433, allocations: 1.006 MB / 1.141 GB, free: 9.496 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001473/0.8434, allocations: 45.19 kB / 1.141 GB, free: 9.488 MB / 0.8731 GB Notification: Performance of SimCode: time 6.51e-07/0.8434, allocations: 0 / 1.141 GB, free: 9.488 MB / 0.8731 GB Notification: Performance of Templates: time 0.02695/0.8704, allocations: 20.63 MB / 1.161 GB, free: 12.89 MB / 0.8887 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.sim & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_R.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches