Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.ACLine_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load_sc_1.load1.v.1.|load_sc_1.load1.v.2.|load_sc_2.load1.v.1.|load_sc_2.load1.v.2.|load_sc_3.load1.v.1.|load_sc_3.load1.v.2.|load_sc_1.load1.i.1.|load_sc_1.load1.i.2.|load_sc_2.load1.i.1.|load_sc_2.load1.i.2.|load_sc_3.load1.i.1.|load_sc_3.load1.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load_sc_1.load1.v.1.|load_sc_1.load1.v.2.|load_sc_2.load1.v.1.|load_sc_2.load1.v.2.|load_sc_3.load1.v.1.|load_sc_3.load1.v.2.|load_sc_1.load1.i.1.|load_sc_1.load1.i.2.|load_sc_2.load1.i.1.|load_sc_2.load1.i.2.|load_sc_3.load1.i.1.|load_sc_3.load1.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001071/0.001071, allocations: 91.53 kB / 16.02 MB, free: 80 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.001742/0.001742, allocations: 178.8 kB / 16.92 MB, free: 6.652 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.412/1.412, allocations: 223.3 MB / 241 MB, free: 5.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.877/2.877, allocations: 390.9 MB / 0.667 GB, free: 2.293 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003782/0.0003784, allocations: 8 kB / 0.8166 GB, free: 13.19 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7141/0.7145, allocations: 142.4 MB / 0.9557 GB, free: 7.676 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL): time 0.02809/0.7426, allocations: 25.74 MB / 0.9809 GB, free: 3.93 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.01647/0.7591, allocations: 7.999 MB / 0.9887 GB, free: 13.52 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005512/0.7647, allocations: 99.44 kB / 0.9888 GB, free: 13.42 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.002999/0.7677, allocations: 0.5233 MB / 0.9893 GB, free: 12.89 MB / 0.7481 GB Notification: Performance of NFTyping.typeBindings: time 0.006121/0.7739, allocations: 1.485 MB / 0.9907 GB, free: 11.4 MB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.004906/0.7788, allocations: 1.398 MB / 0.9921 GB, free: 10 MB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.01075/0.7896, allocations: 8.697 MB / 1.001 GB, free: 1.281 MB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01584/0.8055, allocations: 9.161 MB / 1.01 GB, free: 8.031 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003986/0.8095, allocations: 1.847 MB / 1.011 GB, free: 6.176 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004518/0.814, allocations: 2.46 MB / 1.014 GB, free: 3.707 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 0.001053/0.8151, allocations: 212 kB / 1.014 GB, free: 3.5 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003589/0.8187, allocations: 1.205 MB / 1.015 GB, free: 2.293 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 0.003618/0.8224, allocations: 1.672 MB / 1.017 GB, free: 0.6172 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 0.004971/0.8274, allocations: 1.953 MB / 1.019 GB, free: 14.65 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.008797/0.8362, allocations: 6.662 MB / 1.025 GB, free: 7.969 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.8363, allocations: 0 / 1.025 GB, free: 7.969 MB / 0.7794 GB Notification: Performance of FrontEnd: time 3.106e-06/0.8363, allocations: 0 / 1.025 GB, free: 7.969 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 0.0003263/0.8366, allocations: 0 / 1.025 GB, free: 7.969 MB / 0.7794 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 976 * Number of variables: 976 Notification: Performance of Generate backend data structure: time 0.009327/0.8459, allocations: 3.425 MB / 1.029 GB, free: 4.48 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 5.166e-05/0.846, allocations: 12.03 kB / 1.029 GB, free: 4.469 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005461/0.8515, allocations: 0.8 MB / 1.029 GB, free: 3.664 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005586/0.8571, allocations: 2.432 MB / 1.032 GB, free: 1.176 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003314/0.8575, allocations: 275.6 kB / 1.032 GB, free: 0.9062 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001537/0.859, allocations: 376.5 kB / 1.032 GB, free: 0.5391 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01421/0.8733, allocations: 5.988 MB / 1.038 GB, free: 10.3 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001737/0.8735, allocations: 19.72 kB / 1.038 GB, free: 10.28 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008757/0.8744, allocations: 160 kB / 1.038 GB, free: 10.12 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006804/0.8751, allocations: 290.9 kB / 1.039 GB, free: 9.836 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009388/0.8845, allocations: 4.52 MB / 1.043 GB, free: 5.309 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0351/0.9196, allocations: 27.69 MB / 1.07 GB, free: 7.117 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002011/0.9216, allocations: 1.122 MB / 1.071 GB, free: 5.988 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001554/0.9232, allocations: 1.031 MB / 1.072 GB, free: 4.957 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 8.592e-05/0.9233, allocations: 12.98 kB / 1.072 GB, free: 4.945 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.976e-05/0.9234, allocations: 47.56 kB / 1.072 GB, free: 4.891 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=110): time 3.196e-06/0.9234, allocations: 0 / 1.072 GB, free: 4.891 MB / 0.8262 GB Notification: Performance of matching and sorting (n=131): time 0.02325/0.9467, allocations: 9.672 MB / 1.082 GB, free: 11 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.606e-05/0.9468, allocations: 68.7 kB / 1.082 GB, free: 10.93 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002271/0.949, allocations: 1.494 MB / 1.083 GB, free: 9.434 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 0.0002596/0.9493, allocations: 53.7 kB / 1.083 GB, free: 9.375 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.001287/0.9506, allocations: 1.663 MB / 1.085 GB, free: 7.688 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005624/0.9512, allocations: 473.3 kB / 1.085 GB, free: 7.219 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002397/0.9515, allocations: 141.6 kB / 1.085 GB, free: 7.074 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001214/0.9516, allocations: 305.1 kB / 1.086 GB, free: 6.773 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001488/0.9531, allocations: 0.9174 MB / 1.087 GB, free: 5.855 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001825/0.9549, allocations: 1.463 MB / 1.088 GB, free: 4.145 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003556/0.9585, allocations: 2.55 MB / 1.091 GB, free: 1.355 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.452e-05/0.9585, allocations: 4 kB / 1.091 GB, free: 1.352 MB / 0.8419 GB Notification: Performance of matching and sorting (n=226) (initialization): time 0.006416/0.9649, allocations: 3.293 MB / 1.094 GB, free: 14.02 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 3.567e-05/0.965, allocations: 13.56 kB / 1.094 GB, free: 14 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.533e-05/0.9651, allocations: 16 kB / 1.094 GB, free: 13.99 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002439/0.9675, allocations: 0.7302 MB / 1.094 GB, free: 13.23 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001752/0.9693, allocations: 395.3 kB / 1.095 GB, free: 12.84 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01655/0.9859, allocations: 15.76 MB / 1.11 GB, free: 11.88 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001797/0.9877, allocations: 103.8 kB / 1.11 GB, free: 11.77 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001755/0.9879, allocations: 75.98 kB / 1.11 GB, free: 11.7 MB / 0.8731 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 (193): * Single equations (assignments): 184 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 9 systems {(2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002542/0.9904, allocations: 1.308 MB / 1.112 GB, free: 10.38 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000411/0.9909, allocations: 201.6 kB / 1.112 GB, free: 10.18 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005343/0.9962, allocations: 2.8 MB / 1.115 GB, free: 7.344 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.449e-05/0.9963, allocations: 12 kB / 1.115 GB, free: 7.332 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.957e-05/0.9963, allocations: 8.188 kB / 1.115 GB, free: 7.324 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.662e-05/0.9963, allocations: 7.984 kB / 1.115 GB, free: 7.316 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01137/1.008, allocations: 6.22 MB / 1.121 GB, free: 0.9258 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.017e-05/1.008, allocations: 4 kB / 1.121 GB, free: 0.9219 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001208/1.009, allocations: 231.6 kB / 1.121 GB, free: 0.6953 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002074/1.011, allocations: 0.6678 MB / 1.122 GB, free: 0 / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001222/1.011, allocations: 40.03 kB / 1.122 GB, free: 15.96 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01537/1.027, allocations: 15.52 MB / 1.137 GB, free: 15.24 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.452e-06/1.027, allocations: 11.94 kB / 1.137 GB, free: 15.23 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006655/1.033, allocations: 4 MB / 1.141 GB, free: 11.12 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001033/1.034, allocations: 462.5 kB / 1.141 GB, free: 10.65 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002574/1.035, allocations: 36 kB / 1.141 GB, free: 10.61 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00096/1.036, allocations: 83.89 kB / 1.141 GB, free: 10.53 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003256/1.036, allocations: 112.7 kB / 1.141 GB, free: 10.42 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.053e-05/1.036, allocations: 47.94 kB / 1.141 GB, free: 10.38 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.001436/1.037, allocations: 0.9903 MB / 1.142 GB, free: 9.395 MB / 0.9044 GB Notification: Performance of sort global known variables: time 2.3e-07/1.037, allocations: 0 / 1.142 GB, free: 9.395 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.002553/1.04, allocations: 0.6875 MB / 1.143 GB, free: 8.707 MB / 0.9044 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 6 (RL_3.phase1.i_p[1],RL_3.phase1.i_p[2],RL_3.phase2.i_p[1],RL_3.phase2.i_p[2],RL_3.phase3.i_p[1],RL_3.phase3.i_p[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 (101): * Single equations (assignments): 92 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 9 systems {(2,2,100.0%), (2,2,100.0%), (2,2,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003325/1.04, allocations: 147.1 kB / 1.143 GB, free: 8.555 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.005618/1.046, allocations: 3.503 MB / 1.147 GB, free: 4.934 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 9.027e-06/1.046, allocations: 256 / 1.147 GB, free: 4.934 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.003379/1.049, allocations: 2.291 MB / 1.149 GB, free: 2.531 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004481/1.054, allocations: 0.6327 MB / 1.149 GB, free: 1.902 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0132/1.067, allocations: 8.691 MB / 1.158 GB, free: 9.121 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003074/1.07, allocations: 2.722 MB / 1.161 GB, free: 6.363 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006266/1.071, allocations: 127.4 kB / 1.161 GB, free: 6.238 MB / 0.92 GB Notification: Performance of SimCode: time 8.41e-07/1.071, allocations: 0 / 1.161 GB, free: 6.238 MB / 0.92 GB Notification: Performance of Templates: time 0.7159/1.787, allocations: 209.2 MB / 1.365 GB, free: 198.1 MB / 1.014 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches