Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_latest_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_latest_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.001215/0.001215, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001218/0.001217, allocations: 193.9 kB / 16.14 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.409/1.409, allocations: 222.9 MB / 239.8 MB, free: 4.496 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.921/2.921, allocations: 472.6 MB / 0.7447 GB, free: 4.926 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00144/0.00144, allocations: 63.94 kB / 0.9114 GB, free: 33.57 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3545/0.3559, allocations: 159.9 MB / 1.068 GB, free: 10.8 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL): time 0.02794/0.3839, allocations: 26.45 MB / 1.093 GB, free: 280 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0128/0.3968, allocations: 8.056 MB / 1.101 GB, free: 8.195 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00298/0.3998, allocations: 107.4 kB / 1.101 GB, free: 8.09 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.006835/0.4066, allocations: 2.572 MB / 1.104 GB, free: 5.512 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0051/0.4118, allocations: 1.489 MB / 1.105 GB, free: 4.016 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.004959/0.4167, allocations: 1.531 MB / 1.107 GB, free: 2.488 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0101/0.4269, allocations: 8.704 MB / 1.115 GB, free: 9.762 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01205/0.4389, allocations: 8.202 MB / 1.123 GB, free: 1.465 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004103/0.4431, allocations: 2.187 MB / 1.125 GB, free: 15.27 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004059/0.4471, allocations: 2.889 MB / 1.128 GB, free: 12.37 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.0007657/0.4479, allocations: 344 kB / 1.129 GB, free: 12.04 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003066/0.451, allocations: 1.33 MB / 1.13 GB, free: 10.7 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.002494/0.4535, allocations: 1.882 MB / 1.132 GB, free: 8.816 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.002888/0.4564, allocations: 2.182 MB / 1.134 GB, free: 6.625 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.007439/0.4639, allocations: 7.915 MB / 1.142 GB, free: 14.68 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 1.455e-05/0.4639, allocations: 7.938 kB / 1.142 GB, free: 14.68 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.112e-06/0.4639, allocations: 3.938 kB / 1.142 GB, free: 14.67 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 0.0002087/0.4641, allocations: 4 kB / 1.142 GB, free: 14.67 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: 976 * Number of variables: 976 Notification: Performance of Generate backend data structure: time 0.009149/0.4733, allocations: 4.22 MB / 1.146 GB, free: 10.39 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 7.912e-05/0.4734, allocations: 15.97 kB / 1.146 GB, free: 10.37 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004337/0.4777, allocations: 0.8 MB / 1.147 GB, free: 9.566 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004361/0.4821, allocations: 2.428 MB / 1.149 GB, free: 7.082 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001888/0.4823, allocations: 275.6 kB / 1.149 GB, free: 6.812 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006986/0.483, allocations: 380.5 kB / 1.15 GB, free: 6.441 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01064/0.4937, allocations: 5.996 MB / 1.155 GB, free: 196 kB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.879e-05/0.4938, allocations: 11.84 kB / 1.155 GB, free: 184 kB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003899/0.4942, allocations: 160 kB / 1.156 GB, free: 24 kB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006056/0.4948, allocations: 286.9 kB / 1.156 GB, free: 15.74 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008356/0.5032, allocations: 4.528 MB / 1.16 GB, free: 11.21 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0358/0.539, allocations: 27.65 MB / 1.187 GB, free: 13.04 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001995/0.541, allocations: 1.115 MB / 1.188 GB, free: 11.92 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001575/0.5426, allocations: 1.013 MB / 1.189 GB, free: 10.91 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001029/0.5428, allocations: 20.98 kB / 1.189 GB, free: 10.89 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.89e-05/0.5428, allocations: 43.56 kB / 1.189 GB, free: 10.84 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=110): time 2.885e-06/0.5428, allocations: 0 / 1.189 GB, free: 10.84 MB / 0.9512 GB Notification: Performance of matching and sorting (n=131): time 0.02325/0.5661, allocations: 9.68 MB / 1.199 GB, free: 0.9453 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.216e-05/0.5662, allocations: 68.72 kB / 1.199 GB, free: 0.8672 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002748/0.5689, allocations: 1.494 MB / 1.2 GB, free: 15.38 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 0.000227/0.5692, allocations: 49.7 kB / 1.2 GB, free: 15.32 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.001901/0.5711, allocations: 1.667 MB / 1.202 GB, free: 13.63 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006585/0.5718, allocations: 469.3 kB / 1.203 GB, free: 13.16 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008514/0.5726, allocations: 327.2 kB / 1.203 GB, free: 12.84 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001658/0.5728, allocations: 305.1 kB / 1.203 GB, free: 12.54 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001819/0.5746, allocations: 0.9174 MB / 1.204 GB, free: 11.62 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00229/0.5769, allocations: 1.463 MB / 1.205 GB, free: 9.922 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004609/0.5816, allocations: 2.55 MB / 1.208 GB, free: 7.129 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.334e-05/0.5816, allocations: 8 kB / 1.208 GB, free: 7.121 MB / 0.9669 GB Notification: Performance of matching and sorting (n=226) (initialization): time 0.00774/0.5894, allocations: 3.285 MB / 1.211 GB, free: 3.797 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 5.261e-05/0.5894, allocations: 12 kB / 1.211 GB, free: 3.785 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.063e-05/0.5895, allocations: 24 kB / 1.211 GB, free: 3.762 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002623/0.5921, allocations: 0.7381 MB / 1.212 GB, free: 2.996 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001602/0.5937, allocations: 383.4 kB / 1.212 GB, free: 2.621 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01604/0.6098, allocations: 15.76 MB / 1.228 GB, free: 1.66 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001826/0.6117, allocations: 103.8 kB / 1.228 GB, free: 1.559 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003111/0.612, allocations: 72 kB / 1.228 GB, free: 1.488 MB / 0.9825 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.002615/0.6146, allocations: 1.316 MB / 1.229 GB, free: 168 kB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006065/0.6152, allocations: 205.6 kB / 1.229 GB, free: 15.96 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005473/0.6207, allocations: 2.78 MB / 1.232 GB, free: 13.14 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.366e-05/0.6207, allocations: 12 kB / 1.232 GB, free: 13.13 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.749e-05/0.6208, allocations: 8 kB / 1.232 GB, free: 13.12 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.578e-05/0.6208, allocations: 7.969 kB / 1.232 GB, free: 13.11 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01299/0.6338, allocations: 6.224 MB / 1.238 GB, free: 6.719 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.748e-05/0.6338, allocations: 4 kB / 1.238 GB, free: 6.715 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001215/0.6351, allocations: 240.2 kB / 1.238 GB, free: 6.48 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002136/0.6372, allocations: 0.6712 MB / 1.239 GB, free: 5.781 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001518/0.6374, allocations: 36 kB / 1.239 GB, free: 5.746 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.6928/1.33, allocations: 15.49 MB / 1.254 GB, free: 156.5 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.578e-06/1.33, allocations: 8.938 kB / 1.254 GB, free: 156.5 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006862/1.337, allocations: 4.015 MB / 1.258 GB, free: 156.1 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009726/1.338, allocations: 457.7 kB / 1.259 GB, free: 156 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002437/1.338, allocations: 31.14 kB / 1.259 GB, free: 156 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008592/1.339, allocations: 82.97 kB / 1.259 GB, free: 156 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000376/1.34, allocations: 121.2 kB / 1.259 GB, free: 156 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.401e-05/1.34, allocations: 38.78 kB / 1.259 GB, free: 156 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001301/1.341, allocations: 0.9934 MB / 1.26 GB, free: 155.9 MB / 0.9981 GB Notification: Performance of sort global known variables: time 2.21e-07/1.341, allocations: 0 / 1.26 GB, free: 155.9 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.002207/1.343, allocations: 0.684 MB / 1.26 GB, free: 155.9 MB / 0.9981 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.0002384/1.344, allocations: 147 kB / 1.261 GB, free: 155.8 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.004825/1.348, allocations: 3.506 MB / 1.264 GB, free: 154 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 5.03e-06/1.348, allocations: 1.656 kB / 1.264 GB, free: 154 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.003029/1.351, allocations: 2.289 MB / 1.266 GB, free: 152.6 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003159/1.355, allocations: 0.6282 MB / 1.267 GB, free: 152.4 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01397/1.369, allocations: 8.101 MB / 1.275 GB, free: 147.7 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003324/1.372, allocations: 2.67 MB / 1.277 GB, free: 146.6 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.002031/1.374, allocations: 488.4 kB / 1.278 GB, free: 146.5 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003668/1.374, allocations: 117 kB / 1.278 GB, free: 146.5 MB / 0.9981 GB Notification: Performance of SimCode: time 1.082e-06/1.374, allocations: 3.938 kB / 1.278 GB, free: 146.5 MB / 0.9981 GB Notification: Performance of Templates: time 0.05979/1.434, allocations: 32.58 MB / 1.31 GB, free: 135.2 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RL.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches