Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.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.OnePhase.Lines.Examples.ACLine,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.OnePhase.Lines.Examples.ACLine") translateModel(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine,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.OnePhase.Lines.Examples.ACLine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.538/2.538, allocations: 393.5 MB / 408.4 MB, free: 10.95 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.001132/0.001132, allocations: 183.9 kB / 0.4902 GB, free: 2.207 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.71/1.71, allocations: 223.1 MB / 0.7992 GB, free: 14.76 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.001148/0.001148, allocations: 98 kB / 0.9396 GB, free: 1.906 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003825/0.0003827, allocations: 6.781 kB / 1.09 GB, free: 216 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.357/0.3574, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2498/0.6072, allocations: 192.3 MB / 1.417 GB, free: 9.152 MB / 0.9167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003427/0.6076, allocations: 103.9 kB / 1.417 GB, free: 9.051 MB / 0.9167 GB Notification: Performance of FrontEnd - DAE generated: time 0.8813/1.489, allocations: 83.89 MB / 1.499 GB, free: 147.5 MB / 0.9167 GB Notification: Performance of FrontEnd: time 1.263e-06/1.489, allocations: 0 / 1.499 GB, free: 147.5 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 0.0001542/1.489, allocations: 39.98 kB / 1.499 GB, free: 147.4 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: 315 * Number of variables: 315 Notification: Performance of Generate backend data structure: time 0.00421/1.493, allocations: 1.768 MB / 1.501 GB, free: 145.6 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 4.251e-05/1.493, allocations: 12.52 kB / 1.501 GB, free: 145.6 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01075/1.504, allocations: 1.808 MB / 1.503 GB, free: 143.8 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00293/1.507, allocations: 1.146 MB / 1.504 GB, free: 142.6 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.484e-05/1.507, allocations: 90.3 kB / 1.504 GB, free: 142.5 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000223/1.507, allocations: 123.8 kB / 1.504 GB, free: 142.4 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005186/1.513, allocations: 2.54 MB / 1.506 GB, free: 139.6 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.223e-05/1.513, allocations: 7.938 kB / 1.506 GB, free: 139.6 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001576/1.513, allocations: 63.92 kB / 1.506 GB, free: 139.6 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.483e-05/1.513, allocations: 78.2 kB / 1.507 GB, free: 139.5 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006213/1.519, allocations: 2.584 MB / 1.509 GB, free: 136.9 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01211/1.531, allocations: 10.2 MB / 1.519 GB, free: 126 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005456/1.537, allocations: 2.007 MB / 1.521 GB, free: 124 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 5.539e-05/1.537, allocations: 16.42 kB / 1.521 GB, free: 124 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.121e-05/1.537, allocations: 39 kB / 1.521 GB, free: 123.9 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=53): time 4.268e-06/1.537, allocations: 0 / 1.521 GB, free: 123.9 MB / 0.9167 GB Notification: Performance of matching and sorting (n=81): time 0.02887/1.566, allocations: 9.229 MB / 1.53 GB, free: 114.6 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.273e-05/1.566, allocations: 214.3 kB / 1.53 GB, free: 114.4 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001252/1.567, allocations: 0.9534 MB / 1.531 GB, free: 113.4 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 0.0001273/1.567, allocations: 41.7 kB / 1.531 GB, free: 113.4 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.000346/1.568, allocations: 0.7303 MB / 1.532 GB, free: 112.6 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001976/1.568, allocations: 279.9 kB / 1.532 GB, free: 112.4 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.628e-05/1.568, allocations: 24 kB / 1.532 GB, free: 112.3 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 6.138e-05/1.568, allocations: 337.9 kB / 1.533 GB, free: 112 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002564/1.571, allocations: 1.099 MB / 1.534 GB, free: 110.9 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002637/1.573, allocations: 1.346 MB / 1.535 GB, free: 109.5 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002642/1.576, allocations: 1.154 MB / 1.536 GB, free: 108.3 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.86e-06/1.576, allocations: 4 kB / 1.536 GB, free: 108.3 MB / 0.9167 GB Notification: Performance of matching and sorting (n=114) (initialization): time 0.007811/1.584, allocations: 3.32 MB / 1.539 GB, free: 104.9 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 2.609e-05/1.584, allocations: 16.14 kB / 1.539 GB, free: 104.9 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.101e-05/1.584, allocations: 4 kB / 1.539 GB, free: 104.9 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002904/1.587, allocations: 0.8575 MB / 1.54 GB, free: 104 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001666/1.588, allocations: 427.2 kB / 1.541 GB, free: 103.6 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0126/1.601, allocations: 15.19 MB / 1.555 GB, free: 87.36 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002575/1.604, allocations: 303.6 kB / 1.556 GB, free: 87.07 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001518/1.604, allocations: 55.95 kB / 1.556 GB, free: 87.01 MB / 0.9167 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%) 5,(3,100.0%) 5,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009335/1.605, allocations: 396.4 kB / 1.556 GB, free: 86.62 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000247/1.605, allocations: 146.2 kB / 1.556 GB, free: 86.47 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007665/1.613, allocations: 3.277 MB / 1.559 GB, free: 83.16 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.684e-06/1.613, allocations: 8 kB / 1.559 GB, free: 83.15 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.087e-05/1.613, allocations: 12 kB / 1.559 GB, free: 83.14 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.836e-06/1.613, allocations: 3.984 kB / 1.559 GB, free: 83.13 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01056/1.623, allocations: 5.037 MB / 1.564 GB, free: 77.97 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.017e-06/1.623, allocations: 4 kB / 1.564 GB, free: 77.96 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00148/1.625, allocations: 363.4 kB / 1.565 GB, free: 77.61 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002627/1.627, allocations: 0.7796 MB / 1.566 GB, free: 76.8 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000113/1.628, allocations: 31.97 kB / 1.566 GB, free: 76.77 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01176/1.639, allocations: 14.83 MB / 1.58 GB, free: 60.88 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/1.639, allocations: 4.031 kB / 1.58 GB, free: 60.88 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007191/1.647, allocations: 3.268 MB / 1.583 GB, free: 57.44 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001093/1.648, allocations: 407.1 kB / 1.584 GB, free: 57.02 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001906/1.648, allocations: 16 kB / 1.584 GB, free: 57 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001705/1.65, allocations: 315.5 kB / 1.584 GB, free: 56.7 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002605/1.65, allocations: 80.48 kB / 1.584 GB, free: 56.62 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001022/1.65, allocations: 35.97 kB / 1.584 GB, free: 56.58 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.0009458/1.651, allocations: 0.7405 MB / 1.585 GB, free: 55.84 MB / 0.9167 GB Notification: Performance of sort global known variables: time 1e-07/1.651, allocations: 0 / 1.585 GB, free: 55.84 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.001699/1.653, allocations: 460 kB / 1.585 GB, free: 55.39 MB / 0.9167 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%) 2,(2,100.0%) 4,(3,100.0%) 5,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 4,(3,100.0%) 5,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003214/1.653, allocations: 155.2 kB / 1.585 GB, free: 55.23 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.007075/1.66, allocations: 3.672 MB / 1.589 GB, free: 51.45 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 8.055e-06/1.66, allocations: 3.906 kB / 1.589 GB, free: 51.45 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.004041/1.664, allocations: 2.403 MB / 1.591 GB, free: 48.94 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002076/1.666, allocations: 484.1 kB / 1.592 GB, free: 48.48 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007533/1.674, allocations: 4.25 MB / 1.596 GB, free: 44.16 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007717/1.675, allocations: 1.427 MB / 1.597 GB, free: 42.7 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.001607/1.676, allocations: 379.9 kB / 1.598 GB, free: 42.33 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003344/1.677, allocations: 107.4 kB / 1.598 GB, free: 42.23 MB / 0.9167 GB Notification: Performance of SimCode: time 6.51e-07/1.677, allocations: 0 / 1.598 GB, free: 42.23 MB / 0.9167 GB Notification: Performance of Templates: time 0.04308/1.72, allocations: 29.17 MB / 1.626 GB, free: 13.44 MB / 0.9167 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.sim & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine.csv","../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches