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.00108/0.00108, allocations: 107.3 kB / 16.41 MB, free: 6.406 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.001029/0.001029, allocations: 188.9 kB / 17.34 MB, free: 5.695 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.326/1.326, allocations: 222.9 MB / 241 MB, free: 15.07 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.241/2.241, allocations: 390.3 MB / 0.6655 GB, free: 0.6016 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001512/0.001512, allocations: 67.88 kB / 0.9515 GB, free: 7.637 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8626/0.8641, allocations: 140.4 MB / 1.089 GB, free: 5.512 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R): time 0.008375/0.8726, allocations: 6.814 MB / 1.095 GB, free: 0.8711 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.005752/0.8784, allocations: 3.058 MB / 1.098 GB, free: 14.8 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006632/0.879, allocations: 29.34 kB / 1.098 GB, free: 14.79 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.002646/0.8817, allocations: 0.9524 MB / 1.099 GB, free: 14.21 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.001508/0.8833, allocations: 0.5292 MB / 1.1 GB, free: 13.89 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.001308/0.8846, allocations: 437 kB / 1.1 GB, free: 13.68 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.00169/0.8863, allocations: 1.232 MB / 1.101 GB, free: 13.12 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001121/0.8874, allocations: 0.6617 MB / 1.102 GB, free: 12.84 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008783/0.8883, allocations: 482.7 kB / 1.102 GB, free: 12.64 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008587/0.8892, allocations: 0.5199 MB / 1.103 GB, free: 12.41 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.0001306/0.8893, allocations: 66.5 kB / 1.103 GB, free: 12.41 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000931/0.8903, allocations: 381.9 kB / 1.103 GB, free: 12.29 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0004583/0.8907, allocations: 311.6 kB / 1.104 GB, free: 12.16 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.0006025/0.8913, allocations: 456.6 kB / 1.104 GB, free: 11.9 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.001721/0.8931, allocations: 1.218 MB / 1.105 GB, free: 11.48 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 5.75e-06/0.8931, allocations: 0.9688 kB / 1.105 GB, free: 11.48 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.473e-06/0.8931, allocations: 0 / 1.105 GB, free: 11.48 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 2.396e-05/0.8931, 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.002001/0.8951, allocations: 1.166 MB / 1.106 GB, free: 10.68 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 3.852e-05/0.8952, allocations: 9.531 kB / 1.106 GB, free: 10.68 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001551/0.8967, allocations: 243.5 kB / 1.107 GB, free: 10.62 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000965/0.8977, allocations: 0.6075 MB / 1.107 GB, free: 10.23 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.925e-05/0.8977, allocations: 43.75 kB / 1.107 GB, free: 10.21 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001072/0.8979, allocations: 66.41 kB / 1.107 GB, free: 10.19 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001591/0.8995, allocations: 1.084 MB / 1.108 GB, free: 9.57 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.758e-05/0.8995, allocations: 7.188 kB / 1.108 GB, free: 9.566 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.67e-05/0.8996, allocations: 33.34 kB / 1.108 GB, free: 9.543 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001634/0.8998, allocations: 84.09 kB / 1.109 GB, free: 9.531 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001219/0.901, allocations: 0.75 MB / 1.109 GB, free: 9.262 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005402/0.9064, allocations: 5.878 MB / 1.115 GB, free: 4.25 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001143/0.9076, allocations: 0.5579 MB / 1.116 GB, free: 4.031 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004603/0.908, allocations: 324.5 kB / 1.116 GB, free: 3.906 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 3.461e-05/0.9081, allocations: 5.656 kB / 1.116 GB, free: 3.906 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.197e-05/0.9081, allocations: 42.3 kB / 1.116 GB, free: 3.859 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=47): time 2.204e-06/0.9081, allocations: 1.531 kB / 1.116 GB, free: 3.859 MB / 0.8731 GB Notification: Performance of matching and sorting (n=48): time 0.003875/0.912, allocations: 1.987 MB / 1.118 GB, free: 2.805 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.587e-05/0.912, allocations: 61.09 kB / 1.118 GB, free: 2.738 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000677/0.9127, allocations: 0.5613 MB / 1.118 GB, free: 2.477 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 4.207e-05/0.9128, allocations: 32.23 kB / 1.119 GB, free: 2.441 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002843/0.9131, allocations: 422.5 kB / 1.119 GB, free: 2.102 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001337/0.9132, allocations: 167.5 kB / 1.119 GB, free: 1.973 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001988/0.9134, allocations: 127.5 kB / 1.119 GB, free: 1.902 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001662/0.9136, allocations: 383.2 kB / 1.12 GB, free: 1.555 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004136/0.914, allocations: 270.5 kB / 1.12 GB, free: 1.461 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005785/0.9146, allocations: 498.8 kB / 1.12 GB, free: 1.086 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001185/0.9158, allocations: 0.8106 MB / 1.121 GB, free: 0.5469 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.601e-06/0.9158, allocations: 6.062 kB / 1.121 GB, free: 0.543 MB / 0.8731 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002151/0.918, allocations: 1.085 MB / 1.122 GB, free: 84 kB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.328e-05/0.918, allocations: 7.938 kB / 1.122 GB, free: 84 kB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.43e-05/0.918, allocations: 6.812 kB / 1.122 GB, free: 84 kB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008864/0.9189, allocations: 277 kB / 1.122 GB, free: 15.99 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005027/0.9194, allocations: 125.6 kB / 1.123 GB, free: 15.98 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007127/0.9266, allocations: 7.133 MB / 1.13 GB, free: 9.75 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008688/0.9275, allocations: 38.5 kB / 1.13 GB, free: 9.738 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.183e-05/0.9275, allocations: 31.39 kB / 1.13 GB, free: 9.73 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.000448/0.928, allocations: 255.5 kB / 1.13 GB, free: 9.543 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001194/0.9281, allocations: 74.25 kB / 1.13 GB, free: 9.508 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001688/0.9298, allocations: 0.8866 MB / 1.131 GB, free: 9.113 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.478e-05/0.9298, allocations: 5.688 kB / 1.131 GB, free: 9.113 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.318e-06/0.9299, allocations: 11.97 kB / 1.131 GB, free: 9.105 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.123e-05/0.9299, allocations: 6.094 kB / 1.131 GB, free: 9.102 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00304/0.9329, allocations: 1.731 MB / 1.132 GB, free: 8.223 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.57e-06/0.9329, allocations: 2 kB / 1.132 GB, free: 8.223 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002903/0.9332, allocations: 64.56 kB / 1.133 GB, free: 8.215 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000795/0.934, allocations: 265.8 kB / 1.133 GB, free: 8.129 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.749e-05/0.9341, allocations: 7.281 kB / 1.133 GB, free: 8.125 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006862/0.941, allocations: 7.113 MB / 1.14 GB, free: 1.906 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.025e-06/0.941, allocations: 1.5 kB / 1.14 GB, free: 1.906 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001804/0.9428, allocations: 0.9908 MB / 1.141 GB, free: 1.379 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003481/0.9432, allocations: 198.3 kB / 1.141 GB, free: 1.223 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.382e-05/0.9433, allocations: 9.266 kB / 1.141 GB, free: 1.219 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003913/0.9436, allocations: 34.84 kB / 1.141 GB, free: 1.207 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001384/0.9438, allocations: 36.69 kB / 1.141 GB, free: 1.203 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.794e-05/0.9438, allocations: 19.5 kB / 1.141 GB, free: 1.195 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.0005253/0.9444, allocations: 392.5 kB / 1.141 GB, free: 1.016 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1.4e-07/0.9444, allocations: 4 kB / 1.141 GB, free: 1.012 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.0009148/0.9453, allocations: 225.7 kB / 1.142 GB, free: 0.9883 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.0001602/0.9455, allocations: 114.8 kB / 1.142 GB, free: 0.8867 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.002113/0.9476, allocations: 1.277 MB / 1.143 GB, free: 140 kB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 4.669e-06/0.9476, allocations: 1.406 kB / 1.143 GB, free: 140 kB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.001318/0.9489, allocations: 0.893 MB / 1.144 GB, free: 15.52 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001073/0.95, allocations: 225.5 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.002442/0.9525, allocations: 1.383 MB / 1.145 GB, free: 14.7 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007015/0.9532, allocations: 1.015 MB / 1.146 GB, free: 13.96 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000159/0.9533, allocations: 49.25 kB / 1.146 GB, free: 13.95 MB / 0.9044 GB Notification: Performance of SimCode: time 5.81e-07/0.9534, allocations: 0 / 1.146 GB, free: 13.95 MB / 0.9044 GB Notification: Performance of Templates: time 0.02817/0.9815, allocations: 20.92 MB / 1.167 GB, free: 5.359 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