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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.001891/0.001891, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.002295/0.002295, allocations: 191.6 kB / 16.13 MB, free: 6.691 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.42/1.42, allocations: 222.9 MB / 239.8 MB, free: 4.629 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.748/2.748, allocations: 472.6 MB / 0.7447 GB, free: 4.922 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001309/0.001309, allocations: 63.97 kB / 0.9114 GB, free: 33.48 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3789/0.3802, allocations: 159.9 MB / 1.068 GB, free: 10.9 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N): time 0.0267/0.407, allocations: 23.24 MB / 1.09 GB, free: 3.582 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0141/0.4211, allocations: 6.5 MB / 1.097 GB, free: 13.06 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003361/0.4245, allocations: 83.56 kB / 1.097 GB, free: 12.98 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.004928/0.4295, allocations: 1.357 MB / 1.098 GB, free: 11.62 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.005823/0.4353, allocations: 1.743 MB / 1.1 GB, free: 9.871 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.004921/0.4403, allocations: 1.326 MB / 1.101 GB, free: 8.547 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.01321/0.4535, allocations: 10.61 MB / 1.111 GB, free: 13.91 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01427/0.4678, allocations: 7.618 MB / 1.119 GB, free: 6.211 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005816/0.4737, allocations: 2.405 MB / 1.121 GB, free: 3.797 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00736/0.4811, allocations: 3.607 MB / 1.125 GB, free: 184 kB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.002111/0.4832, allocations: 380 kB / 1.125 GB, free: 15.8 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00473/0.488, allocations: 1.197 MB / 1.126 GB, free: 14.61 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.005237/0.4933, allocations: 2.319 MB / 1.128 GB, free: 12.29 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.006879/0.5002, allocations: 2.353 MB / 1.131 GB, free: 9.922 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.01278/0.513, allocations: 8.382 MB / 1.139 GB, free: 1.516 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 7.204e-06/0.513, allocations: 4 kB / 1.139 GB, free: 1.512 MB / 0.8887 GB Notification: Performance of FrontEnd: time 2.505e-06/0.513, allocations: 0 / 1.139 GB, free: 1.512 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 0.0003261/0.5134, allocations: 0 / 1.139 GB, free: 1.512 MB / 0.8887 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.01305/0.5264, allocations: 4.424 MB / 1.143 GB, free: 13.02 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.9e-05/0.5265, allocations: 8.031 kB / 1.143 GB, free: 13.01 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00922/0.5357, allocations: 1.677 MB / 1.145 GB, free: 11.32 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005848/0.5416, allocations: 2.575 MB / 1.147 GB, free: 8.695 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002782/0.5419, allocations: 275.7 kB / 1.148 GB, free: 8.426 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001517/0.5435, allocations: 364.2 kB / 1.148 GB, free: 8.07 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01648/0.5599, allocations: 7.487 MB / 1.155 GB, free: 320 kB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.803e-05/0.5601, allocations: 15.88 kB / 1.155 GB, free: 304 kB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005733/0.5607, allocations: 163.9 kB / 1.156 GB, free: 140 kB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005954/0.5613, allocations: 479.3 kB / 1.156 GB, free: 15.67 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01145/0.5727, allocations: 5.697 MB / 1.162 GB, free: 9.965 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04316/0.6159, allocations: 31.72 MB / 1.193 GB, free: 7.473 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003295/0.6193, allocations: 2.096 MB / 1.195 GB, free: 5.371 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003533/0.6228, allocations: 2.178 MB / 1.197 GB, free: 3.188 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002307/0.6231, allocations: 13.31 kB / 1.197 GB, free: 3.172 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.61e-05/0.6231, allocations: 51.88 kB / 1.197 GB, free: 3.113 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=146): time 3.377e-06/0.6232, allocations: 0 / 1.197 GB, free: 3.113 MB / 0.9512 GB Notification: Performance of matching and sorting (n=251): time 0.9251/1.548, allocations: 77 MB / 1.272 GB, free: 168.4 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.663e-05/1.548, allocations: 82.09 kB / 1.272 GB, free: 168.4 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002721/1.551, allocations: 1.667 MB / 1.274 GB, free: 167.5 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0005822/1.552, allocations: 62.3 kB / 1.274 GB, free: 167.4 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009265/1.553, allocations: 1.746 MB / 1.275 GB, free: 165.9 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007691/1.553, allocations: 0.8589 MB / 1.276 GB, free: 165.1 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00101/1.554, allocations: 482.5 kB / 1.277 GB, free: 164.9 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 5.225e-05/1.555, allocations: 306.8 kB / 1.277 GB, free: 164.6 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003742/1.558, allocations: 2.727 MB / 1.28 GB, free: 163.2 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004241/1.563, allocations: 3.331 MB / 1.283 GB, free: 161 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008418/1.571, allocations: 6.397 MB / 1.289 GB, free: 157.1 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-05/1.571, allocations: 7.875 kB / 1.289 GB, free: 157.1 MB / 0.9981 GB Notification: Performance of matching and sorting (n=331) (initialization): time 0.02873/1.6, allocations: 14.67 MB / 1.304 GB, free: 148.5 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 4.067e-05/1.6, allocations: 12 kB / 1.304 GB, free: 148.5 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.687e-05/1.6, allocations: 20 kB / 1.304 GB, free: 148.4 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0272/1.627, allocations: 9.242 MB / 1.313 GB, free: 139.2 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001133/1.628, allocations: 295.5 kB / 1.313 GB, free: 138.9 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06076/1.689, allocations: 47.44 MB / 1.359 GB, free: 90.66 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002895/1.692, allocations: 227.7 kB / 1.359 GB, free: 90.44 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003831/1.692, allocations: 99.98 kB / 1.36 GB, free: 90.34 MB / 0.9981 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.002598/1.695, allocations: 1.574 MB / 1.361 GB, free: 88.76 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006593/1.696, allocations: 249.1 kB / 1.361 GB, free: 88.51 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02767/1.723, allocations: 14.76 MB / 1.376 GB, free: 73.7 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.999e-05/1.723, allocations: 29.36 kB / 1.376 GB, free: 73.68 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001128/1.723, allocations: 44 kB / 1.376 GB, free: 73.63 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.615e-05/1.724, allocations: 11.95 kB / 1.376 GB, free: 73.62 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03523/1.759, allocations: 20.53 MB / 1.396 GB, free: 52.95 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.225e-05/1.759, allocations: 4 kB / 1.396 GB, free: 52.95 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007338/1.76, allocations: 163.7 kB / 1.396 GB, free: 52.79 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02605/1.786, allocations: 8.996 MB / 1.405 GB, free: 43.76 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004798/1.786, allocations: 56 kB / 1.405 GB, free: 43.71 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06166/1.848, allocations: 47.01 MB / 1.451 GB, free: 11.91 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.064e-05/1.848, allocations: 15.92 kB / 1.451 GB, free: 11.89 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03195/1.88, allocations: 14.37 MB / 1.465 GB, free: 13.39 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002584/1.882, allocations: 0.8455 MB / 1.466 GB, free: 12.52 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000604/1.883, allocations: 55.89 kB / 1.466 GB, free: 12.47 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001956/1.885, allocations: 207.7 kB / 1.466 GB, free: 12.27 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001593/1.887, allocations: 245.4 kB / 1.466 GB, free: 12.03 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002399/1.887, allocations: 67.75 kB / 1.466 GB, free: 11.96 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.001827/1.889, allocations: 1.125 MB / 1.467 GB, free: 10.82 MB / 1.029 GB Notification: Performance of sort global known variables: time 1.5e-07/1.889, allocations: 0 / 1.467 GB, free: 10.82 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.006252/1.895, allocations: 1.613 MB / 1.469 GB, free: 9.203 MB / 1.029 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.0005488/1.896, allocations: 159.1 kB / 1.469 GB, free: 9.039 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.02293/1.919, allocations: 10.53 MB / 1.479 GB, free: 14.45 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 1.113e-05/1.919, allocations: 8.812 kB / 1.479 GB, free: 14.44 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.01765/1.936, allocations: 7.31 MB / 1.486 GB, free: 7.078 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003533/1.94, allocations: 0.5186 MB / 1.487 GB, free: 6.57 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01786/1.958, allocations: 10.62 MB / 1.497 GB, free: 11.91 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004479/1.962, allocations: 3.222 MB / 1.5 GB, free: 8.648 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.001415/1.964, allocations: 394.2 kB / 1.501 GB, free: 8.27 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002571/1.964, allocations: 99.42 kB / 1.501 GB, free: 8.172 MB / 1.061 GB Notification: Performance of SimCode: time 1.342e-06/1.964, allocations: 0 / 1.501 GB, free: 8.172 MB / 1.061 GB Notification: Performance of Templates: time 0.1418/2.106, allocations: 89.68 MB / 1.588 GB, free: 14.75 MB / 1.154 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 -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/jenkins/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