Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.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_10_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_10_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.008743/0.008743, allocations: 101.7 kB / 15.73 MB, free: 6.059 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.001819/0.001819, allocations: 196.2 kB / 16.68 MB, free: 5.969 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.425/1.425, allocations: 222.9 MB / 240.4 MB, free: 4.168 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.734/2.734, allocations: 437 MB / 0.7105 GB, free: 4.91 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001401/0.001401, allocations: 68.12 kB / 1.019 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3178/0.3193, allocations: 151.6 MB / 1.167 GB, free: 6.703 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N): time 0.02739/0.3467, allocations: 23.4 MB / 1.189 GB, free: 15.21 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.01406/0.3608, allocations: 6.5 MB / 1.196 GB, free: 8.691 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002586/0.3634, allocations: 99.5 kB / 1.196 GB, free: 8.594 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.004827/0.3683, allocations: 1.496 MB / 1.197 GB, free: 7.094 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.005963/0.3743, allocations: 1.941 MB / 1.199 GB, free: 5.145 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.00569/0.38, allocations: 1.457 MB / 1.201 GB, free: 3.688 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.01014/0.3901, allocations: 6.908 MB / 1.207 GB, free: 12.76 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01114/0.4013, allocations: 6.949 MB / 1.214 GB, free: 5.719 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005514/0.4069, allocations: 2.882 MB / 1.217 GB, free: 2.828 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005569/0.4125, allocations: 3.478 MB / 1.22 GB, free: 15.34 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.001592/0.4141, allocations: 0.5273 MB / 1.221 GB, free: 14.81 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003386/0.4175, allocations: 1.17 MB / 1.222 GB, free: 13.64 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.003481/0.421, allocations: 2.46 MB / 1.225 GB, free: 11.18 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.003697/0.4247, allocations: 2.54 MB / 1.227 GB, free: 8.625 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.008892/0.4336, allocations: 8.539 MB / 1.235 GB, free: 60 kB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 8.736e-06/0.4337, allocations: 4 kB / 1.235 GB, free: 56 kB / 0.9825 GB Notification: Performance of FrontEnd: time 2.114e-06/0.4337, allocations: 0 / 1.235 GB, free: 56 kB / 0.9825 GB Notification: Performance of Transformations before backend: time 0.0001742/0.4338, allocations: 0 / 1.235 GB, free: 56 kB / 0.9825 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.008214/0.4421, allocations: 4.543 MB / 1.24 GB, free: 11.44 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.528e-05/0.4421, allocations: 12.03 kB / 1.24 GB, free: 11.43 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008106/0.4502, allocations: 1.699 MB / 1.241 GB, free: 9.723 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005077/0.4553, allocations: 2.701 MB / 1.244 GB, free: 6.969 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002125/0.4556, allocations: 279.7 kB / 1.244 GB, free: 6.695 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008319/0.4564, allocations: 360.3 kB / 1.245 GB, free: 6.344 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.8619/1.318, allocations: 7.489 MB / 1.252 GB, free: 71.99 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001198/1.318, allocations: 11.28 kB / 1.252 GB, free: 71.99 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004837/1.319, allocations: 159.2 kB / 1.252 GB, free: 71.99 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008033/1.32, allocations: 485.6 kB / 1.253 GB, free: 71.98 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0136/1.333, allocations: 5.7 MB / 1.258 GB, free: 70.49 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04203/1.375, allocations: 31.56 MB / 1.289 GB, free: 46.17 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003686/1.379, allocations: 2.084 MB / 1.291 GB, free: 45.39 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003579/1.383, allocations: 2.183 MB / 1.293 GB, free: 44.58 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001535/1.383, allocations: 14.91 kB / 1.293 GB, free: 44.58 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.552e-05/1.383, allocations: 50.17 kB / 1.293 GB, free: 44.53 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=146): time 4.98e-06/1.383, allocations: 0 / 1.293 GB, free: 44.53 MB / 0.9981 GB Notification: Performance of matching and sorting (n=251): time 0.2615/1.645, allocations: 77.09 MB / 1.369 GB, free: 7.812 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.569e-05/1.645, allocations: 77.41 kB / 1.369 GB, free: 7.723 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003291/1.648, allocations: 1.674 MB / 1.37 GB, free: 6.004 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 0.0005577/1.649, allocations: 65.7 kB / 1.37 GB, free: 5.934 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.001336/1.65, allocations: 1.799 MB / 1.372 GB, free: 4.125 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.001315/1.651, allocations: 0.8894 MB / 1.373 GB, free: 3.246 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001661/1.653, allocations: 487.2 kB / 1.373 GB, free: 2.766 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001328/1.653, allocations: 305.1 kB / 1.374 GB, free: 2.465 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004282/1.657, allocations: 2.73 MB / 1.376 GB, free: 15.73 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005354/1.663, allocations: 3.324 MB / 1.38 GB, free: 12.16 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01029/1.673, allocations: 6.401 MB / 1.386 GB, free: 5.52 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.799e-05/1.673, allocations: 7.938 kB / 1.386 GB, free: 5.512 MB / 1.029 GB Notification: Performance of matching and sorting (n=331) (initialization): time 0.0334/1.707, allocations: 14.69 MB / 1.4 GB, free: 6.77 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 5.061e-05/1.707, allocations: 15.94 kB / 1.4 GB, free: 6.754 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.431e-05/1.707, allocations: 16 kB / 1.4 GB, free: 6.738 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03067/1.737, allocations: 9.249 MB / 1.409 GB, free: 13.46 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001468/1.739, allocations: 303.4 kB / 1.41 GB, free: 13.17 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08212/1.821, allocations: 52.4 MB / 1.461 GB, free: 7.938 MB / 1.107 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003001/1.824, allocations: 223.7 kB / 1.461 GB, free: 7.719 MB / 1.107 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006203/1.825, allocations: 96 kB / 1.461 GB, free: 7.625 MB / 1.107 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.003402/1.828, allocations: 1.59 MB / 1.463 GB, free: 6.023 MB / 1.107 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007897/1.829, allocations: 254.6 kB / 1.463 GB, free: 5.773 MB / 1.107 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03329/1.862, allocations: 14.76 MB / 1.477 GB, free: 6.953 MB / 1.123 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.795e-05/1.862, allocations: 24 kB / 1.477 GB, free: 6.93 MB / 1.123 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001885/1.863, allocations: 47.98 kB / 1.477 GB, free: 6.883 MB / 1.123 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.011e-05/1.863, allocations: 13.92 kB / 1.477 GB, free: 6.871 MB / 1.123 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04631/1.909, allocations: 20.52 MB / 1.497 GB, free: 2.16 MB / 1.139 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.334e-05/1.909, allocations: 8 kB / 1.497 GB, free: 2.152 MB / 1.139 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008158/1.91, allocations: 164.5 kB / 1.498 GB, free: 1.992 MB / 1.139 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02986/1.94, allocations: 9.007 MB / 1.506 GB, free: 8.957 MB / 1.154 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007409/1.941, allocations: 48 kB / 1.506 GB, free: 8.91 MB / 1.154 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.08578/2.026, allocations: 51.96 MB / 1.557 GB, free: 4.074 MB / 1.201 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.588e-06/2.026, allocations: 8 kB / 1.557 GB, free: 4.066 MB / 1.201 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0329/2.059, allocations: 14.38 MB / 1.571 GB, free: 5.543 MB / 1.217 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002582/2.062, allocations: 0.8624 MB / 1.572 GB, free: 4.66 MB / 1.217 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001073/2.063, allocations: 51.98 kB / 1.572 GB, free: 4.609 MB / 1.217 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002591/2.066, allocations: 203.7 kB / 1.572 GB, free: 4.41 MB / 1.217 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001692/2.067, allocations: 249.4 kB / 1.572 GB, free: 4.164 MB / 1.217 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004156/2.068, allocations: 64 kB / 1.573 GB, free: 4.102 MB / 1.217 GB Notification: Performance of sorting global known variables: time 0.002179/2.07, allocations: 1.129 MB / 1.574 GB, free: 2.949 MB / 1.217 GB Notification: Performance of sort global known variables: time 2.81e-07/2.07, allocations: 0 / 1.574 GB, free: 2.949 MB / 1.217 GB Notification: Performance of remove unused functions: time 0.006043/2.076, allocations: 1.609 MB / 1.575 GB, free: 1.34 MB / 1.217 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.0006079/2.077, allocations: 163 kB / 1.575 GB, free: 1.168 MB / 1.217 GB Notification: Performance of simCode: created initialization part: time 0.02305/2.1, allocations: 10.58 MB / 1.586 GB, free: 6.516 MB / 1.232 GB Notification: Performance of simCode: created event and clocks part: time 1.125e-05/2.1, allocations: 0 / 1.586 GB, free: 6.516 MB / 1.232 GB Notification: Performance of simCode: created simulation system equations: time 0.0175/2.117, allocations: 7.34 MB / 1.593 GB, free: 15.1 MB / 1.248 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003711/2.121, allocations: 0.5502 MB / 1.593 GB, free: 14.56 MB / 1.248 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.019/2.14, allocations: 8.816 MB / 1.602 GB, free: 5.664 MB / 1.248 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004977/2.145, allocations: 3.224 MB / 1.605 GB, free: 2.406 MB / 1.248 GB Notification: Performance of simCode: alias equations: time 0.001142/2.146, allocations: 387.3 kB / 1.606 GB, free: 2.023 MB / 1.248 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002324/2.146, allocations: 103.4 kB / 1.606 GB, free: 1.922 MB / 1.248 GB Notification: Performance of SimCode: time 5.72e-07/2.146, allocations: 0 / 1.606 GB, free: 1.922 MB / 1.248 GB Notification: Performance of Templates: time 0.1675/2.314, allocations: 92.71 MB / 1.696 GB, free: 5.465 MB / 1.342 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.makefile (rm -f Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.sim & ./Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLineMatrix_RL_N.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches