Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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.ThreePhasesBalanced.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_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.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_9_Buildings.Electrical.AC.ThreePhasesBalanced.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.001534/0.001534, allocations: 110.4 kB / 16.41 MB, free: 6.488 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.001743/0.001743, allocations: 186.9 kB / 17.34 MB, free: 5.766 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.34/1.34, allocations: 222.9 MB / 241 MB, free: 14.97 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.194/2.194, allocations: 390.3 MB / 0.6655 GB, free: 0.6328 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001463/0.001463, allocations: 55.91 kB / 0.9515 GB, free: 7.637 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8452/0.8467, allocations: 140.4 MB / 1.089 GB, free: 5.492 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R): time 0.007756/0.8545, allocations: 6.805 MB / 1.095 GB, free: 0.8594 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.00533/0.8599, allocations: 3.058 MB / 1.098 GB, free: 14.79 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005906/0.8605, allocations: 28.91 kB / 1.098 GB, free: 14.78 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.002564/0.8631, allocations: 0.9528 MB / 1.099 GB, free: 14.2 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.001442/0.8646, allocations: 0.5021 MB / 1.1 GB, free: 13.89 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.001418/0.866, allocations: 442.6 kB / 1.1 GB, free: 13.69 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.001971/0.868, allocations: 1.227 MB / 1.101 GB, free: 13.13 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001206/0.8692, allocations: 0.661 MB / 1.102 GB, free: 12.85 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009476/0.8702, allocations: 483.1 kB / 1.102 GB, free: 12.64 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009011/0.8711, allocations: 0.5187 MB / 1.103 GB, free: 12.42 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.0001432/0.8712, allocations: 66.84 kB / 1.103 GB, free: 12.42 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009449/0.8722, allocations: 386.2 kB / 1.103 GB, free: 12.3 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0004407/0.8726, allocations: 311.2 kB / 1.104 GB, free: 12.17 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.0005987/0.8732, allocations: 452.3 kB / 1.104 GB, free: 11.91 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.001937/0.8752, allocations: 1.219 MB / 1.105 GB, free: 11.48 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 6.913e-06/0.8752, allocations: 0.6094 kB / 1.105 GB, free: 11.48 MB / 0.8731 GB Notification: Performance of FrontEnd: time 2.134e-06/0.8752, allocations: 0 / 1.105 GB, free: 11.48 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 1.891e-05/0.8752, allocations: 0 / 1.105 GB, free: 11.48 MB / 0.8731 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.00241/0.8776, allocations: 1.166 MB / 1.106 GB, free: 10.69 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.49e-05/0.8777, allocations: 13.28 kB / 1.106 GB, free: 10.68 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001772/0.8795, allocations: 243.1 kB / 1.107 GB, free: 10.62 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001007/0.8805, allocations: 0.6047 MB / 1.107 GB, free: 10.23 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.225e-05/0.8805, allocations: 43.47 kB / 1.107 GB, free: 10.22 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001122/0.8807, allocations: 65.72 kB / 1.107 GB, free: 10.2 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001691/0.8824, allocations: 1.089 MB / 1.108 GB, free: 9.574 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.544e-05/0.8824, allocations: 6.688 kB / 1.108 GB, free: 9.57 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.744e-05/0.8825, allocations: 29.78 kB / 1.108 GB, free: 9.551 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001675/0.8827, allocations: 84.56 kB / 1.109 GB, free: 9.539 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001213/0.8839, allocations: 0.7573 MB / 1.109 GB, free: 9.262 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005431/0.8893, allocations: 5.87 MB / 1.115 GB, free: 4.258 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001151/0.8905, allocations: 0.5544 MB / 1.116 GB, free: 4.039 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004541/0.891, allocations: 325.3 kB / 1.116 GB, free: 3.914 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 3.153e-05/0.891, allocations: 5.844 kB / 1.116 GB, free: 3.914 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.672e-05/0.891, allocations: 42 kB / 1.116 GB, free: 3.867 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=47): time 2.445e-06/0.8911, allocations: 0 / 1.116 GB, free: 3.867 MB / 0.8731 GB Notification: Performance of matching and sorting (n=48): time 0.004193/0.8953, allocations: 1.989 MB / 1.118 GB, free: 2.812 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.015e-05/0.8953, allocations: 61.77 kB / 1.118 GB, free: 2.746 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007075/0.896, allocations: 0.5604 MB / 1.118 GB, free: 2.484 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 4.363e-05/0.8961, allocations: 35.05 kB / 1.118 GB, free: 2.445 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002745/0.8964, allocations: 418.8 kB / 1.119 GB, free: 2.109 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001435/0.8965, allocations: 172 kB / 1.119 GB, free: 1.977 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001939/0.8967, allocations: 123.9 kB / 1.119 GB, free: 1.91 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001546/0.8969, allocations: 378.4 kB / 1.12 GB, free: 1.566 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004331/0.8973, allocations: 279.3 kB / 1.12 GB, free: 1.465 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005785/0.8979, allocations: 494.3 kB / 1.12 GB, free: 1.094 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001076/0.899, allocations: 0.8121 MB / 1.121 GB, free: 0.5547 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.584e-06/0.899, allocations: 6.781 kB / 1.121 GB, free: 0.5508 MB / 0.8731 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001861/0.9009, allocations: 1.082 MB / 1.122 GB, free: 92 kB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.077e-05/0.9009, allocations: 9.25 kB / 1.122 GB, free: 92 kB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.066e-05/0.9009, allocations: 5.719 kB / 1.122 GB, free: 92 kB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008751/0.9018, allocations: 286 kB / 1.122 GB, free: 15.99 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000486/0.9023, allocations: 128.4 kB / 1.123 GB, free: 15.98 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006605/0.9089, allocations: 7.125 MB / 1.129 GB, free: 9.75 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000758/0.9097, allocations: 39.28 kB / 1.13 GB, free: 9.738 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.256e-05/0.9098, allocations: 28.09 kB / 1.13 GB, free: 9.734 MB / 0.8887 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.0004449/0.9102, allocations: 255.8 kB / 1.13 GB, free: 9.547 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001507/0.9104, allocations: 72.16 kB / 1.13 GB, free: 9.512 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001621/0.912, allocations: 0.8915 MB / 1.131 GB, free: 9.113 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.172e-06/0.912, allocations: 8.938 kB / 1.131 GB, free: 9.109 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.346e-06/0.912, allocations: 4.672 kB / 1.131 GB, free: 9.109 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.453e-06/0.912, allocations: 6.141 kB / 1.131 GB, free: 9.105 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002829/0.9149, allocations: 1.722 MB / 1.132 GB, free: 8.234 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.081e-06/0.9149, allocations: 2.469 kB / 1.132 GB, free: 8.234 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002787/0.9152, allocations: 64.38 kB / 1.133 GB, free: 8.227 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007592/0.9159, allocations: 277.2 kB / 1.133 GB, free: 8.133 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.481e-05/0.916, allocations: 9.234 kB / 1.133 GB, free: 8.129 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006426/0.9224, allocations: 7.115 MB / 1.14 GB, free: 1.906 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/0.9225, allocations: 2.188 kB / 1.14 GB, free: 1.906 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001729/0.9242, allocations: 0.9921 MB / 1.141 GB, free: 1.379 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003416/0.9245, allocations: 193.5 kB / 1.141 GB, free: 1.227 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.997e-05/0.9246, allocations: 9.609 kB / 1.141 GB, free: 1.223 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004013/0.925, allocations: 33.3 kB / 1.141 GB, free: 1.211 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001305/0.9252, allocations: 45.5 kB / 1.141 GB, free: 1.199 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.521e-05/0.9252, allocations: 11 kB / 1.141 GB, free: 1.199 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.00052/0.9258, allocations: 392.9 kB / 1.141 GB, free: 1.02 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9258, allocations: 5.344 kB / 1.141 GB, free: 1.016 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.0009316/0.9267, allocations: 224 kB / 1.142 GB, free: 0.9922 MB / 0.8887 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.0001644/0.9269, allocations: 115.9 kB / 1.142 GB, free: 0.8906 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.002021/0.9289, allocations: 1.278 MB / 1.143 GB, free: 144 kB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 4.929e-06/0.9289, allocations: 1.031 kB / 1.143 GB, free: 144 kB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.001279/0.9302, allocations: 0.8935 MB / 1.144 GB, free: 15.53 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001051/0.9313, allocations: 225 kB / 1.144 GB, free: 15.44 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002305/0.9336, allocations: 1.384 MB / 1.145 GB, free: 14.7 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005968/0.9342, allocations: 1.017 MB / 1.146 GB, free: 13.96 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001577/0.9344, allocations: 46.2 kB / 1.146 GB, free: 13.95 MB / 0.9044 GB Notification: Performance of SimCode: time 5.41e-07/0.9344, allocations: 0 / 1.146 GB, free: 13.95 MB / 0.9044 GB Notification: Performance of Templates: time 0.0269/0.9613, allocations: 20.91 MB / 1.167 GB, free: 5.355 MB / 0.9044 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_R.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches