Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_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 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.ACLineMatrix_RL_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Rline_1.terminal_n.phase.1..i.1.|Rline_1.terminal_n.phase.1..i.2.|Rline_2a.terminal_n.phase.1..i.1.|Rline_2a.terminal_n.phase.1..i.2.|Rline_3a.terminal_n.phase.1..i.1.|Rline_3a.terminal_n.phase.1..i.2.|Rline_3b.terminal_n.phase.1..i.1.|Rline_3b.terminal_n.phase.1..i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Rline_1.terminal_n.phase.1..i.1.|Rline_1.terminal_n.phase.1..i.2.|Rline_2a.terminal_n.phase.1..i.1.|Rline_2a.terminal_n.phase.1..i.2.|Rline_3a.terminal_n.phase.1..i.1.|Rline_3a.terminal_n.phase.1..i.2.|Rline_3b.terminal_n.phase.1..i.1.|Rline_3b.terminal_n.phase.1..i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001503/0.001503, allocations: 116.1 kB / 16.37 MB, free: 6.012 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.001746/0.001746, allocations: 194.3 kB / 17.31 MB, free: 5.613 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.484/1.484, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.476/2.476, allocations: 442.6 MB / 0.7165 GB, free: 14.67 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001301/0.001301, allocations: 63.22 kB / 0.8773 GB, free: 11 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3219/0.3232, allocations: 153 MB / 1.027 GB, free: 2.062 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N): time 0.02634/0.3495, allocations: 23.42 MB / 1.05 GB, free: 10.56 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.01254/0.3621, allocations: 6.484 MB / 1.056 GB, free: 4.059 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002375/0.3646, allocations: 95.56 kB / 1.056 GB, free: 3.965 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.004023/0.3686, allocations: 1.499 MB / 1.058 GB, free: 2.461 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.004298/0.3729, allocations: 1.828 MB / 1.059 GB, free: 0.625 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.003508/0.3764, allocations: 1.461 MB / 1.061 GB, free: 15.16 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.007476/0.3839, allocations: 6.9 MB / 1.067 GB, free: 8.242 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.008082/0.392, allocations: 6.953 MB / 1.074 GB, free: 1.191 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.5674/0.9594, allocations: 2.834 MB / 1.077 GB, free: 25.02 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007788/0.9673, allocations: 3.479 MB / 1.08 GB, free: 24.93 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.002246/0.9695, allocations: 0.5264 MB / 1.081 GB, free: 24.93 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004628/0.9742, allocations: 1.174 MB / 1.082 GB, free: 24.93 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.004875/0.9791, allocations: 2.461 MB / 1.084 GB, free: 24.77 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.006248/0.9853, allocations: 2.536 MB / 1.087 GB, free: 24.13 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.01523/1.001, allocations: 8.52 MB / 1.095 GB, free: 23.34 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 9.548e-06/1.001, allocations: 3.094 kB / 1.095 GB, free: 23.34 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.073e-06/1.001, allocations: 0 / 1.095 GB, free: 23.34 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 0.000376/1.001, allocations: 0 / 1.095 GB, free: 23.34 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: 1053 * Number of variables: 1053 Notification: Performance of Generate backend data structure: time 0.01994/1.021, allocations: 4.432 MB / 1.1 GB, free: 21.59 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 5.217e-05/1.021, allocations: 10.23 kB / 1.1 GB, free: 21.59 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01158/1.033, allocations: 1.682 MB / 1.101 GB, free: 21.35 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01105/1.044, allocations: 2.694 MB / 1.104 GB, free: 20.17 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005673/1.044, allocations: 279.6 kB / 1.104 GB, free: 20.06 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003437/1.048, allocations: 357.4 kB / 1.104 GB, free: 19.96 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02481/1.073, allocations: 7.483 MB / 1.112 GB, free: 17.05 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001556/1.073, allocations: 22.22 kB / 1.112 GB, free: 17.05 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009116/1.074, allocations: 160.8 kB / 1.112 GB, free: 16.95 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006676/1.074, allocations: 489.8 kB / 1.112 GB, free: 16.88 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01319/1.088, allocations: 5.694 MB / 1.118 GB, free: 15.03 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05506/1.143, allocations: 31.5 MB / 1.149 GB, free: 3.504 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003705/1.146, allocations: 2.084 MB / 1.151 GB, free: 2.391 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003225/1.15, allocations: 2.176 MB / 1.153 GB, free: 1.262 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001671/1.15, allocations: 17.5 kB / 1.153 GB, free: 1.258 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.168e-05/1.15, allocations: 47.86 kB / 1.153 GB, free: 1.207 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=146): time 3.687e-06/1.15, allocations: 0 / 1.153 GB, free: 1.207 MB / 0.8575 GB Notification: Performance of matching and sorting (n=251): time 0.2781/1.428, allocations: 77.01 MB / 1.228 GB, free: 11.55 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.135e-05/1.428, allocations: 77.41 kB / 1.228 GB, free: 11.46 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002764/1.431, allocations: 1.666 MB / 1.23 GB, free: 9.754 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 0.0006983/1.432, allocations: 67.2 kB / 1.23 GB, free: 9.684 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.001298/1.433, allocations: 1.745 MB / 1.232 GB, free: 7.922 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.001193/1.434, allocations: 0.8508 MB / 1.232 GB, free: 7.078 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001079/1.435, allocations: 485.2 kB / 1.233 GB, free: 6.598 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001469/1.435, allocations: 313.1 kB / 1.233 GB, free: 6.289 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003894/1.439, allocations: 2.73 MB / 1.236 GB, free: 3.555 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004489/1.444, allocations: 3.329 MB / 1.239 GB, free: 15.98 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008595/1.452, allocations: 6.399 MB / 1.245 GB, free: 9.414 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.567e-05/1.452, allocations: 4 kB / 1.245 GB, free: 9.41 MB / 0.9512 GB Notification: Performance of matching and sorting (n=331) (initialization): time 0.03223/1.485, allocations: 14.68 MB / 1.26 GB, free: 10.98 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 4.502e-05/1.485, allocations: 12 kB / 1.26 GB, free: 10.97 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.768e-05/1.485, allocations: 16.84 kB / 1.26 GB, free: 10.95 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02822/1.513, allocations: 9.244 MB / 1.269 GB, free: 1.688 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001317/1.514, allocations: 301.5 kB / 1.269 GB, free: 1.414 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08032/1.595, allocations: 52.34 MB / 1.32 GB, free: 12.32 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003551/1.598, allocations: 223.7 kB / 1.32 GB, free: 12.1 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004475/1.599, allocations: 99.47 kB / 1.321 GB, free: 12.01 MB / 1.029 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 78 * 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 (157): * Single equations (assignments): 151 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(19,19,64.8%), (19,19,60.9%), (12,18,50.0%), (12,18,50.0%), (12,10,52.8%), (12,10,52.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003793/1.603, allocations: 1.588 MB / 1.322 GB, free: 10.43 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007417/1.603, allocations: 249 kB / 1.322 GB, free: 10.18 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03031/1.634, allocations: 14.74 MB / 1.337 GB, free: 11.58 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.386e-05/1.634, allocations: 24 kB / 1.337 GB, free: 11.56 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001456/1.634, allocations: 48 kB / 1.337 GB, free: 11.51 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.51e-05/1.634, allocations: 11.95 kB / 1.337 GB, free: 11.5 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04262/1.677, allocations: 20.51 MB / 1.357 GB, free: 6.965 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.529e-05/1.677, allocations: 4.844 kB / 1.357 GB, free: 6.961 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008543/1.678, allocations: 163.7 kB / 1.357 GB, free: 6.801 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02928/1.707, allocations: 9.006 MB / 1.366 GB, free: 13.77 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007057/1.708, allocations: 52 kB / 1.366 GB, free: 13.72 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.07975/1.787, allocations: 51.91 MB / 1.417 GB, free: 8.965 MB / 1.123 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.063e-05/1.787, allocations: 11.98 kB / 1.417 GB, free: 8.953 MB / 1.123 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03269/1.82, allocations: 14.36 MB / 1.431 GB, free: 10.46 MB / 1.139 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003274/1.823, allocations: 0.8455 MB / 1.431 GB, free: 9.59 MB / 1.139 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001064/1.825, allocations: 55.92 kB / 1.431 GB, free: 9.535 MB / 1.139 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00261/1.827, allocations: 207.7 kB / 1.432 GB, free: 9.332 MB / 1.139 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001391/1.829, allocations: 241.4 kB / 1.432 GB, free: 9.098 MB / 1.139 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000258/1.829, allocations: 68 kB / 1.432 GB, free: 9.031 MB / 1.139 GB Notification: Performance of sorting global known variables: time 0.001744/1.831, allocations: 1.125 MB / 1.433 GB, free: 7.883 MB / 1.139 GB Notification: Performance of sort global known variables: time 2e-07/1.831, allocations: 0 / 1.433 GB, free: 7.883 MB / 1.139 GB Notification: Performance of remove unused functions: time 0.005716/1.836, allocations: 1.617 MB / 1.435 GB, free: 6.266 MB / 1.139 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * 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 (80): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(12,10,53.5%), (12,18,50.0%), (19,19,64.8%), (12,10,53.5%), (12,18,50.0%), (19,19,54.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000541/1.837, allocations: 163 kB / 1.435 GB, free: 6.098 MB / 1.139 GB Notification: Performance of simCode: created initialization part: time 0.02305/1.86, allocations: 10.57 MB / 1.445 GB, free: 11.47 MB / 1.154 GB Notification: Performance of simCode: created event and clocks part: time 9.939e-06/1.86, allocations: 0 / 1.445 GB, free: 11.47 MB / 1.154 GB Notification: Performance of simCode: created simulation system equations: time 0.01897/1.879, allocations: 7.303 MB / 1.452 GB, free: 4.121 MB / 1.154 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003819/1.883, allocations: 0.5603 MB / 1.453 GB, free: 3.578 MB / 1.154 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01764/1.901, allocations: 8.693 MB / 1.461 GB, free: 10.82 MB / 1.17 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004618/1.905, allocations: 3.228 MB / 1.464 GB, free: 7.551 MB / 1.17 GB Notification: Performance of simCode: alias equations: time 0.001242/1.906, allocations: 395.3 kB / 1.465 GB, free: 7.16 MB / 1.17 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002777/1.907, allocations: 95.44 kB / 1.465 GB, free: 7.07 MB / 1.17 GB Notification: Performance of SimCode: time 7.81e-07/1.907, allocations: 0 / 1.465 GB, free: 7.07 MB / 1.17 GB Notification: Performance of Templates: time 0.7706/2.677, allocations: 91.86 MB / 1.555 GB, free: 420.9 MB / 1.232 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLineMatrix_RL_N.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches