Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_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.ACLine_RLC_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|RLCLine_1.terminal_n.phase.1..i.1.|RLCLine_1.terminal_n.phase.1..i.2.|RLCLine_sc.terminal_n.phase.1..i.1.|RLCLine_sc.terminal_n.phase.1..i.2.|RLCLine_2a.terminal_n.phase.1..i.1.|RLCLine_2a.terminal_n.phase.1..i.2.|RLCLine_3a.terminal_n.phase.1..i.1.|RLCLine_3a.terminal_n.phase.1..i.2.|RLCLine_3b.terminal_n.phase.1..i.1.|RLCLine_3b.terminal_n.phase.1..i.2.",fileNamePrefix="Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|RLCLine_1.terminal_n.phase.1..i.1.|RLCLine_1.terminal_n.phase.1..i.2.|RLCLine_sc.terminal_n.phase.1..i.1.|RLCLine_sc.terminal_n.phase.1..i.2.|RLCLine_2a.terminal_n.phase.1..i.1.|RLCLine_2a.terminal_n.phase.1..i.2.|RLCLine_3a.terminal_n.phase.1..i.1.|RLCLine_3a.terminal_n.phase.1..i.2.|RLCLine_3b.terminal_n.phase.1..i.1.|RLCLine_3b.terminal_n.phase.1..i.2.",fileNamePrefix="Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001339/0.001339, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001935/0.001935, allocations: 190.9 kB / 16.25 MB, free: 6.633 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.445/1.445, allocations: 222.9 MB / 239.9 MB, free: 4.543 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.71 GB, free: 5.312 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001304/0.001305, allocations: 63.91 kB / 0.8687 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8671/0.8684, allocations: 151.6 MB / 1.017 GB, free: 2.746 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N): time 0.0459/0.9144, allocations: 40.8 MB / 1.057 GB, free: 9.812 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.03088/0.9454, allocations: 14.98 MB / 1.071 GB, free: 10.79 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.006125/0.9515, allocations: 171.1 kB / 1.071 GB, free: 10.62 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0118/0.9634, allocations: 4.157 MB / 1.075 GB, free: 6.461 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.01003/0.9735, allocations: 2.589 MB / 1.078 GB, free: 3.859 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.01011/0.9836, allocations: 2.897 MB / 1.081 GB, free: 0.9648 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.01858/1.002, allocations: 11.43 MB / 1.092 GB, free: 5.5 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.02933/1.032, allocations: 14.85 MB / 1.107 GB, free: 6.523 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01051/1.042, allocations: 4.894 MB / 1.111 GB, free: 1.613 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01154/1.054, allocations: 5.639 MB / 1.117 GB, free: 11.96 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.004558/1.058, allocations: 0.957 MB / 1.118 GB, free: 11 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01261/1.071, allocations: 2.036 MB / 1.12 GB, free: 8.961 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.01156/1.083, allocations: 3.688 MB / 1.123 GB, free: 5.266 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.01521/1.098, allocations: 4.303 MB / 1.128 GB, free: 0.9453 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.02462/1.123, allocations: 14.29 MB / 1.141 GB, free: 2.613 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 8.947e-06/1.123, allocations: 0 / 1.141 GB, free: 2.613 MB / 0.8887 GB Notification: Performance of FrontEnd: time 2.716e-06/1.123, allocations: 0 / 1.141 GB, free: 2.613 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 0.0006634/1.123, allocations: 0 / 1.141 GB, free: 2.613 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: 1668 * Number of variables: 1668 Notification: Performance of Generate backend data structure: time 0.02924/1.153, allocations: 7.6 MB / 1.149 GB, free: 10.93 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 6.835e-05/1.153, allocations: 8.031 kB / 1.149 GB, free: 10.92 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01286/1.166, allocations: 1.515 MB / 1.15 GB, free: 9.398 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01212/1.178, allocations: 4.209 MB / 1.155 GB, free: 5.113 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005447/1.178, allocations: 460.5 kB / 1.155 GB, free: 4.66 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00343/1.182, allocations: 0.5862 MB / 1.156 GB, free: 4.074 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03123/1.213, allocations: 10.69 MB / 1.166 GB, free: 9.004 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000449/1.214, allocations: 31.62 kB / 1.166 GB, free: 8.973 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002996/1.217, allocations: 267.9 kB / 1.166 GB, free: 8.711 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003232/1.22, allocations: 0.7729 MB / 1.167 GB, free: 7.934 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02235/1.242, allocations: 8.561 MB / 1.175 GB, free: 15.35 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07811/1.32, allocations: 46.85 MB / 1.221 GB, free: 12.74 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007364/1.328, allocations: 4.315 MB / 1.225 GB, free: 8.422 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006501/1.334, allocations: 3.705 MB / 1.229 GB, free: 4.707 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005501/1.335, allocations: 38.78 kB / 1.229 GB, free: 4.668 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.919e-05/1.335, allocations: 77.34 kB / 1.229 GB, free: 4.582 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=353): time 7.845e-06/1.335, allocations: 0 / 1.229 GB, free: 4.582 MB / 0.9825 GB Notification: Performance of matching and sorting (n=578): time 1.155/2.49, allocations: 122.8 MB / 1.349 GB, free: 137.1 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.768e-05/2.49, allocations: 119.9 kB / 1.349 GB, free: 137 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00418/2.494, allocations: 2.685 MB / 1.352 GB, free: 134.3 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.00119/2.496, allocations: 121.7 kB / 1.352 GB, free: 134.2 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.001389/2.497, allocations: 2.675 MB / 1.354 GB, free: 131.5 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.002254/2.499, allocations: 1.957 MB / 1.356 GB, free: 129.6 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003214/2.502, allocations: 0.9209 MB / 1.357 GB, free: 128.6 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 4.569e-05/2.502, allocations: 309 kB / 1.358 GB, free: 128.3 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005759/2.508, allocations: 4.079 MB / 1.362 GB, free: 124.2 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006509/2.515, allocations: 5.019 MB / 1.366 GB, free: 118.9 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0132/2.528, allocations: 9.845 MB / 1.376 GB, free: 108.7 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.945e-05/2.528, allocations: 11.94 kB / 1.376 GB, free: 108.7 MB / 0.9981 GB Notification: Performance of matching and sorting (n=713) (initialization): time 0.03717/2.565, allocations: 16.99 MB / 1.393 GB, free: 91.54 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 5.769e-05/2.565, allocations: 15.94 kB / 1.393 GB, free: 91.53 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.622e-05/2.565, allocations: 24 kB / 1.393 GB, free: 91.5 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03056/2.596, allocations: 9.149 MB / 1.402 GB, free: 82.31 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002934/2.599, allocations: 0.5226 MB / 1.402 GB, free: 81.79 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.09402/2.693, allocations: 77.02 MB / 1.477 GB, free: 3.23 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005856/2.699, allocations: 275.8 kB / 1.478 GB, free: 2.961 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001352/2.7, allocations: 191.9 kB / 1.478 GB, free: 2.773 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 101 * 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 (274): * Single equations (assignments): 263 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 11 systems {(5,17,84.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (14,72,59.2%), (14,72,59.2%), (6,40,77.8%), (8,70,73.4%), (8,70,70.3%), (6,40,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005578/2.706, allocations: 2.432 MB / 1.48 GB, free: 340 kB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001817/2.708, allocations: 470.6 kB / 1.481 GB, free: 15.86 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04345/2.751, allocations: 16.81 MB / 1.497 GB, free: 14.91 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.998e-05/2.751, allocations: 56 kB / 1.497 GB, free: 14.86 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0003334/2.752, allocations: 72 kB / 1.497 GB, free: 14.79 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001537/2.752, allocations: 27.89 kB / 1.497 GB, free: 14.76 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06439/2.816, allocations: 25.66 MB / 1.522 GB, free: 4.859 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.015e-05/2.816, allocations: 8 kB / 1.522 GB, free: 4.852 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001953/2.818, allocations: 319.5 kB / 1.523 GB, free: 4.539 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03075/2.849, allocations: 8.334 MB / 1.531 GB, free: 12.16 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001427/2.851, allocations: 115.7 kB / 1.531 GB, free: 12.05 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1048/2.955, allocations: 73.87 MB / 1.603 GB, free: 0.6406 MB / 1.123 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.123e-05/2.955, allocations: 11.94 kB / 1.603 GB, free: 0.6289 MB / 1.123 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04642/3.002, allocations: 21.58 MB / 1.624 GB, free: 10.7 MB / 1.154 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004062/3.006, allocations: 1.351 MB / 1.625 GB, free: 9.32 MB / 1.154 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00136/3.007, allocations: 112 kB / 1.625 GB, free: 9.211 MB / 1.154 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003617/3.011, allocations: 283.6 kB / 1.626 GB, free: 8.934 MB / 1.154 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002294/3.013, allocations: 0.5258 MB / 1.626 GB, free: 8.402 MB / 1.154 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005371/3.014, allocations: 148 kB / 1.626 GB, free: 8.258 MB / 1.154 GB Notification: Performance of sorting global known variables: time 0.002985/3.017, allocations: 1.772 MB / 1.628 GB, free: 6.496 MB / 1.154 GB Notification: Performance of sort global known variables: time 1.31e-07/3.017, allocations: 0 / 1.628 GB, free: 6.496 MB / 1.154 GB Notification: Performance of remove unused functions: time 0.009157/3.026, allocations: 2.469 MB / 1.631 GB, free: 4.027 MB / 1.154 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * Number of states: 8 (RLCLine_sc.phase1.Vc[1],RLCLine_sc.phase1.Vc[2],RLCLine_sc.phase2.Vc[1],RLCLine_sc.phase2.Vc[2],RLCLine_sc.phase3.Vc[1],RLCLine_sc.phase3.Vc[2],RLCLine_sc.neutral.Vc[1],RLCLine_sc.neutral.Vc[2]) * 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 (142): * Single equations (assignments): 131 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 11 systems {(6,40,77.8%), (8,70,70.3%), (14,72,51.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (5,17,84.0%), (6,40,83.3%), (8,70,70.3%), (14,72,51.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009288/3.027, allocations: 240.3 kB / 1.631 GB, free: 3.781 MB / 1.154 GB Notification: Performance of simCode: created initialization part: time 0.03768/3.065, allocations: 18.68 MB / 1.649 GB, free: 0.9258 MB / 1.17 GB Notification: Performance of simCode: created event and clocks part: time 2.287e-05/3.065, allocations: 4 kB / 1.649 GB, free: 0.9219 MB / 1.17 GB Notification: Performance of simCode: created simulation system equations: time 0.01983/3.085, allocations: 9.35 MB / 1.658 GB, free: 7.43 MB / 1.186 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007631/3.092, allocations: 1.369 MB / 1.659 GB, free: 6.105 MB / 1.186 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03134/3.124, allocations: 18.75 MB / 1.678 GB, free: 3.262 MB / 1.201 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009594/3.133, allocations: 4.896 MB / 1.683 GB, free: 14.32 MB / 1.217 GB Notification: Performance of simCode: alias equations: time 0.004234/3.137, allocations: 0.741 MB / 1.683 GB, free: 13.58 MB / 1.217 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009902/3.138, allocations: 203.4 kB / 1.683 GB, free: 13.38 MB / 1.217 GB Notification: Performance of SimCode: time 7.61e-07/3.138, allocations: 0 / 1.683 GB, free: 13.38 MB / 1.217 GB Notification: Performance of Templates: time 0.7452/3.884, allocations: 148.4 MB / 1.828 GB, free: 335.5 MB / 1.232 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.makefile (rm -f Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.sim & ./Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RLC_N.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches