Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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.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_9_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_9_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.01001/0.01001, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.002025/0.002025, allocations: 197.3 kB / 16.67 MB, free: 5.934 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.428/1.428, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.277/2.277, allocations: 390.2 MB / 0.6648 GB, free: 0.6328 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001321/0.001321, allocations: 67.89 kB / 0.9509 GB, free: 7.617 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.966/0.9673, allocations: 140.4 MB / 1.088 GB, free: 5.496 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N): time 0.02876/0.9961, allocations: 23.43 MB / 1.111 GB, free: 5.527 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.01377/1.01, allocations: 6.476 MB / 1.117 GB, free: 1.035 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003258/1.013, allocations: 99.03 kB / 1.117 GB, free: 1.004 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.005728/1.019, allocations: 1.5 MB / 1.119 GB, free: 92 kB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.006964/1.026, allocations: 1.935 MB / 1.121 GB, free: 14.98 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.004937/1.031, allocations: 1.471 MB / 1.122 GB, free: 14.17 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.01053/1.041, allocations: 6.914 MB / 1.129 GB, free: 11.18 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01208/1.054, allocations: 6.944 MB / 1.136 GB, free: 8.387 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006379/1.06, allocations: 2.874 MB / 1.138 GB, free: 7.109 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006672/1.067, allocations: 3.478 MB / 1.142 GB, free: 5.66 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.001918/1.069, allocations: 0.5265 MB / 1.142 GB, free: 5.66 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004059/1.073, allocations: 1.177 MB / 1.143 GB, free: 5.414 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.006159/1.079, allocations: 2.459 MB / 1.146 GB, free: 4.504 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.007531/1.086, allocations: 2.537 MB / 1.148 GB, free: 2.887 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.01492/1.101, allocations: 8.545 MB / 1.157 GB, free: 14.47 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 8.446e-06/1.101, allocations: 0 / 1.157 GB, free: 14.47 MB / 0.9044 GB Notification: Performance of FrontEnd: time 2.144e-06/1.101, allocations: 5.344 kB / 1.157 GB, free: 14.46 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 0.0003426/1.102, allocations: 0 / 1.157 GB, free: 14.46 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: 1053 * Number of variables: 1053 Notification: Performance of Generate backend data structure: time 0.01497/1.117, allocations: 4.545 MB / 1.161 GB, free: 11.34 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.257e-05/1.117, allocations: 10.12 kB / 1.161 GB, free: 11.34 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01143/1.128, allocations: 1.705 MB / 1.163 GB, free: 10.46 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01042/1.139, allocations: 2.711 MB / 1.165 GB, free: 8.727 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003954/1.139, allocations: 274.5 kB / 1.166 GB, free: 8.602 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002572/1.142, allocations: 361 kB / 1.166 GB, free: 8.48 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02169/1.163, allocations: 7.48 MB / 1.173 GB, free: 3.996 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001621/1.164, allocations: 18.55 kB / 1.173 GB, free: 3.984 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001336/1.165, allocations: 165 kB / 1.173 GB, free: 3.859 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007328/1.166, allocations: 486.8 kB / 1.174 GB, free: 3.707 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01147/1.177, allocations: 5.704 MB / 1.18 GB, free: 15.88 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04374/1.221, allocations: 31.54 MB / 1.21 GB, free: 13.57 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003126/1.224, allocations: 2.093 MB / 1.212 GB, free: 11.47 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003348/1.228, allocations: 2.178 MB / 1.214 GB, free: 9.289 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001848/1.228, allocations: 17.31 kB / 1.215 GB, free: 9.27 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.533e-05/1.228, allocations: 47.86 kB / 1.215 GB, free: 9.215 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=146): time 3.035e-06/1.228, allocations: 3.938 kB / 1.215 GB, free: 9.211 MB / 0.9512 GB Notification: Performance of matching and sorting (n=251): time 0.3202/1.548, allocations: 77.08 MB / 1.29 GB, free: 11.98 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.022e-05/1.548, allocations: 81.34 kB / 1.29 GB, free: 11.89 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003135/1.551, allocations: 1.67 MB / 1.292 GB, free: 10.18 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 0.0005431/1.552, allocations: 65.7 kB / 1.292 GB, free: 10.11 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.001375/1.553, allocations: 1.795 MB / 1.293 GB, free: 8.297 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 0.001186/1.554, allocations: 0.8907 MB / 1.294 GB, free: 7.398 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001364/1.556, allocations: 493.4 kB / 1.295 GB, free: 6.91 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001008/1.556, allocations: 301.1 kB / 1.295 GB, free: 6.613 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004019/1.56, allocations: 2.726 MB / 1.298 GB, free: 3.883 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004529/1.565, allocations: 3.335 MB / 1.301 GB, free: 304 kB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009129/1.574, allocations: 6.393 MB / 1.307 GB, free: 9.656 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-05/1.574, allocations: 8 kB / 1.307 GB, free: 9.648 MB / 1.045 GB Notification: Performance of matching and sorting (n=331) (initialization): time 0.03512/1.609, allocations: 14.69 MB / 1.322 GB, free: 10.91 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 4.635e-05/1.609, allocations: 12.94 kB / 1.322 GB, free: 10.89 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.35e-05/1.609, allocations: 16 kB / 1.322 GB, free: 10.88 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03145/1.64, allocations: 9.243 MB / 1.331 GB, free: 1.609 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001464/1.642, allocations: 299.4 kB / 1.331 GB, free: 1.316 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0852/1.727, allocations: 52.39 MB / 1.382 GB, free: 12.05 MB / 1.123 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003515/1.731, allocations: 227.7 kB / 1.382 GB, free: 11.82 MB / 1.123 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005988/1.731, allocations: 96 kB / 1.382 GB, free: 11.73 MB / 1.123 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.003824/1.735, allocations: 1.59 MB / 1.384 GB, free: 10.13 MB / 1.123 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009063/1.736, allocations: 254.6 kB / 1.384 GB, free: 9.879 MB / 1.123 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03334/1.769, allocations: 14.75 MB / 1.399 GB, free: 11.07 MB / 1.139 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.353e-05/1.77, allocations: 27.94 kB / 1.399 GB, free: 11.04 MB / 1.139 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001846/1.77, allocations: 44 kB / 1.399 GB, free: 11 MB / 1.139 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.204e-05/1.77, allocations: 15.89 kB / 1.399 GB, free: 10.98 MB / 1.139 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05073/1.821, allocations: 20.52 MB / 1.419 GB, free: 6.258 MB / 1.154 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.787e-05/1.821, allocations: 8 kB / 1.419 GB, free: 6.25 MB / 1.154 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008749/1.822, allocations: 155.8 kB / 1.419 GB, free: 6.098 MB / 1.154 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03/1.852, allocations: 9.016 MB / 1.428 GB, free: 13.05 MB / 1.17 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000919/1.853, allocations: 52 kB / 1.428 GB, free: 13 MB / 1.17 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.08499/1.938, allocations: 51.96 MB / 1.478 GB, free: 8.16 MB / 1.217 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.226e-05/1.938, allocations: 15.92 kB / 1.478 GB, free: 8.145 MB / 1.217 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03445/1.972, allocations: 14.38 MB / 1.492 GB, free: 9.625 MB / 1.232 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003019/1.975, allocations: 0.8506 MB / 1.493 GB, free: 8.754 MB / 1.232 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001068/1.976, allocations: 55.98 kB / 1.493 GB, free: 8.699 MB / 1.232 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002977/1.979, allocations: 207.7 kB / 1.494 GB, free: 8.496 MB / 1.232 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001783/1.981, allocations: 245.4 kB / 1.494 GB, free: 8.258 MB / 1.232 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004119/1.981, allocations: 68.33 kB / 1.494 GB, free: 8.191 MB / 1.232 GB Notification: Performance of sorting global known variables: time 0.002193/1.984, allocations: 1.125 MB / 1.495 GB, free: 7.043 MB / 1.232 GB Notification: Performance of sort global known variables: time 1.733e-06/1.984, allocations: 0 / 1.495 GB, free: 7.043 MB / 1.232 GB Notification: Performance of remove unused functions: time 0.007044/1.991, allocations: 1.617 MB / 1.497 GB, free: 5.426 MB / 1.232 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.0007061/1.991, allocations: 163.1 kB / 1.497 GB, free: 5.258 MB / 1.232 GB Notification: Performance of simCode: created initialization part: time 0.02486/2.016, allocations: 10.58 MB / 1.507 GB, free: 10.6 MB / 1.248 GB Notification: Performance of simCode: created event and clocks part: time 1.495e-05/2.016, allocations: 4 kB / 1.507 GB, free: 10.59 MB / 1.248 GB Notification: Performance of simCode: created simulation system equations: time 0.01949/2.036, allocations: 7.327 MB / 1.514 GB, free: 3.195 MB / 1.248 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004582/2.04, allocations: 0.5561 MB / 1.515 GB, free: 2.648 MB / 1.248 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02154/2.062, allocations: 8.82 MB / 1.523 GB, free: 9.746 MB / 1.264 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006326/2.068, allocations: 3.231 MB / 1.526 GB, free: 6.477 MB / 1.264 GB Notification: Performance of simCode: alias equations: time 0.00137/2.07, allocations: 391.3 kB / 1.527 GB, free: 6.09 MB / 1.264 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003673/2.07, allocations: 99.44 kB / 1.527 GB, free: 5.992 MB / 1.264 GB Notification: Performance of SimCode: time 1.112e-06/2.07, allocations: 0 / 1.527 GB, free: 5.992 MB / 1.264 GB Notification: Performance of Templates: time 0.8436/2.914, allocations: 92.71 MB / 1.617 GB, free: 414.3 MB / 1.311 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLineMatrix_RL_N.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches