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/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.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_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/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.471/2.471, allocations: 387.1 MB / 399.7 MB, free: 9.5 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009685/0.0009684, allocations: 180.9 kB / 492.3 MB, free: 0.6055 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.516/1.516, allocations: 221.3 MB / 0.7872 GB, free: 12.93 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008671/0.0008671, allocations: 100.5 kB / 0.9267 GB, free: 14.01 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.869e-05/2.871e-05, allocations: 8 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2644/0.2645, allocations: 142.3 MB / 1.212 GB, free: 38.5 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9318/1.196, allocations: 206.5 MB / 1.414 GB, free: 9.883 MB / 0.8386 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002569/1.197, allocations: 96.94 kB / 1.414 GB, free: 9.832 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 0.3535/1.55, allocations: 155.5 MB / 1.566 GB, free: 11.7 MB / 0.9792 GB Notification: Performance of FrontEnd: time 1.412e-06/1.55, allocations: 0 / 1.566 GB, free: 11.7 MB / 0.9792 GB Notification: Performance of Transformations before backend: time 0.0002095/1.55, allocations: 95.98 kB / 1.566 GB, free: 11.6 MB / 0.9792 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.008701/1.559, allocations: 3.221 MB / 1.569 GB, free: 8.32 MB / 0.9792 GB Notification: Performance of prepare preOptimizeDAE: time 4.995e-05/1.559, allocations: 8.031 kB / 1.569 GB, free: 8.312 MB / 0.9792 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005824/1.565, allocations: 0.8264 MB / 1.57 GB, free: 7.48 MB / 0.9792 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007071/1.572, allocations: 2.549 MB / 1.573 GB, free: 4.875 MB / 0.9792 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002495/1.572, allocations: 275.3 kB / 1.573 GB, free: 4.605 MB / 0.9792 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001597/1.574, allocations: 379.8 kB / 1.573 GB, free: 4.234 MB / 0.9792 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01477/1.589, allocations: 5.644 MB / 1.579 GB, free: 14.26 MB / 0.9948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001907/1.589, allocations: 27.72 kB / 1.579 GB, free: 14.23 MB / 0.9948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00121/1.59, allocations: 164 kB / 1.579 GB, free: 14.07 MB / 0.9948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002864/1.59, allocations: 211 kB / 1.579 GB, free: 13.86 MB / 0.9948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009552/1.6, allocations: 4.049 MB / 1.583 GB, free: 9.809 MB / 0.9948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04043/1.641, allocations: 27.67 MB / 1.61 GB, free: 11.64 MB / 1.026 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001904/1.642, allocations: 1.08 MB / 1.611 GB, free: 10.55 MB / 1.026 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001461/1.644, allocations: 0.9954 MB / 1.612 GB, free: 9.551 MB / 1.026 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001078/1.644, allocations: 20.92 kB / 1.612 GB, free: 9.531 MB / 1.026 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.326e-05/1.644, allocations: 43.56 kB / 1.612 GB, free: 9.48 MB / 1.026 GB Notification: Performance of pre-optimization done (n=110): time 3.947e-06/1.644, allocations: 0 / 1.612 GB, free: 9.48 MB / 1.026 GB Notification: Performance of matching and sorting (n=131): time 0.01987/1.664, allocations: 7.972 MB / 1.62 GB, free: 1.398 MB / 1.026 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.031e-05/1.664, allocations: 64.72 kB / 1.62 GB, free: 1.32 MB / 1.026 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00262/1.667, allocations: 1.259 MB / 1.621 GB, free: 68 kB / 1.026 GB Notification: Performance of collectPreVariables (initialization): time 0.000117/1.667, allocations: 53.7 kB / 1.621 GB, free: 8 kB / 1.026 GB Notification: Performance of collectInitialEqns (initialization): time 0.001248/1.668, allocations: 1.663 MB / 1.623 GB, free: 14.32 MB / 1.042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004751/1.669, allocations: 469.4 kB / 1.623 GB, free: 13.86 MB / 1.042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001095/1.669, allocations: 36 kB / 1.623 GB, free: 13.82 MB / 1.042 GB Notification: Performance of setup shared object (initialization): time 0.0001851/1.669, allocations: 377.9 kB / 1.624 GB, free: 13.45 MB / 1.042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001308/1.67, allocations: 0.8551 MB / 1.625 GB, free: 12.59 MB / 1.042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001684/1.672, allocations: 1.448 MB / 1.626 GB, free: 10.88 MB / 1.042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00164/1.674, allocations: 1.113 MB / 1.627 GB, free: 9.762 MB / 1.042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.464e-05/1.674, allocations: 11.94 kB / 1.627 GB, free: 9.75 MB / 1.042 GB Notification: Performance of matching and sorting (n=226) (initialization): time 0.005972/1.68, allocations: 3.189 MB / 1.63 GB, free: 6.523 MB / 1.042 GB Notification: Performance of prepare postOptimizeDAE: time 3.908e-05/1.68, allocations: 12 kB / 1.63 GB, free: 6.512 MB / 1.042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.389e-05/1.68, allocations: 23.98 kB / 1.63 GB, free: 6.488 MB / 1.042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002197/1.682, allocations: 0.714 MB / 1.631 GB, free: 5.746 MB / 1.042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001605/1.684, allocations: 391.4 kB / 1.631 GB, free: 5.363 MB / 1.042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0148/1.698, allocations: 15.58 MB / 1.647 GB, free: 4.59 MB / 1.057 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002481/1.701, allocations: 103.9 kB / 1.647 GB, free: 4.488 MB / 1.057 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005045/1.701, allocations: 80 kB / 1.647 GB, free: 4.41 MB / 1.057 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 () * 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.0008904/1.702, allocations: 219.8 kB / 1.647 GB, free: 4.191 MB / 1.057 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000909/1.703, allocations: 201.6 kB / 1.647 GB, free: 3.992 MB / 1.057 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006019/1.709, allocations: 2.71 MB / 1.65 GB, free: 1.242 MB / 1.057 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.34e-05/1.709, allocations: 12 kB / 1.65 GB, free: 1.23 MB / 1.057 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.426e-05/1.709, allocations: 12 kB / 1.65 GB, free: 1.219 MB / 1.057 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.425e-05/1.709, allocations: 4.125 kB / 1.65 GB, free: 1.215 MB / 1.057 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01331/1.723, allocations: 6.064 MB / 1.656 GB, free: 10.98 MB / 1.073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.505e-05/1.723, allocations: 7.984 kB / 1.656 GB, free: 10.98 MB / 1.073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00126/1.724, allocations: 240.3 kB / 1.656 GB, free: 10.74 MB / 1.073 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001871/1.726, allocations: 0.6359 MB / 1.657 GB, free: 10.08 MB / 1.073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001354/1.726, allocations: 40 kB / 1.657 GB, free: 10.04 MB / 1.073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01415/1.74, allocations: 15.29 MB / 1.672 GB, free: 9.547 MB / 1.089 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.039e-05/1.74, allocations: 7.938 kB / 1.672 GB, free: 9.539 MB / 1.089 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00742/1.748, allocations: 4.237 MB / 1.676 GB, free: 5.074 MB / 1.089 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001504/1.749, allocations: 454.5 kB / 1.676 GB, free: 4.609 MB / 1.089 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007143/1.75, allocations: 35.98 kB / 1.676 GB, free: 4.574 MB / 1.089 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001382/1.751, allocations: 79.89 kB / 1.676 GB, free: 4.496 MB / 1.089 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003671/1.752, allocations: 116.7 kB / 1.676 GB, free: 4.383 MB / 1.089 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.691e-05/1.752, allocations: 36 kB / 1.676 GB, free: 4.348 MB / 1.089 GB Notification: Performance of sorting global known variables: time 0.001953/1.754, allocations: 0.9554 MB / 1.677 GB, free: 3.402 MB / 1.089 GB Notification: Performance of sort global known variables: time 2.7e-07/1.754, allocations: 0 / 1.677 GB, free: 3.402 MB / 1.089 GB Notification: Performance of remove unused functions: time 0.003229/1.757, allocations: 0.7031 MB / 1.678 GB, free: 2.699 MB / 1.089 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 () * 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.000368/1.757, allocations: 157.8 kB / 1.678 GB, free: 2.535 MB / 1.089 GB Notification: Performance of simCode: created initialization part: time 0.005299/1.763, allocations: 3.381 MB / 1.681 GB, free: 15.04 MB / 1.104 GB Notification: Performance of simCode: created event and clocks part: time 5.871e-06/1.763, allocations: 1.438 kB / 1.681 GB, free: 15.04 MB / 1.104 GB Notification: Performance of simCode: created simulation system equations: time 0.003097/1.766, allocations: 2.224 MB / 1.684 GB, free: 12.7 MB / 1.104 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003284/1.769, allocations: 0.5777 MB / 1.684 GB, free: 12.12 MB / 1.104 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01151/1.781, allocations: 5.23 MB / 1.689 GB, free: 6.785 MB / 1.104 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003313/1.784, allocations: 2.734 MB / 1.692 GB, free: 4.016 MB / 1.104 GB Notification: Performance of simCode: alias equations: time 0.00177/1.786, allocations: 481 kB / 1.692 GB, free: 3.543 MB / 1.104 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003086/1.786, allocations: 115.4 kB / 1.693 GB, free: 3.43 MB / 1.104 GB Notification: Performance of SimCode: time 2.354e-06/1.786, allocations: 4 kB / 1.693 GB, free: 3.426 MB / 1.104 GB Notification: Performance of Templates: time 0.05813/1.844, allocations: 30.23 MB / 1.722 GB, free: 5.594 MB / 1.135 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","../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches