Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.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.ThreePhasesBalanced.Lines.Examples.ACLineMedium,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.v.1.|R1.v.2.|R2.v.1.|R2.v.2.|R3.v.1.|R3.v.2.|R1.i.1.|R1.i.2.|load_sc.i.1.|load_sc.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.v.1.|R1.v.2.|R2.v.1.|R2.v.2.|R3.v.1.|R3.v.2.|R1.i.1.|R1.i.2.|load_sc.i.1.|load_sc.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.359/2.359, allocations: 393.5 MB / 408.4 MB, free: 11 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.001114/0.001115, allocations: 187.9 kB / 0.4902 GB, free: 2.223 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.605/1.605, allocations: 223.1 MB / 0.7992 GB, free: 14.68 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.0009481/0.0009481, allocations: 90.45 kB / 0.9396 GB, free: 1.855 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003767/0.0003764, allocations: 11.34 kB / 1.09 GB, free: 216.4 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3068/0.3072, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.058/1.365, allocations: 222 MB / 1.446 GB, free: 91.25 MB / 0.9167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0005267/1.366, allocations: 102.1 kB / 1.446 GB, free: 91.25 MB / 0.9167 GB Notification: Performance of FrontEnd - DAE generated: time 0.2829/1.649, allocations: 125.3 MB / 1.568 GB, free: 50.91 MB / 0.9167 GB Notification: Performance of FrontEnd: time 2.845e-06/1.649, allocations: 0 / 1.568 GB, free: 50.91 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 0.0001983/1.649, allocations: 43.98 kB / 1.569 GB, free: 50.86 MB / 0.9167 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 327 * Number of variables: 327 Notification: Performance of Generate backend data structure: time 0.006264/1.655, allocations: 1.893 MB / 1.57 GB, free: 49.04 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 6.297e-05/1.655, allocations: 8.562 kB / 1.57 GB, free: 49.04 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01137/1.667, allocations: 1.971 MB / 1.572 GB, free: 47.1 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006153/1.673, allocations: 2.074 MB / 1.574 GB, free: 45.32 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.785e-05/1.673, allocations: 87.55 kB / 1.574 GB, free: 45.27 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003025/1.673, allocations: 121.7 kB / 1.575 GB, free: 45.18 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005661/1.679, allocations: 2.725 MB / 1.577 GB, free: 42.91 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.967e-05/1.679, allocations: 11.84 kB / 1.577 GB, free: 42.9 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001789/1.679, allocations: 57.88 kB / 1.577 GB, free: 42.88 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.588e-05/1.68, allocations: 89.41 kB / 1.577 GB, free: 42.79 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007125/1.687, allocations: 2.842 MB / 1.58 GB, free: 40.61 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01574/1.702, allocations: 10.73 MB / 1.591 GB, free: 30.98 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005854/1.708, allocations: 2.386 MB / 1.593 GB, free: 29.07 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 6.504e-05/1.708, allocations: 13 kB / 1.593 GB, free: 29.06 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.874e-05/1.708, allocations: 43.44 kB / 1.593 GB, free: 29.02 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=89): time 3.116e-06/1.708, allocations: 0 / 1.593 GB, free: 29.02 MB / 0.9167 GB Notification: Performance of matching and sorting (n=153): time 0.05561/1.764, allocations: 17.34 MB / 1.61 GB, free: 13.08 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.751e-05/1.764, allocations: 226.9 kB / 1.61 GB, free: 12.81 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001874/1.766, allocations: 1.02 MB / 1.611 GB, free: 11.78 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 0.0003292/1.766, allocations: 49.7 kB / 1.611 GB, free: 11.73 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004869/1.767, allocations: 0.7321 MB / 1.612 GB, free: 10.99 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 0.000589/1.768, allocations: 0.5237 MB / 1.612 GB, free: 10.46 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001443/1.768, allocations: 28 kB / 1.612 GB, free: 10.43 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 0.0001118/1.768, allocations: 357.9 kB / 1.613 GB, free: 10.07 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003071/1.771, allocations: 1.542 MB / 1.614 GB, free: 8.531 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003198/1.774, allocations: 1.826 MB / 1.616 GB, free: 6.605 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003084/1.777, allocations: 1.669 MB / 1.618 GB, free: 4.934 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.127e-06/1.777, allocations: 4 kB / 1.618 GB, free: 4.93 MB / 0.9167 GB Notification: Performance of matching and sorting (n=186) (initialization): time 0.01329/1.791, allocations: 5.398 MB / 1.623 GB, free: 15.49 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 3.028e-05/1.791, allocations: 8.75 kB / 1.623 GB, free: 15.48 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.729e-05/1.791, allocations: 8 kB / 1.623 GB, free: 15.48 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008688/1.799, allocations: 2.143 MB / 1.625 GB, free: 13.31 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001995/1.801, allocations: 419.2 kB / 1.625 GB, free: 12.9 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0308/1.832, allocations: 23.3 MB / 1.648 GB, free: 4.535 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003262/1.835, allocations: 327.5 kB / 1.649 GB, free: 4.215 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004705/1.836, allocations: 63.97 kB / 1.649 GB, free: 4.152 MB / 0.948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * 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 (78): * Single equations (assignments): 70 * 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: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(3,100.0%) 17,(3,100.0%) 17,(2,100.0%) 8,(2,100.0%) 8,(2,100.0%) 16,(2,100.0%) 16,(2,100.0%) 8,(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001694/1.838, allocations: 461.4 kB / 1.649 GB, free: 3.691 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007671/1.838, allocations: 181.9 kB / 1.649 GB, free: 3.512 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01435/1.853, allocations: 5.476 MB / 1.655 GB, free: 14 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.755e-05/1.853, allocations: 16 kB / 1.655 GB, free: 13.98 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.497e-05/1.853, allocations: 16 kB / 1.655 GB, free: 13.96 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.517e-05/1.853, allocations: 11.97 kB / 1.655 GB, free: 13.95 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01924/1.872, allocations: 7.676 MB / 1.662 GB, free: 6.148 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.556e-05/1.872, allocations: 0 / 1.662 GB, free: 6.148 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001662/1.874, allocations: 367.7 kB / 1.662 GB, free: 5.789 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008091/1.882, allocations: 1.99 MB / 1.664 GB, free: 3.777 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002177/1.882, allocations: 51.89 kB / 1.664 GB, free: 3.727 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0287/1.911, allocations: 22.48 MB / 1.686 GB, free: 12.18 MB / 0.9948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.562e-06/1.911, allocations: 4.094 kB / 1.686 GB, free: 12.18 MB / 0.9948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01382/1.925, allocations: 5.242 MB / 1.692 GB, free: 6.777 MB / 0.9948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001585/1.927, allocations: 0.5181 MB / 1.692 GB, free: 6.238 MB / 0.9948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006652/1.927, allocations: 28 kB / 1.692 GB, free: 6.211 MB / 0.9948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002652/1.93, allocations: 335.5 kB / 1.692 GB, free: 5.883 MB / 0.9948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006752/1.931, allocations: 141 kB / 1.693 GB, free: 5.742 MB / 0.9948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001817/1.931, allocations: 55.97 kB / 1.693 GB, free: 5.688 MB / 0.9948 GB Notification: Performance of sorting global known variables: time 0.0018/1.933, allocations: 0.7977 MB / 1.693 GB, free: 4.891 MB / 0.9948 GB Notification: Performance of sort global known variables: time 2.8e-07/1.933, allocations: 4 kB / 1.693 GB, free: 4.887 MB / 0.9948 GB Notification: Performance of remove unused functions: time 0.003366/1.936, allocations: 0.7187 MB / 1.694 GB, free: 4.168 MB / 0.9948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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 (46): * Single equations (assignments): 38 * 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: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(2,100.0%) 8,(3,100.0%) 15,(3,100.0%) 17,(2,100.0%) 8,(2,100.0%) 8,(3,100.0%) 15,(3,100.0%) 17,(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007639/1.937, allocations: 215 kB / 1.694 GB, free: 3.949 MB / 0.9948 GB Notification: Performance of simCode: created initialization part: time 0.01204/1.949, allocations: 5.198 MB / 1.699 GB, free: 14.64 MB / 1.01 GB Notification: Performance of simCode: created event and clocks part: time 1.087e-05/1.949, allocations: 4 kB / 1.699 GB, free: 14.64 MB / 1.01 GB Notification: Performance of simCode: created simulation system equations: time 0.008251/1.957, allocations: 3.405 MB / 1.703 GB, free: 11.13 MB / 1.01 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003428/1.961, allocations: 0.5023 MB / 1.703 GB, free: 10.63 MB / 1.01 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01198/1.973, allocations: 4.862 MB / 1.708 GB, free: 5.723 MB / 1.01 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0023/1.975, allocations: 1.604 MB / 1.709 GB, free: 4.082 MB / 1.01 GB Notification: Performance of simCode: alias equations: time 0.002422/1.977, allocations: 402.7 kB / 1.71 GB, free: 3.684 MB / 1.01 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005882/1.978, allocations: 115.4 kB / 1.71 GB, free: 3.57 MB / 1.01 GB Notification: Performance of SimCode: time 1.663e-06/1.978, allocations: 3.938 kB / 1.71 GB, free: 3.566 MB / 1.01 GB Notification: Performance of Templates: time 0.0791/2.057, allocations: 44.24 MB / 1.753 GB, free: 7.766 MB / 1.057 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLineMedium.csv","../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches