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_R_N.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_R_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.terminal.phase.1..v.1.|R2.terminal.phase.1..v.1.|R3.terminal.phase.1..v.1.|E.vPhase.1..terminal.v.1.|R1.load1.i.1.|R2.load1.i.1.|R3.load1.i.1.|sc_load.load1.i.1.",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.terminal.phase.1..v.1.|R2.terminal.phase.1..v.1.|R3.terminal.phase.1..v.1.|E.vPhase.1..terminal.v.1.|R1.load1.i.1.|R2.load1.i.1.|R3.load1.i.1.|sc_load.load1.i.1.",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.384/1.384, allocations: 251.9 MB / 266.9 MB, free: 11 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.001095/0.001095, allocations: 182.2 kB / 326.5 MB, free: 2.23 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.971/1.971, allocations: 205.4 MB / 0.5775 GB, free: 20.53 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.0009356/0.0009359, allocations: 88 kB / 0.6821 GB, free: 13.33 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003601/0.0003601, allocations: 13.12 kB / 0.7963 GB, free: 134.9 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2557/0.2561, allocations: 106.3 MB / 0.9001 GB, free: 64.28 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7461/1.002, allocations: 165.2 MB / 1.061 GB, free: 154.3 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003495/1.003, allocations: 100.2 kB / 1.062 GB, free: 154.3 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 0.4371/1.44, allocations: 202.2 MB / 1.259 GB, free: 368 kB / 0.7292 GB Notification: Performance of FrontEnd: time 3.898e-06/1.44, allocations: 0 / 1.259 GB, free: 368 kB / 0.7292 GB Notification: Performance of Transformations before backend: time 0.0005476/1.44, allocations: 147.9 kB / 1.259 GB, free: 220 kB / 0.7292 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1524 * Number of variables: 1524 Notification: Performance of Generate backend data structure: time 0.01997/1.46, allocations: 5.242 MB / 1.264 GB, free: 10.9 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 5.63e-05/1.46, allocations: 8.031 kB / 1.264 GB, free: 10.89 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00842/1.469, allocations: 1.14 MB / 1.265 GB, free: 9.746 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01212/1.481, allocations: 3.7 MB / 1.269 GB, free: 5.992 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005037/1.482, allocations: 431.5 kB / 1.269 GB, free: 5.57 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003094/1.485, allocations: 0.5507 MB / 1.27 GB, free: 5.02 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02896/1.514, allocations: 8.811 MB / 1.279 GB, free: 11.77 MB / 0.7605 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002409/1.514, allocations: 23.77 kB / 1.279 GB, free: 11.75 MB / 0.7605 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001777/1.516, allocations: 260 kB / 1.279 GB, free: 11.49 MB / 0.7605 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003304/1.516, allocations: 302.9 kB / 1.279 GB, free: 11.2 MB / 0.7605 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01714/1.533, allocations: 6.441 MB / 1.285 GB, free: 4.746 MB / 0.7605 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06375/1.597, allocations: 41.45 MB / 1.326 GB, free: 7.551 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004736/1.602, allocations: 3.115 MB / 1.329 GB, free: 4.43 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001563/1.602, allocations: 22 kB / 1.329 GB, free: 4.41 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.295e-05/1.602, allocations: 60.42 kB / 1.329 GB, free: 4.344 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=209): time 4.308e-06/1.602, allocations: 0 / 1.329 GB, free: 4.344 MB / 0.8073 GB Notification: Performance of matching and sorting (n=212): time 0.02476/1.627, allocations: 10.47 MB / 1.339 GB, free: 9.77 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.47e-05/1.627, allocations: 81.41 kB / 1.339 GB, free: 9.676 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003202/1.63, allocations: 1.673 MB / 1.341 GB, free: 7.988 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 0.0003247/1.63, allocations: 65.7 kB / 1.341 GB, free: 7.918 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 0.00212/1.633, allocations: 2.365 MB / 1.343 GB, free: 5.52 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 0.001138/1.634, allocations: 0.7317 MB / 1.344 GB, free: 4.777 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001455/1.634, allocations: 52 kB / 1.344 GB, free: 4.727 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 0.0002875/1.634, allocations: 411.1 kB / 1.344 GB, free: 4.32 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002209/1.636, allocations: 1.321 MB / 1.346 GB, free: 2.996 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002794/1.639, allocations: 2.101 MB / 1.348 GB, free: 0.543 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002538/1.642, allocations: 1.681 MB / 1.349 GB, free: 14.86 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.143e-05/1.642, allocations: 8 kB / 1.349 GB, free: 14.85 MB / 0.8386 GB Notification: Performance of matching and sorting (n=327) (initialization): time 0.009041/1.651, allocations: 4.976 MB / 1.354 GB, free: 9.852 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 5.338e-05/1.651, allocations: 16 kB / 1.354 GB, free: 9.836 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.459e-05/1.651, allocations: 24.09 kB / 1.354 GB, free: 9.812 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00371/1.655, allocations: 1.534 MB / 1.356 GB, free: 8.27 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001921/1.657, allocations: 443.2 kB / 1.356 GB, free: 7.836 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02335/1.68, allocations: 17.66 MB / 1.374 GB, free: 5.645 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002754/1.683, allocations: 147.9 kB / 1.374 GB, free: 5.5 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003386/1.683, allocations: 115.9 kB / 1.374 GB, free: 5.387 MB / 0.8542 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 113 * 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 (219): * Single equations (assignments): 215 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(6,72.2%) 32,(6,66.7%) 24,(4,100.0%) 18,(4,100.0%) 18} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004969/1.688, allocations: 1.937 MB / 1.376 GB, free: 3.438 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008737/1.689, allocations: 288.6 kB / 1.376 GB, free: 3.152 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5311/2.22, allocations: 4.442 MB / 1.38 GB, free: 186.4 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.607e-05/2.22, allocations: 19.84 kB / 1.38 GB, free: 186.4 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.237e-05/2.22, allocations: 16.41 kB / 1.38 GB, free: 186.4 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.354e-05/2.22, allocations: 16.09 kB / 1.38 GB, free: 186.4 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01892/2.239, allocations: 9.626 MB / 1.39 GB, free: 185.7 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.49e-05/2.239, allocations: 7.062 kB / 1.39 GB, free: 185.7 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001202/2.24, allocations: 238.2 kB / 1.39 GB, free: 185.7 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003738/2.244, allocations: 1.398 MB / 1.391 GB, free: 185.7 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002275/2.244, allocations: 43.84 kB / 1.391 GB, free: 185.7 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01986/2.264, allocations: 17.69 MB / 1.409 GB, free: 180.6 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.14e-06/2.264, allocations: 6 kB / 1.409 GB, free: 180.6 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006593/2.271, allocations: 4.874 MB / 1.413 GB, free: 179.7 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001856/2.273, allocations: 0.6354 MB / 1.414 GB, free: 179.6 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004398/2.273, allocations: 41.08 kB / 1.414 GB, free: 179.6 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001297/2.275, allocations: 121 kB / 1.414 GB, free: 179.6 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005956/2.275, allocations: 178.1 kB / 1.414 GB, free: 179.6 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001523/2.275, allocations: 62 kB / 1.414 GB, free: 179.6 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.001747/2.277, allocations: 1.26 MB / 1.416 GB, free: 179.5 MB / 0.8542 GB Notification: Performance of sort global known variables: time 1.51e-07/2.277, allocations: 0 / 1.416 GB, free: 179.5 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.003929/2.281, allocations: 1.183 MB / 1.417 GB, free: 179.5 MB / 0.8542 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (107): * Single equations (assignments): 103 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(4,100.0%) 18,(6,66.7%) 24,(6,66.7%) 32,(4,100.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003709/2.281, allocations: 166.3 kB / 1.417 GB, free: 179.4 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.006042/2.288, allocations: 4.612 MB / 1.421 GB, free: 178.8 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 9.568e-06/2.288, allocations: 3.406 kB / 1.421 GB, free: 178.8 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.003954/2.292, allocations: 2.913 MB / 1.424 GB, free: 178.2 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003479/2.295, allocations: 0.7572 MB / 1.425 GB, free: 178.2 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01752/2.313, allocations: 11.18 MB / 1.436 GB, free: 173.5 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006235/2.319, allocations: 3.786 MB / 1.44 GB, free: 172.7 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 0.002959/2.322, allocations: 0.5506 MB / 1.44 GB, free: 172.7 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000504/2.322, allocations: 149.4 kB / 1.44 GB, free: 172.7 MB / 0.8542 GB Notification: Performance of SimCode: time 3.106e-06/2.322, allocations: 0 / 1.44 GB, free: 172.7 MB / 0.8542 GB Notification: Performance of Templates: time 0.0818/2.404, allocations: 47.55 MB / 1.487 GB, free: 171.2 MB / 0.8542 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.makefile (rm -f Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.sim & ./Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R_N.csv","../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches