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.001353/0.001353, allocations: 108 kB / 15.61 MB, free: 152 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.001486/0.001486, allocations: 196.6 kB / 16.53 MB, free: 6.664 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.493/1.493, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.771/2.771, allocations: 472.6 MB / 0.7451 GB, free: 4.609 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001197/0.001197, allocations: 65.94 kB / 0.9121 GB, free: 33.31 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3589/0.3601, allocations: 159.9 MB / 1.068 GB, free: 10.39 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N): time 0.05067/0.4109, allocations: 23.41 MB / 1.091 GB, free: 2.895 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.01364/0.4246, allocations: 6.492 MB / 1.097 GB, free: 12.38 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003735/0.4284, allocations: 99.5 kB / 1.098 GB, free: 12.29 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.004877/0.4333, allocations: 1.48 MB / 1.099 GB, free: 10.8 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.005135/0.4384, allocations: 1.836 MB / 1.101 GB, free: 8.957 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.004018/0.4425, allocations: 1.457 MB / 1.102 GB, free: 7.5 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.007757/0.4502, allocations: 6.904 MB / 1.109 GB, free: 0.5781 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01054/0.4608, allocations: 7 MB / 1.116 GB, free: 9.48 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004981/0.4658, allocations: 2.843 MB / 1.119 GB, free: 6.629 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005531/0.4714, allocations: 3.466 MB / 1.122 GB, free: 3.152 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.001783/0.4732, allocations: 0.5234 MB / 1.122 GB, free: 2.629 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003366/0.4766, allocations: 1.178 MB / 1.124 GB, free: 1.449 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.003561/0.4802, allocations: 2.464 MB / 1.126 GB, free: 14.98 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.005302/0.4855, allocations: 2.532 MB / 1.128 GB, free: 12.44 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.01145/0.497, allocations: 8.468 MB / 1.137 GB, free: 3.945 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 1.039e-05/0.497, allocations: 0 / 1.137 GB, free: 3.945 MB / 0.8887 GB Notification: Performance of FrontEnd: time 3.867e-06/0.497, allocations: 0 / 1.137 GB, free: 3.945 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 0.000378/0.4974, allocations: 0 / 1.137 GB, free: 3.945 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.01152/0.509, allocations: 4.431 MB / 1.141 GB, free: 15.45 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 5.271e-05/0.509, allocations: 12.03 kB / 1.141 GB, free: 15.43 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009011/0.518, allocations: 1.673 MB / 1.143 GB, free: 13.75 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005456/0.5235, allocations: 2.571 MB / 1.145 GB, free: 11.13 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003391/0.5239, allocations: 279.7 kB / 1.145 GB, free: 10.86 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001519/0.5254, allocations: 360.2 kB / 1.146 GB, free: 10.5 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0151/0.5406, allocations: 7.487 MB / 1.153 GB, free: 2.75 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001311/0.5407, allocations: 19.86 kB / 1.153 GB, free: 2.73 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009447/0.5417, allocations: 159.9 kB / 1.153 GB, free: 2.574 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005941/0.5423, allocations: 483.4 kB / 1.154 GB, free: 2.102 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01041/0.5527, allocations: 5.705 MB / 1.159 GB, free: 12.39 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04047/0.5932, allocations: 31.72 MB / 1.19 GB, free: 9.895 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003117/0.5964, allocations: 2.082 MB / 1.192 GB, free: 7.805 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00307/0.5995, allocations: 2.182 MB / 1.194 GB, free: 5.617 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001877/0.5997, allocations: 17.31 kB / 1.195 GB, free: 5.598 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.194e-05/0.5997, allocations: 47.88 kB / 1.195 GB, free: 5.543 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=146): time 3.857e-06/0.5997, allocations: 0 / 1.195 GB, free: 5.543 MB / 0.9512 GB Notification: Performance of matching and sorting (n=251): time 0.8572/1.457, allocations: 77 MB / 1.27 GB, free: 168.4 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.914e-05/1.457, allocations: 78.22 kB / 1.27 GB, free: 168.3 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002274/1.459, allocations: 1.671 MB / 1.271 GB, free: 167.7 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0004111/1.46, allocations: 65.3 kB / 1.272 GB, free: 167.6 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009032/1.461, allocations: 1.745 MB / 1.273 GB, free: 166.3 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007769/1.461, allocations: 0.8552 MB / 1.274 GB, free: 165.7 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009661/1.462, allocations: 485.6 kB / 1.275 GB, free: 165.4 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 3.714e-05/1.462, allocations: 302.5 kB / 1.275 GB, free: 165.1 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003566/1.466, allocations: 2.731 MB / 1.277 GB, free: 163.8 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0038/1.47, allocations: 3.327 MB / 1.281 GB, free: 161.6 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00771/1.478, allocations: 6.398 MB / 1.287 GB, free: 157.8 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.48e-05/1.478, allocations: 7.75 kB / 1.287 GB, free: 157.8 MB / 0.9981 GB Notification: Performance of matching and sorting (n=331) (initialization): time 0.0296/1.507, allocations: 14.67 MB / 1.301 GB, free: 149.3 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 3.198e-05/1.507, allocations: 11.84 kB / 1.301 GB, free: 149.3 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.498e-05/1.507, allocations: 19.69 kB / 1.301 GB, free: 149.3 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02644/1.534, allocations: 9.293 MB / 1.31 GB, free: 141.4 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001118/1.535, allocations: 307.4 kB / 1.311 GB, free: 141.1 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0666/1.601, allocations: 52.39 MB / 1.362 GB, free: 87.91 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003224/1.605, allocations: 223.7 kB / 1.362 GB, free: 87.69 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002963/1.605, allocations: 101.8 kB / 1.362 GB, free: 87.59 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.002382/1.607, allocations: 1.583 MB / 1.364 GB, free: 86 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000524/1.608, allocations: 241.1 kB / 1.364 GB, free: 85.77 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02866/1.637, allocations: 14.76 MB / 1.378 GB, free: 70.95 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.207e-05/1.637, allocations: 24 kB / 1.378 GB, free: 70.93 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001057/1.637, allocations: 48.44 kB / 1.378 GB, free: 70.88 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.917e-05/1.637, allocations: 11.95 kB / 1.378 GB, free: 70.87 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03598/1.673, allocations: 20.52 MB / 1.398 GB, free: 50.2 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.761e-05/1.673, allocations: 8 kB / 1.399 GB, free: 50.19 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007351/1.674, allocations: 163.7 kB / 1.399 GB, free: 50.03 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02599/1.7, allocations: 9.065 MB / 1.408 GB, free: 40.94 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004864/1.7, allocations: 48 kB / 1.408 GB, free: 40.89 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06879/1.769, allocations: 51.95 MB / 1.458 GB, free: 4.113 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.701e-06/1.769, allocations: 4 kB / 1.458 GB, free: 4.109 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03239/1.801, allocations: 14.36 MB / 1.472 GB, free: 5.602 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002334/1.804, allocations: 0.8493 MB / 1.473 GB, free: 4.73 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005294/1.804, allocations: 51.98 kB / 1.473 GB, free: 4.68 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00222/1.807, allocations: 203.7 kB / 1.473 GB, free: 4.48 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00139/1.808, allocations: 247.1 kB / 1.474 GB, free: 4.242 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002209/1.808, allocations: 68 kB / 1.474 GB, free: 4.176 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.001662/1.81, allocations: 1.125 MB / 1.475 GB, free: 3.027 MB / 1.029 GB Notification: Performance of sort global known variables: time 3.61e-07/1.81, allocations: 0 / 1.475 GB, free: 3.027 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.004651/1.815, allocations: 1.609 MB / 1.476 GB, free: 1.418 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.0003774/1.815, allocations: 168.8 kB / 1.477 GB, free: 1.246 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.02498/1.84, allocations: 11.34 MB / 1.488 GB, free: 5.855 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 8.376e-06/1.84, allocations: 224 / 1.488 GB, free: 5.855 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.01871/1.859, allocations: 7.303 MB / 1.495 GB, free: 14.51 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003025/1.862, allocations: 0.5585 MB / 1.495 GB, free: 13.97 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01552/1.877, allocations: 8.779 MB / 1.504 GB, free: 5.148 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003603/1.881, allocations: 3.22 MB / 1.507 GB, free: 1.891 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.001163/1.882, allocations: 389.9 kB / 1.507 GB, free: 1.512 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002576/1.882, allocations: 99.42 kB / 1.507 GB, free: 1.414 MB / 1.061 GB Notification: Performance of SimCode: time 7.02e-07/1.882, allocations: 4 kB / 1.507 GB, free: 1.41 MB / 1.061 GB Notification: Performance of Templates: time 0.1407/2.023, allocations: 91.85 MB / 1.597 GB, free: 5.844 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