Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N,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_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N,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_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001544/0.001549, allocations: 100.1 kB / 15.88 MB, free: 8 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.001792/0.001792, allocations: 199 kB / 16.79 MB, free: 6.828 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.394/1.394, allocations: 222.9 MB / 240.5 MB, free: 4.551 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.667/2.667, allocations: 437 MB / 0.7106 GB, free: 5.34 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001508/0.001508, allocations: 59.91 kB / 0.8692 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6875/0.689, allocations: 151.6 MB / 1.017 GB, free: 2.793 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N): time 0.03958/0.7286, allocations: 37.62 MB / 1.054 GB, free: 13.06 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.01806/0.7467, allocations: 10.96 MB / 1.065 GB, free: 2.074 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004185/0.751, allocations: 139.3 kB / 1.065 GB, free: 1.938 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.01052/0.7616, allocations: 4.067 MB / 1.069 GB, free: 13.86 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.006562/0.7682, allocations: 2.088 MB / 1.071 GB, free: 11.77 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.006697/0.7749, allocations: 1.976 MB / 1.073 GB, free: 9.793 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.01622/0.7912, allocations: 13.19 MB / 1.086 GB, free: 12.57 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.02091/0.8121, allocations: 12.45 MB / 1.098 GB, free: 16 kB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007344/0.8195, allocations: 3.414 MB / 1.101 GB, free: 12.59 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007765/0.8273, allocations: 4.584 MB / 1.106 GB, free: 7.992 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.002593/0.8299, allocations: 0.5664 MB / 1.106 GB, free: 7.426 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004744/0.8347, allocations: 1.549 MB / 1.108 GB, free: 5.875 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.005336/0.8401, allocations: 2.892 MB / 1.111 GB, free: 2.977 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.007953/0.8481, allocations: 3.356 MB / 1.114 GB, free: 15.6 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.01127/0.8594, allocations: 10.45 MB / 1.124 GB, free: 5.129 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 6.853e-06/0.8594, allocations: 0 / 1.124 GB, free: 5.129 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.934e-06/0.8594, allocations: 0 / 1.124 GB, free: 5.129 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 0.0003964/0.8598, allocations: 0 / 1.124 GB, free: 5.129 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: 1524 * Number of variables: 1524 Notification: Performance of Generate backend data structure: time 0.01727/0.8771, allocations: 6.317 MB / 1.13 GB, free: 14.74 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 5.286e-05/0.8772, allocations: 8.031 kB / 1.13 GB, free: 14.73 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006531/0.8837, allocations: 1.071 MB / 1.131 GB, free: 13.66 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007573/0.8913, allocations: 3.415 MB / 1.135 GB, free: 10.19 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004146/0.8918, allocations: 423.7 kB / 1.135 GB, free: 9.773 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002078/0.8939, allocations: 0.551 MB / 1.136 GB, free: 9.223 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02165/0.9155, allocations: 9.381 MB / 1.145 GB, free: 15.5 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002584/0.9158, allocations: 15.88 kB / 1.145 GB, free: 15.49 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001759/0.9176, allocations: 248 kB / 1.145 GB, free: 15.25 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000663/0.9183, allocations: 422.8 kB / 1.145 GB, free: 14.84 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01485/0.9331, allocations: 7.127 MB / 1.152 GB, free: 7.699 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04912/0.9823, allocations: 41.31 MB / 1.193 GB, free: 10.64 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005013/0.9874, allocations: 3.1 MB / 1.196 GB, free: 7.539 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003177/0.9906, allocations: 2.133 MB / 1.198 GB, free: 5.402 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001782/0.9908, allocations: 25.98 kB / 1.198 GB, free: 5.379 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.028e-05/0.9909, allocations: 64.5 kB / 1.198 GB, free: 5.305 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=209): time 4.078e-06/0.9909, allocations: 0 / 1.198 GB, free: 5.305 MB / 0.9512 GB Notification: Performance of matching and sorting (n=212): time 0.02447/1.015, allocations: 10.54 MB / 1.208 GB, free: 10.66 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.912e-05/1.015, allocations: 77.34 kB / 1.208 GB, free: 10.58 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003248/1.019, allocations: 2.005 MB / 1.21 GB, free: 8.555 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 0.0003384/1.019, allocations: 73.62 kB / 1.21 GB, free: 8.477 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.001584/1.021, allocations: 2.392 MB / 1.213 GB, free: 6.051 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008295/1.022, allocations: 0.7317 MB / 1.213 GB, free: 5.309 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009799/1.022, allocations: 481.2 kB / 1.214 GB, free: 4.832 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 8.944e-05/1.023, allocations: 301.1 kB / 1.214 GB, free: 4.535 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002073/1.025, allocations: 1.372 MB / 1.215 GB, free: 3.16 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002466/1.027, allocations: 2.108 MB / 1.217 GB, free: 0.7344 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005062/1.032, allocations: 3.766 MB / 1.221 GB, free: 12.66 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.205e-05/1.032, allocations: 8 kB / 1.221 GB, free: 12.65 MB / 0.9825 GB Notification: Performance of matching and sorting (n=339) (initialization): time 0.008345/1.041, allocations: 5.057 MB / 1.226 GB, free: 7.566 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 4.298e-05/1.041, allocations: 16 kB / 1.226 GB, free: 7.551 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.545e-05/1.041, allocations: 31.92 kB / 1.226 GB, free: 7.52 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003673/1.044, allocations: 1.579 MB / 1.228 GB, free: 5.93 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001684/1.046, allocations: 455.2 kB / 1.228 GB, free: 5.484 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02168/1.068, allocations: 17.07 MB / 1.245 GB, free: 3.891 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002427/1.07, allocations: 147.9 kB / 1.245 GB, free: 3.746 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005206/1.071, allocations: 104 kB / 1.245 GB, free: 3.645 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 (231): * Single equations (assignments): 227 * 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 {(7,31,57.1%), (6,24,66.7%), (4,18,100.0%), (4,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003768/1.075, allocations: 1.949 MB / 1.247 GB, free: 1.684 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008679/1.076, allocations: 288.6 kB / 1.247 GB, free: 1.398 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5401/1.616, allocations: 4.449 MB / 1.251 GB, free: 210.3 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.011e-05/1.616, allocations: 20.22 kB / 1.252 GB, free: 210.3 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.413e-05/1.616, allocations: 16.97 kB / 1.252 GB, free: 210.3 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.179e-05/1.616, allocations: 11.16 kB / 1.252 GB, free: 210.3 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01875/1.635, allocations: 9.666 MB / 1.261 GB, free: 206.8 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.586e-05/1.635, allocations: 7.125 kB / 1.261 GB, free: 206.8 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00102/1.636, allocations: 234.8 kB / 1.261 GB, free: 206.7 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00362/1.639, allocations: 1.427 MB / 1.263 GB, free: 206.4 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002131/1.639, allocations: 40.09 kB / 1.263 GB, free: 206.4 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02022/1.66, allocations: 17.06 MB / 1.279 GB, free: 196.4 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.13e-06/1.66, allocations: 7.906 kB / 1.279 GB, free: 196.4 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006221/1.666, allocations: 4.541 MB / 1.284 GB, free: 194.5 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001356/1.667, allocations: 0.635 MB / 1.284 GB, free: 194.3 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004044/1.668, allocations: 48.67 kB / 1.284 GB, free: 194.3 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001178/1.669, allocations: 120 kB / 1.285 GB, free: 194.2 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005417/1.67, allocations: 180.7 kB / 1.285 GB, free: 194.2 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001278/1.67, allocations: 59.25 kB / 1.285 GB, free: 194.2 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001666/1.671, allocations: 1.317 MB / 1.286 GB, free: 193.7 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.3e-07/1.671, allocations: 0 / 1.286 GB, free: 193.7 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.003331/1.675, allocations: 1.143 MB / 1.287 GB, free: 193.6 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 (107): * Single equations (assignments): 103 * 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 {(4,18,100.0%), (6,24,66.7%), (4,18,100.0%), (6,32,66.7%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003065/1.675, allocations: 160.9 kB / 1.287 GB, free: 193.4 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.006172/1.681, allocations: 4.689 MB / 1.292 GB, free: 191.4 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.002e-05/1.681, allocations: 0 / 1.292 GB, free: 191.4 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.004046/1.685, allocations: 2.915 MB / 1.295 GB, free: 189.8 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00404/1.689, allocations: 0.8366 MB / 1.296 GB, free: 189.4 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01614/1.706, allocations: 12.54 MB / 1.308 GB, free: 177.7 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004269/1.71, allocations: 3.788 MB / 1.312 GB, free: 173.9 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008064/1.711, allocations: 159.4 kB / 1.312 GB, free: 173.8 MB / 0.9981 GB Notification: Performance of SimCode: time 1.363e-06/1.711, allocations: 7.938 kB / 1.312 GB, free: 173.7 MB / 0.9981 GB Notification: Performance of Templates: time 0.1488/1.86, allocations: 171.8 MB / 1.479 GB, free: 2.047 MB / 0.9981 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.makefile (rm -f Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.sim & ./Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R_N.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches