Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N,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_1.load1.i.1.|load_sc_1.load1.i.2.|load_sc_2.load1.i.1.|load_sc_2.load1.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N,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_1.load1.i.1.|load_sc_1.load1.i.2.|load_sc_2.load1.i.1.|load_sc_2.load1.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.36/2.36, allocations: 390.3 MB / 402.8 MB, free: 6.68 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.001869/0.001869, allocations: 180.9 kB / 496.1 MB, free: 12.87 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.687/1.687, allocations: 221.3 MB / 0.7915 GB, free: 5.402 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.0009916/0.0009914, allocations: 94.55 kB / 0.9318 GB, free: 5.711 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.775e-05/2.778e-05, allocations: 4 kB / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2615/0.2615, allocations: 143 MB / 1.219 GB, free: 13.51 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9832/1.245, allocations: 208.7 MB / 1.423 GB, free: 11.97 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002508/1.245, allocations: 98.8 kB / 1.423 GB, free: 11.91 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.2849/1.53, allocations: 120.6 MB / 1.54 GB, free: 7.891 MB / 0.9948 GB Notification: Performance of FrontEnd: time 1.522e-06/1.53, allocations: 3.938 kB / 1.54 GB, free: 7.887 MB / 0.9948 GB Notification: Performance of Transformations before backend: time 0.0001857/1.53, allocations: 79.92 kB / 1.541 GB, free: 7.809 MB / 0.9948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 798 * Number of variables: 798 Notification: Performance of Generate backend data structure: time 0.006376/1.537, allocations: 2.661 MB / 1.543 GB, free: 5.09 MB / 0.9948 GB Notification: Performance of prepare preOptimizeDAE: time 4.45e-05/1.537, allocations: 12.02 kB / 1.543 GB, free: 5.078 MB / 0.9948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005056/1.542, allocations: 0.6597 MB / 1.544 GB, free: 4.414 MB / 0.9948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006033/1.548, allocations: 2.067 MB / 1.546 GB, free: 2.285 MB / 0.9948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002189/1.548, allocations: 222 kB / 1.546 GB, free: 2.066 MB / 0.9948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001139/1.549, allocations: 295.9 kB / 1.546 GB, free: 1.777 MB / 0.9948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01009/1.559, allocations: 4.56 MB / 1.551 GB, free: 12.97 MB / 1.01 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001311/1.559, allocations: 7.938 kB / 1.551 GB, free: 12.96 MB / 1.01 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008053/1.56, allocations: 140 kB / 1.551 GB, free: 12.82 MB / 1.01 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002305/1.561, allocations: 165.8 kB / 1.551 GB, free: 12.66 MB / 1.01 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006642/1.567, allocations: 3.353 MB / 1.554 GB, free: 9.297 MB / 1.01 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0286/1.596, allocations: 21.58 MB / 1.575 GB, free: 1.723 MB / 1.026 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002046/1.598, allocations: 1.277 MB / 1.577 GB, free: 440 kB / 1.026 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001549/1.599, allocations: 1.026 MB / 1.578 GB, free: 15.41 MB / 1.042 GB Notification: Performance of preOpt evalFunc (simulation): time 8.194e-05/1.6, allocations: 9 kB / 1.578 GB, free: 15.4 MB / 1.042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.79e-05/1.6, allocations: 47.56 kB / 1.578 GB, free: 15.34 MB / 1.042 GB Notification: Performance of pre-optimization done (n=107): time 3.457e-06/1.6, allocations: 4 kB / 1.578 GB, free: 15.34 MB / 1.042 GB Notification: Performance of matching and sorting (n=138): time 0.01847/1.618, allocations: 6.652 MB / 1.584 GB, free: 8.68 MB / 1.042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.694e-05/1.618, allocations: 72.66 kB / 1.584 GB, free: 8.598 MB / 1.042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001688/1.62, allocations: 0.9498 MB / 1.585 GB, free: 7.641 MB / 1.042 GB Notification: Performance of collectPreVariables (initialization): time 0.0001062/1.62, allocations: 49.7 kB / 1.585 GB, free: 7.586 MB / 1.042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009078/1.621, allocations: 1.304 MB / 1.587 GB, free: 6.266 MB / 1.042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004357/1.621, allocations: 481 kB / 1.587 GB, free: 5.789 MB / 1.042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001005/1.622, allocations: 36 kB / 1.587 GB, free: 5.754 MB / 1.042 GB Notification: Performance of setup shared object (initialization): time 0.0001634/1.622, allocations: 373.9 kB / 1.587 GB, free: 5.383 MB / 1.042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001265/1.623, allocations: 0.859 MB / 1.588 GB, free: 4.523 MB / 1.042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001565/1.625, allocations: 1.323 MB / 1.589 GB, free: 2.996 MB / 1.042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001552/1.626, allocations: 1.106 MB / 1.591 GB, free: 1.895 MB / 1.042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.08e-05/1.626, allocations: 4 kB / 1.591 GB, free: 1.891 MB / 1.042 GB Notification: Performance of matching and sorting (n=205) (initialization): time 0.005998/1.632, allocations: 3.37 MB / 1.594 GB, free: 14.5 MB / 1.057 GB Notification: Performance of prepare postOptimizeDAE: time 6.215e-05/1.632, allocations: 13.72 kB / 1.594 GB, free: 14.49 MB / 1.057 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.488e-05/1.632, allocations: 16 kB / 1.594 GB, free: 14.47 MB / 1.057 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003521/1.636, allocations: 1.136 MB / 1.595 GB, free: 13.33 MB / 1.057 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001182/1.637, allocations: 267.5 kB / 1.595 GB, free: 13.07 MB / 1.057 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01661/1.654, allocations: 12.45 MB / 1.607 GB, free: 220 kB / 1.057 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001504/1.655, allocations: 87.98 kB / 1.607 GB, free: 132 kB / 1.057 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001237/1.655, allocations: 67.98 kB / 1.608 GB, free: 64 kB / 1.057 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 65 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (134): * Single equations (assignments): 131 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(5,84.0%) 17,(5,84.0%) 17,(5,88.0%) 25} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003154/1.656, allocations: 204.5 kB / 1.608 GB, free: 15.86 MB / 1.073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002208/1.656, allocations: 162.1 kB / 1.608 GB, free: 15.7 MB / 1.073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005658/1.662, allocations: 3.087 MB / 1.611 GB, free: 12.58 MB / 1.073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.295e-05/1.662, allocations: 15.94 kB / 1.611 GB, free: 12.57 MB / 1.073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.934e-05/1.662, allocations: 12 kB / 1.611 GB, free: 12.55 MB / 1.073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.211e-05/1.662, allocations: 7.969 kB / 1.611 GB, free: 12.55 MB / 1.073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01023/1.672, allocations: 6.096 MB / 1.617 GB, free: 6.312 MB / 1.073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.01e-05/1.672, allocations: 4.375 kB / 1.617 GB, free: 6.309 MB / 1.073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006096/1.673, allocations: 151.8 kB / 1.617 GB, free: 6.16 MB / 1.073 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002581/1.675, allocations: 1.029 MB / 1.618 GB, free: 5.125 MB / 1.073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.335e-05/1.675, allocations: 28 kB / 1.618 GB, free: 5.098 MB / 1.073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01489/1.69, allocations: 12.14 MB / 1.63 GB, free: 8.562 MB / 1.089 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.315e-06/1.69, allocations: 11.94 kB / 1.63 GB, free: 8.551 MB / 1.089 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005476/1.696, allocations: 3.311 MB / 1.633 GB, free: 5.004 MB / 1.089 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009222/1.697, allocations: 419 kB / 1.634 GB, free: 4.574 MB / 1.089 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001848/1.697, allocations: 28.36 kB / 1.634 GB, free: 4.547 MB / 1.089 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007418/1.698, allocations: 79.91 kB / 1.634 GB, free: 4.469 MB / 1.089 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003699/1.698, allocations: 124.7 kB / 1.634 GB, free: 4.348 MB / 1.089 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.77e-05/1.698, allocations: 40 kB / 1.634 GB, free: 4.309 MB / 1.089 GB Notification: Performance of sorting global known variables: time 0.001106/1.699, allocations: 0.7339 MB / 1.635 GB, free: 3.57 MB / 1.089 GB Notification: Performance of sort global known variables: time 2.6e-07/1.699, allocations: 0 / 1.635 GB, free: 3.57 MB / 1.089 GB Notification: Performance of remove unused functions: time 0.002475/1.702, allocations: 0.6641 MB / 1.635 GB, free: 2.906 MB / 1.089 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * Single equations (assignments): 67 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(5,84.0%) 17,(5,88.0%) 25,(5,84.0%) 17} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003005/1.702, allocations: 151 kB / 1.635 GB, free: 2.746 MB / 1.089 GB Notification: Performance of simCode: created initialization part: time 0.004829/1.707, allocations: 3.01 MB / 1.638 GB, free: 15.7 MB / 1.104 GB Notification: Performance of simCode: created event and clocks part: time 5.05e-06/1.707, allocations: 320 / 1.638 GB, free: 15.7 MB / 1.104 GB Notification: Performance of simCode: created simulation system equations: time 0.002841/1.71, allocations: 1.9 MB / 1.64 GB, free: 13.76 MB / 1.104 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002028/1.712, allocations: 434.7 kB / 1.641 GB, free: 13.34 MB / 1.104 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007345/1.719, allocations: 4.291 MB / 1.645 GB, free: 8.961 MB / 1.104 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002424/1.722, allocations: 2.391 MB / 1.647 GB, free: 6.531 MB / 1.104 GB Notification: Performance of simCode: alias equations: time 0.001235/1.723, allocations: 346 kB / 1.647 GB, free: 6.188 MB / 1.104 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002186/1.723, allocations: 83.44 kB / 1.648 GB, free: 6.105 MB / 1.104 GB Notification: Performance of SimCode: time 9.91e-07/1.723, allocations: 3.938 kB / 1.648 GB, free: 6.102 MB / 1.104 GB Notification: Performance of Templates: time 0.05006/1.773, allocations: 29.15 MB / 1.676 GB, free: 9.332 MB / 1.135 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RL_N.csv","../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches