Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.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 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.ThreePhasesUnbalanced.Lines.Examples.ACLine_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.terminal.phase.1..v.1.|R2.terminal.phase.1..v.1.|R3.terminal.phase.1..v.1.|E.vPhase.1..terminal.v.1.|R1.load1.i.1.|R2.load1.i.1.|R3.load1.i.1.|sc_load.load1.i.1.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.terminal.phase.1..v.1.|R2.terminal.phase.1..v.1.|R3.terminal.phase.1..v.1.|E.vPhase.1..terminal.v.1.|R1.load1.i.1.|R2.load1.i.1.|R3.load1.i.1.|sc_load.load1.i.1.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.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.000788/0.000788, allocations: 97.78 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009214/0.0009214, allocations: 187.3 kB / 16.92 MB, free: 6.75 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.433/1.433, allocations: 223.3 MB / 241 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.735/2.735, allocations: 462.6 MB / 0.737 GB, free: 15.56 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.000366/0.0003658, allocations: 8.312 kB / 0.9034 GB, free: 36.51 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3191/0.3194, allocations: 159.6 MB / 1.059 GB, free: 4.984 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R): time 0.035/0.3545, allocations: 33.98 MB / 1.093 GB, free: 2.891 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.01627/0.3708, allocations: 9.828 MB / 1.102 GB, free: 9.035 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003573/0.3744, allocations: 131.2 kB / 1.102 GB, free: 8.906 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.002352/0.3768, allocations: 0.6977 MB / 1.103 GB, free: 8.203 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.005641/0.3825, allocations: 1.921 MB / 1.105 GB, free: 6.273 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.004767/0.3873, allocations: 1.6 MB / 1.106 GB, free: 4.676 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.01464/0.4019, allocations: 11.19 MB / 1.117 GB, free: 9.457 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.02079/0.4228, allocations: 12.16 MB / 1.129 GB, free: 13.19 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005577/0.4284, allocations: 2.404 MB / 1.132 GB, free: 10.78 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006214/0.4347, allocations: 3.211 MB / 1.135 GB, free: 7.555 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.001397/0.4361, allocations: 284 kB / 1.135 GB, free: 7.277 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003673/0.4398, allocations: 1.267 MB / 1.136 GB, free: 6.008 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.00321/0.443, allocations: 2.1 MB / 1.138 GB, free: 3.902 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.00532/0.4484, allocations: 2.536 MB / 1.141 GB, free: 1.348 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.01084/0.4593, allocations: 8.591 MB / 1.149 GB, free: 8.734 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 6.422e-06/0.4593, allocations: 0 / 1.149 GB, free: 8.734 MB / 0.9044 GB Notification: Performance of FrontEnd: time 2.735e-06/0.4593, allocations: 0 / 1.149 GB, free: 8.734 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 0.0003693/0.4597, allocations: 0 / 1.149 GB, free: 8.734 MB / 0.9044 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1286 * Number of variables: 1286 Notification: Performance of Generate backend data structure: time 0.01175/0.4715, allocations: 4.363 MB / 1.153 GB, free: 4.301 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.891e-05/0.4715, allocations: 11.97 kB / 1.153 GB, free: 4.289 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005759/0.4773, allocations: 0.9626 MB / 1.154 GB, free: 3.32 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006128/0.4835, allocations: 2.995 MB / 1.157 GB, free: 276 kB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003052/0.4838, allocations: 362 kB / 1.158 GB, free: 15.91 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001544/0.4853, allocations: 468.2 kB / 1.158 GB, free: 15.45 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01605/0.5014, allocations: 7.906 MB / 1.166 GB, free: 7.184 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001337/0.5016, allocations: 15.88 kB / 1.166 GB, free: 7.168 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000714/0.5023, allocations: 208 kB / 1.166 GB, free: 6.965 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005624/0.5029, allocations: 369 kB / 1.166 GB, free: 6.602 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01247/0.5154, allocations: 5.941 MB / 1.172 GB, free: 0.6445 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04176/0.5572, allocations: 36.25 MB / 1.207 GB, free: 9.156 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003601/0.5608, allocations: 2.154 MB / 1.21 GB, free: 6.984 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002097/0.5629, allocations: 1.481 MB / 1.211 GB, free: 5.508 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001158/0.5631, allocations: 17.3 kB / 1.211 GB, free: 5.492 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.832e-05/0.5631, allocations: 59.81 kB / 1.211 GB, free: 5.426 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=157): time 4.458e-06/0.5632, allocations: 4 kB / 1.211 GB, free: 5.422 MB / 0.9669 GB Notification: Performance of matching and sorting (n=160): time 0.01469/0.5778, allocations: 7.572 MB / 1.219 GB, free: 13.57 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.59e-05/0.5779, allocations: 68.72 kB / 1.219 GB, free: 13.49 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003248/0.5812, allocations: 1.864 MB / 1.22 GB, free: 11.6 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 0.0002477/0.5815, allocations: 53.7 kB / 1.22 GB, free: 11.54 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.00139/0.5829, allocations: 2.123 MB / 1.223 GB, free: 9.395 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006555/0.5835, allocations: 0.5545 MB / 1.223 GB, free: 8.832 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003452/0.5839, allocations: 178.1 kB / 1.223 GB, free: 8.652 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 8.529e-05/0.584, allocations: 309.1 kB / 1.224 GB, free: 8.348 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001686/0.5857, allocations: 1.058 MB / 1.225 GB, free: 7.285 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002148/0.5878, allocations: 1.771 MB / 1.226 GB, free: 5.195 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00392/0.5918, allocations: 3.041 MB / 1.229 GB, free: 1.84 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.025e-05/0.5918, allocations: 8 kB / 1.229 GB, free: 1.832 MB / 0.9825 GB Notification: Performance of matching and sorting (n=281) (initialization): time 0.006709/0.5985, allocations: 3.921 MB / 1.233 GB, free: 13.86 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 3.864e-05/0.5986, allocations: 16 kB / 1.233 GB, free: 13.85 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.859e-05/0.5986, allocations: 20 kB / 1.233 GB, free: 13.83 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002469/0.6011, allocations: 0.9431 MB / 1.234 GB, free: 12.85 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001542/0.6027, allocations: 427.3 kB / 1.234 GB, free: 12.43 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.6716/1.274, allocations: 21.06 MB / 1.255 GB, free: 162.6 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00273/1.277, allocations: 129.4 kB / 1.255 GB, free: 162.6 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003513/1.277, allocations: 95.81 kB / 1.255 GB, free: 162.6 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 101 * 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 (227): * Single equations (assignments): 215 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 12 systems {(2,6,100.0%), (2,6,100.0%), (2,6,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (2,2,100.0%), (2,2,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.00353/1.281, allocations: 1.647 MB / 1.257 GB, free: 162.5 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006417/1.282, allocations: 255.5 kB / 1.257 GB, free: 162.5 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005471/1.287, allocations: 3.262 MB / 1.26 GB, free: 162.3 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.829e-05/1.287, allocations: 20.72 kB / 1.26 GB, free: 162.3 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.512e-05/1.287, allocations: 12.12 kB / 1.26 GB, free: 162.3 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.589e-05/1.287, allocations: 9.062 kB / 1.26 GB, free: 162.3 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01407/1.301, allocations: 7.545 MB / 1.268 GB, free: 161.6 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.387e-05/1.301, allocations: 5.453 kB / 1.268 GB, free: 161.6 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009937/1.302, allocations: 218.4 kB / 1.268 GB, free: 161.6 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002547/1.305, allocations: 0.893 MB / 1.269 GB, free: 161.5 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001873/1.305, allocations: 37.22 kB / 1.269 GB, free: 161.5 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01936/1.324, allocations: 21.05 MB / 1.289 GB, free: 144.1 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.214e-05/1.325, allocations: 5.938 kB / 1.289 GB, free: 144.1 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006398/1.331, allocations: 3.39 MB / 1.293 GB, free: 142.6 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001428/1.332, allocations: 0.5287 MB / 1.293 GB, free: 142.3 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004286/1.333, allocations: 35.94 kB / 1.293 GB, free: 142.3 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001178/1.334, allocations: 96.98 kB / 1.293 GB, free: 142.3 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005081/1.335, allocations: 137.7 kB / 1.293 GB, free: 142.3 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001148/1.335, allocations: 46.5 kB / 1.293 GB, free: 142.2 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001866/1.337, allocations: 1.228 MB / 1.295 GB, free: 141.8 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.6e-07/1.337, allocations: 0 / 1.295 GB, free: 141.8 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.003808/1.34, allocations: 0.9075 MB / 1.296 GB, free: 141.7 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * 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 (109): * Single equations (assignments): 97 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 12 systems {(2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,6,100.0%), (2,6,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.0003406/1.341, allocations: 164.7 kB / 1.296 GB, free: 141.6 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.006276/1.347, allocations: 4.419 MB / 1.3 GB, free: 139.1 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.188e-05/1.347, allocations: 1.469 kB / 1.3 GB, free: 139.1 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.003904/1.351, allocations: 3 MB / 1.303 GB, free: 137.1 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004869/1.356, allocations: 0.7711 MB / 1.304 GB, free: 136.9 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01325/1.369, allocations: 10.33 MB / 1.314 GB, free: 131 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003201/1.372, allocations: 3.282 MB / 1.317 GB, free: 129.7 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006688/1.373, allocations: 160.6 kB / 1.317 GB, free: 129.7 MB / 0.9981 GB Notification: Performance of SimCode: time 7.61e-07/1.373, allocations: 0 / 1.317 GB, free: 129.7 MB / 0.9981 GB Notification: Performance of Templates: time 0.2885/1.662, allocations: 339.1 MB / 1.648 GB, free: 2.996 MB / 1.201 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches