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.001399/0.001399, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001613/0.001612, allocations: 198.4 kB / 16.14 MB, free: 6.711 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.404/1.404, allocations: 222.9 MB / 239.8 MB, free: 4.586 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.632/2.632, allocations: 437 MB / 0.7099 GB, free: 5.355 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001399/0.001399, allocations: 67.89 kB / 0.8685 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7264/0.7279, allocations: 151.6 MB / 1.017 GB, free: 2.82 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N): time 0.02525/0.7532, allocations: 23.25 MB / 1.039 GB, free: 11.5 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.01151/0.7647, allocations: 6.492 MB / 1.046 GB, free: 4.988 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00237/0.7671, allocations: 87.5 kB / 1.046 GB, free: 4.902 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.004026/0.7712, allocations: 1.35 MB / 1.047 GB, free: 3.547 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.004796/0.776, allocations: 1.739 MB / 1.049 GB, free: 1.801 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.003673/0.7797, allocations: 1.341 MB / 1.05 GB, free: 476 kB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.01213/0.7918, allocations: 10.62 MB / 1.06 GB, free: 5.82 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01415/0.806, allocations: 7.612 MB / 1.068 GB, free: 14.12 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005085/0.8112, allocations: 2.402 MB / 1.07 GB, free: 11.71 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006578/0.8178, allocations: 3.615 MB / 1.074 GB, free: 8.086 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.002093/0.8199, allocations: 380 kB / 1.074 GB, free: 7.715 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004181/0.8241, allocations: 1.186 MB / 1.075 GB, free: 6.527 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.005389/0.8295, allocations: 2.319 MB / 1.078 GB, free: 4.203 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.006236/0.8358, allocations: 2.349 MB / 1.08 GB, free: 1.844 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.01194/0.8478, allocations: 8.389 MB / 1.088 GB, free: 9.43 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 6.592e-06/0.8478, allocations: 0 / 1.088 GB, free: 9.43 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.743e-06/0.8478, allocations: 0 / 1.088 GB, free: 9.43 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 0.0002886/0.8481, allocations: 4 kB / 1.088 GB, free: 9.426 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.01229/0.8604, allocations: 4.428 MB / 1.092 GB, free: 4.93 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.683e-05/0.8605, allocations: 12.02 kB / 1.092 GB, free: 4.918 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009598/0.8701, allocations: 1.681 MB / 1.094 GB, free: 3.23 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006701/0.8768, allocations: 2.571 MB / 1.097 GB, free: 0.6055 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003474/0.8772, allocations: 275.7 kB / 1.097 GB, free: 344 kB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00189/0.8791, allocations: 368.3 kB / 1.097 GB, free: 15.97 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01651/0.8957, allocations: 7.491 MB / 1.104 GB, free: 8.223 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001388/0.8958, allocations: 11.94 kB / 1.104 GB, free: 8.211 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001072/0.8969, allocations: 159.9 kB / 1.105 GB, free: 8.055 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000644/0.8976, allocations: 491.3 kB / 1.105 GB, free: 7.574 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01155/0.9091, allocations: 5.701 MB / 1.111 GB, free: 1.867 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03711/0.9463, allocations: 31.7 MB / 1.142 GB, free: 15.39 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002985/0.9493, allocations: 2.09 MB / 1.144 GB, free: 13.29 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00311/0.9524, allocations: 2.171 MB / 1.146 GB, free: 11.12 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001959/0.9527, allocations: 25.23 kB / 1.146 GB, free: 11.09 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.795e-05/0.9527, allocations: 43.88 kB / 1.146 GB, free: 11.04 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=146): time 4.137e-06/0.9527, allocations: 0 / 1.146 GB, free: 11.04 MB / 0.9044 GB Notification: Performance of matching and sorting (n=251): time 0.2867/1.239, allocations: 77.01 MB / 1.221 GB, free: 13.88 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.581e-05/1.24, allocations: 81.41 kB / 1.221 GB, free: 13.79 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00249/1.242, allocations: 1.67 MB / 1.223 GB, free: 12.07 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 0.0004748/1.243, allocations: 65.7 kB / 1.223 GB, free: 12 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.001117/1.244, allocations: 1.747 MB / 1.224 GB, free: 10.23 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 0.001023/1.245, allocations: 0.8548 MB / 1.225 GB, free: 9.367 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00118/1.246, allocations: 481.2 kB / 1.226 GB, free: 8.891 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.000112/1.246, allocations: 305.1 kB / 1.226 GB, free: 8.59 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004041/1.25, allocations: 2.734 MB / 1.229 GB, free: 5.852 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004386/1.254, allocations: 3.336 MB / 1.232 GB, free: 2.266 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008642/1.263, allocations: 6.397 MB / 1.238 GB, free: 11.62 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.44e-05/1.263, allocations: 4 kB / 1.238 GB, free: 11.62 MB / 0.9981 GB Notification: Performance of matching and sorting (n=331) (initialization): time 0.6655/1.929, allocations: 14.67 MB / 1.253 GB, free: 210.4 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 4.277e-05/1.929, allocations: 11.97 kB / 1.253 GB, free: 210.4 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.96e-05/1.929, allocations: 21.44 kB / 1.253 GB, free: 210.4 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03395/1.963, allocations: 9.231 MB / 1.262 GB, free: 209.6 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001224/1.964, allocations: 306.5 kB / 1.262 GB, free: 209.6 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06681/2.031, allocations: 47.44 MB / 1.308 GB, free: 183.4 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002639/2.033, allocations: 219.7 kB / 1.308 GB, free: 183.2 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003117/2.034, allocations: 96 kB / 1.309 GB, free: 183.1 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.002361/2.036, allocations: 1.59 MB / 1.31 GB, free: 181.5 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005425/2.037, allocations: 247.7 kB / 1.31 GB, free: 181.3 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02776/2.064, allocations: 14.76 MB / 1.325 GB, free: 166.4 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-05/2.065, allocations: 24 kB / 1.325 GB, free: 166.4 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.00013/2.065, allocations: 44 kB / 1.325 GB, free: 166.4 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.863e-05/2.065, allocations: 13.5 kB / 1.325 GB, free: 166.4 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0354/2.1, allocations: 20.51 MB / 1.345 GB, free: 145.7 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.826e-05/2.1, allocations: 11.98 kB / 1.345 GB, free: 145.7 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006969/2.101, allocations: 160.6 kB / 1.345 GB, free: 145.5 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02615/2.127, allocations: 9.009 MB / 1.354 GB, free: 136.5 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004999/2.128, allocations: 51.94 kB / 1.354 GB, free: 136.5 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06118/2.189, allocations: 47 MB / 1.4 GB, free: 88.69 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.785e-06/2.189, allocations: 11.94 kB / 1.4 GB, free: 88.68 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02773/2.217, allocations: 14.37 MB / 1.414 GB, free: 74.16 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002054/2.219, allocations: 0.8493 MB / 1.415 GB, free: 73.29 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006569/2.219, allocations: 48 kB / 1.415 GB, free: 73.25 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001963/2.221, allocations: 211.7 kB / 1.415 GB, free: 73.04 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001501/2.223, allocations: 237.5 kB / 1.415 GB, free: 72.8 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002187/2.223, allocations: 64 kB / 1.415 GB, free: 72.74 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001367/2.224, allocations: 1.125 MB / 1.416 GB, free: 71.59 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.4e-07/2.224, allocations: 0 / 1.416 GB, free: 71.59 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.004274/2.229, allocations: 1.617 MB / 1.418 GB, free: 69.98 MB / 0.9981 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.000389/2.229, allocations: 164.3 kB / 1.418 GB, free: 69.81 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.02483/2.254, allocations: 10.54 MB / 1.428 GB, free: 59.24 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.373e-05/2.254, allocations: 4.125 kB / 1.428 GB, free: 59.24 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.01935/2.273, allocations: 7.314 MB / 1.435 GB, free: 51.87 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006447/2.28, allocations: 0.5087 MB / 1.436 GB, free: 51.36 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02297/2.303, allocations: 10.62 MB / 1.446 GB, free: 40.67 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003687/2.307, allocations: 3.23 MB / 1.449 GB, free: 37.41 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.001103/2.308, allocations: 395.3 kB / 1.45 GB, free: 37.02 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002298/2.308, allocations: 95.44 kB / 1.45 GB, free: 36.93 MB / 0.9981 GB Notification: Performance of SimCode: time 1.092e-06/2.308, allocations: 0 / 1.45 GB, free: 36.93 MB / 0.9981 GB Notification: Performance of Templates: time 0.1385/2.447, allocations: 89.68 MB / 1.538 GB, free: 11.5 MB / 1.061 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