Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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_maint.7.0.x_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_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.501/1.501, allocations: 251.9 MB / 266.9 MB, free: 11.02 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001247/0.001247, allocations: 181.1 kB / 326.5 MB, free: 2.27 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.832/1.832, allocations: 205.4 MB / 0.5775 GB, free: 20.3 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008892/0.0008893, allocations: 108 kB / 0.6821 GB, free: 12.91 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003774/0.0003774, allocations: 8.656 kB / 0.7963 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2615/0.2619, allocations: 106.3 MB / 0.9001 GB, free: 63.95 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8795/1.141, allocations: 188.7 MB / 1.084 GB, free: 52.77 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003697/1.142, allocations: 98.8 kB / 1.084 GB, free: 52.77 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 0.3388/1.481, allocations: 146.4 MB / 1.227 GB, free: 8.738 MB / 0.7292 GB Notification: Performance of FrontEnd: time 3.166e-06/1.481, allocations: 0 / 1.227 GB, free: 8.738 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 0.0004539/1.481, allocations: 95.2 kB / 1.228 GB, free: 8.648 MB / 0.7292 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.01485/1.496, allocations: 3.496 MB / 1.231 GB, free: 5.109 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 7.111e-05/1.496, allocations: 8.031 kB / 1.231 GB, free: 5.102 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008049/1.504, allocations: 0.8342 MB / 1.232 GB, free: 4.262 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009469/1.514, allocations: 2.565 MB / 1.234 GB, free: 1.676 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003489/1.514, allocations: 271.1 kB / 1.235 GB, free: 1.418 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002285/1.516, allocations: 379.7 kB / 1.235 GB, free: 1.055 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01908/1.535, allocations: 5.702 MB / 1.24 GB, free: 11.04 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002813/1.536, allocations: 23.88 kB / 1.241 GB, free: 11.02 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001786/1.538, allocations: 167.6 kB / 1.241 GB, free: 10.86 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003455/1.538, allocations: 211 kB / 1.241 GB, free: 10.65 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01139/1.549, allocations: 4.118 MB / 1.245 GB, free: 6.527 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04236/1.592, allocations: 27.68 MB / 1.272 GB, free: 8.469 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001979/1.594, allocations: 1.1 MB / 1.273 GB, free: 7.355 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000122/1.594, allocations: 9 kB / 1.273 GB, free: 7.348 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.718e-05/1.594, allocations: 47.56 kB / 1.273 GB, free: 7.293 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=110): time 3.266e-06/1.594, allocations: 0 / 1.273 GB, free: 7.293 MB / 0.7761 GB Notification: Performance of matching and sorting (n=131): time 0.02444/1.618, allocations: 9.541 MB / 1.282 GB, free: 13.54 MB / 0.7917 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.245e-05/1.619, allocations: 76.53 kB / 1.282 GB, free: 13.46 MB / 0.7917 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002924/1.622, allocations: 1.282 MB / 1.284 GB, free: 12.18 MB / 0.7917 GB Notification: Performance of collectPreVariables (initialization): time 0.0002132/1.622, allocations: 49.7 kB / 1.284 GB, free: 12.12 MB / 0.7917 GB Notification: Performance of collectInitialEqns (initialization): time 0.001365/1.623, allocations: 1.662 MB / 1.285 GB, free: 10.45 MB / 0.7917 GB Notification: Performance of collectInitialBindings (initialization): time 0.000618/1.624, allocations: 472.9 kB / 1.286 GB, free: 9.984 MB / 0.7917 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001408/1.624, allocations: 36 kB / 1.286 GB, free: 9.949 MB / 0.7917 GB Notification: Performance of setup shared object (initialization): time 0.0001938/1.624, allocations: 373.9 kB / 1.286 GB, free: 9.578 MB / 0.7917 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001361/1.625, allocations: 0.8706 MB / 1.287 GB, free: 8.707 MB / 0.7917 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001837/1.627, allocations: 1.464 MB / 1.288 GB, free: 6.98 MB / 0.7917 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001879/1.629, allocations: 1.119 MB / 1.29 GB, free: 5.863 MB / 0.7917 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.926e-05/1.629, allocations: 8 kB / 1.29 GB, free: 5.855 MB / 0.7917 GB Notification: Performance of matching and sorting (n=226) (initialization): time 0.007039/1.636, allocations: 3.223 MB / 1.293 GB, free: 2.594 MB / 0.7917 GB Notification: Performance of prepare postOptimizeDAE: time 5.846e-05/1.636, allocations: 12 kB / 1.293 GB, free: 2.582 MB / 0.7917 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.696e-05/1.636, allocations: 20 kB / 1.293 GB, free: 2.562 MB / 0.7917 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002358/1.639, allocations: 0.7146 MB / 1.293 GB, free: 1.82 MB / 0.7917 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001885/1.641, allocations: 403.3 kB / 1.294 GB, free: 1.426 MB / 0.7917 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01705/1.658, allocations: 15.86 MB / 1.309 GB, free: 376 kB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002224/1.66, allocations: 100.3 kB / 1.309 GB, free: 276 kB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004222/1.661, allocations: 83.98 kB / 1.309 GB, free: 192 kB / 0.8073 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * 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 (linear and non-linear blocks): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 9 {(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003803/1.664, allocations: 1.311 MB / 1.311 GB, free: 14.87 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007865/1.665, allocations: 201.7 kB / 1.311 GB, free: 14.67 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005916/1.671, allocations: 2.745 MB / 1.314 GB, free: 11.88 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.334e-05/1.671, allocations: 12 kB / 1.314 GB, free: 11.87 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.953e-05/1.671, allocations: 12 kB / 1.314 GB, free: 11.86 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.771e-05/1.671, allocations: 7.969 kB / 1.314 GB, free: 11.85 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01254/1.684, allocations: 6.075 MB / 1.32 GB, free: 5.633 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-05/1.684, allocations: 8 kB / 1.32 GB, free: 5.625 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001261/1.685, allocations: 239.6 kB / 1.32 GB, free: 5.391 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00198/1.687, allocations: 0.6481 MB / 1.32 GB, free: 4.715 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001232/1.687, allocations: 28 kB / 1.321 GB, free: 4.688 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01496/1.702, allocations: 15.59 MB / 1.336 GB, free: 3.91 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.855e-06/1.702, allocations: 7.938 kB / 1.336 GB, free: 3.902 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006865/1.709, allocations: 4.265 MB / 1.34 GB, free: 15.41 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001424/1.711, allocations: 446.7 kB / 1.34 GB, free: 14.95 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002558/1.711, allocations: 39.95 kB / 1.34 GB, free: 14.91 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009007/1.712, allocations: 79.89 kB / 1.34 GB, free: 14.84 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003517/1.712, allocations: 116.7 kB / 1.341 GB, free: 14.72 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.677e-05/1.712, allocations: 36 kB / 1.341 GB, free: 14.69 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.001686/1.714, allocations: 0.9708 MB / 1.342 GB, free: 13.73 MB / 0.8542 GB Notification: Performance of sort global known variables: time 4.01e-07/1.714, allocations: 0 / 1.342 GB, free: 13.73 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.003324/1.717, allocations: 0.7109 MB / 1.342 GB, free: 13.02 MB / 0.8542 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 (linear and non-linear blocks): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 9 {(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003681/1.718, allocations: 155 kB / 1.342 GB, free: 12.86 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0058/1.723, allocations: 3.44 MB / 1.346 GB, free: 9.297 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 9.708e-06/1.723, allocations: 0 / 1.346 GB, free: 9.297 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.00337/1.727, allocations: 2.257 MB / 1.348 GB, free: 6.922 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003432/1.73, allocations: 0.5669 MB / 1.348 GB, free: 6.359 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01474/1.745, allocations: 7.828 MB / 1.356 GB, free: 14.44 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003275/1.748, allocations: 2.73 MB / 1.359 GB, free: 11.68 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.001908/1.75, allocations: 473 kB / 1.359 GB, free: 11.21 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003177/1.751, allocations: 115.4 kB / 1.359 GB, free: 11.1 MB / 0.8698 GB Notification: Performance of SimCode: time 1.213e-06/1.751, allocations: 0 / 1.359 GB, free: 11.1 MB / 0.8698 GB Notification: Performance of Templates: time 0.5757/2.326, allocations: 30.24 MB / 1.389 GB, free: 233.8 MB / 0.8855 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.makefile (rm -f Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.sim & ./Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RL.csv","../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches