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.335/2.335, allocations: 390.3 MB / 402.8 MB, free: 6.66 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.0009696/0.0009701, allocations: 176.8 kB / 496.1 MB, free: 12.86 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.585/1.585, allocations: 221.3 MB / 0.7915 GB, free: 5.441 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.0009488/0.0009488, allocations: 95.89 kB / 0.9317 GB, free: 5.762 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.935e-05/2.957e-05, allocations: 4 kB / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3018/0.3018, allocations: 143 MB / 1.219 GB, free: 13.49 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.01/1.312, allocations: 192.3 MB / 1.407 GB, free: 12.02 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002645/1.312, allocations: 93.81 kB / 1.407 GB, free: 11.96 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.2086/1.521, allocations: 83.58 MB / 1.488 GB, free: 13.84 MB / 0.948 GB Notification: Performance of FrontEnd: time 1.904e-06/1.521, allocations: 0 / 1.488 GB, free: 13.84 MB / 0.948 GB Notification: Performance of Transformations before backend: time 0.0001098/1.521, allocations: 35.98 kB / 1.488 GB, free: 13.8 MB / 0.948 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.002994/1.524, allocations: 1.544 MB / 1.49 GB, free: 12.21 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 5.034e-05/1.524, allocations: 8.031 kB / 1.49 GB, free: 12.2 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01099/1.535, allocations: 1.804 MB / 1.492 GB, free: 10.39 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003202/1.539, allocations: 1.134 MB / 1.493 GB, free: 9.203 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.511e-05/1.539, allocations: 86.31 kB / 1.493 GB, free: 9.117 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002776/1.539, allocations: 119.9 kB / 1.493 GB, free: 9 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003594/1.543, allocations: 2.053 MB / 1.495 GB, free: 6.758 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.902e-05/1.543, allocations: 3.938 kB / 1.495 GB, free: 6.754 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001726/1.543, allocations: 59.94 kB / 1.495 GB, free: 6.695 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001037/1.543, allocations: 78.2 kB / 1.495 GB, free: 6.617 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002682/1.546, allocations: 1.617 MB / 1.497 GB, free: 4.992 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01462/1.56, allocations: 10.18 MB / 1.506 GB, free: 10.16 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002056/1.562, allocations: 1.13 MB / 1.508 GB, free: 9.004 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008411/1.563, allocations: 0.5931 MB / 1.508 GB, free: 8.41 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 4.894e-05/1.563, allocations: 12.42 kB / 1.508 GB, free: 8.398 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.156e-05/1.563, allocations: 50.98 kB / 1.508 GB, free: 8.34 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=53): time 2.174e-06/1.563, allocations: 0 / 1.508 GB, free: 8.34 MB / 0.9636 GB Notification: Performance of matching and sorting (n=81): time 0.02131/1.585, allocations: 6.598 MB / 1.515 GB, free: 1.691 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001252/1.585, allocations: 222.4 kB / 1.515 GB, free: 1.426 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001426/1.586, allocations: 0.9436 MB / 1.516 GB, free: 480 kB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 0.0001174/1.586, allocations: 41.7 kB / 1.516 GB, free: 432 kB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005516/1.587, allocations: 0.7304 MB / 1.517 GB, free: 15.68 MB / 0.9792 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002679/1.587, allocations: 279.9 kB / 1.517 GB, free: 15.41 MB / 0.9792 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.472e-05/1.587, allocations: 20 kB / 1.517 GB, free: 15.39 MB / 0.9792 GB Notification: Performance of setup shared object (initialization): time 0.0001462/1.587, allocations: 341.9 kB / 1.517 GB, free: 15.05 MB / 0.9792 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001017/1.588, allocations: 0.6853 MB / 1.518 GB, free: 14.36 MB / 0.9792 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001229/1.59, allocations: 0.934 MB / 1.519 GB, free: 13.33 MB / 0.9792 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001117/1.591, allocations: 0.7516 MB / 1.519 GB, free: 12.58 MB / 0.9792 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-06/1.591, allocations: 0 / 1.519 GB, free: 12.58 MB / 0.9792 GB Notification: Performance of matching and sorting (n=114) (initialization): time 0.00513/1.596, allocations: 2.5 MB / 1.522 GB, free: 10.04 MB / 0.9792 GB Notification: Performance of prepare postOptimizeDAE: time 2.712e-05/1.596, allocations: 8 kB / 1.522 GB, free: 10.04 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.283e-05/1.596, allocations: 8 kB / 1.522 GB, free: 10.03 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003015/1.599, allocations: 0.8576 MB / 1.523 GB, free: 9.145 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00196/1.601, allocations: 419.3 kB / 1.523 GB, free: 8.734 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01716/1.618, allocations: 14.87 MB / 1.538 GB, free: 8.789 MB / 0.9948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003916/1.622, allocations: 307.5 kB / 1.538 GB, free: 8.488 MB / 0.9948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002961/1.623, allocations: 51.97 kB / 1.538 GB, free: 8.438 MB / 0.9948 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 () * 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.0004505/1.623, allocations: 156.8 kB / 1.538 GB, free: 8.277 MB / 0.9948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004462/1.623, allocations: 146.3 kB / 1.538 GB, free: 8.133 MB / 0.9948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008042/1.631, allocations: 2.464 MB / 1.541 GB, free: 5.629 MB / 0.9948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.756e-05/1.632, allocations: 8 kB / 1.541 GB, free: 5.621 MB / 0.9948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.869e-05/1.632, allocations: 8 kB / 1.541 GB, free: 5.613 MB / 0.9948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.766e-05/1.632, allocations: 7.938 kB / 1.541 GB, free: 5.605 MB / 0.9948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01392/1.646, allocations: 4.233 MB / 1.545 GB, free: 1.246 MB / 0.9948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.805e-05/1.646, allocations: 8 kB / 1.545 GB, free: 1.238 MB / 0.9948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003411/1.649, allocations: 363.7 kB / 1.545 GB, free: 0.8828 MB / 0.9948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005084/1.654, allocations: 0.7716 MB / 1.546 GB, free: 88 kB / 0.9948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000227/1.654, allocations: 31.97 kB / 1.546 GB, free: 56 kB / 0.9948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02575/1.68, allocations: 14.51 MB / 1.56 GB, free: 484 kB / 1.01 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.51e-06/1.68, allocations: 4.031 kB / 1.56 GB, free: 480 kB / 1.01 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008536/1.689, allocations: 2.462 MB / 1.563 GB, free: 13.84 MB / 1.026 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001539/1.69, allocations: 391.2 kB / 1.563 GB, free: 13.44 MB / 1.026 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003997/1.691, allocations: 23.92 kB / 1.563 GB, free: 13.42 MB / 1.026 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003897/1.695, allocations: 315.5 kB / 1.563 GB, free: 13.11 MB / 1.026 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004468/1.695, allocations: 80.61 kB / 1.563 GB, free: 13.03 MB / 1.026 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001879/1.695, allocations: 39.95 kB / 1.563 GB, free: 12.99 MB / 1.026 GB Notification: Performance of sorting global known variables: time 0.00175/1.697, allocations: 0.727 MB / 1.564 GB, free: 12.26 MB / 1.026 GB Notification: Performance of sort global known variables: time 3.71e-07/1.697, allocations: 0 / 1.564 GB, free: 12.26 MB / 1.026 GB Notification: Performance of remove unused functions: time 0.002807/1.7, allocations: 460 kB / 1.565 GB, free: 11.81 MB / 1.026 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 () * 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.0004647/1.701, allocations: 139.1 kB / 1.565 GB, free: 11.67 MB / 1.026 GB Notification: Performance of simCode: created initialization part: time 0.006108/1.707, allocations: 2.864 MB / 1.568 GB, free: 8.699 MB / 1.026 GB Notification: Performance of simCode: created event and clocks part: time 7.083e-06/1.707, allocations: 0 / 1.568 GB, free: 8.699 MB / 1.026 GB Notification: Performance of simCode: created simulation system equations: time 0.003323/1.71, allocations: 1.966 MB / 1.569 GB, free: 6.629 MB / 1.026 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00246/1.713, allocations: 485.2 kB / 1.57 GB, free: 6.164 MB / 1.026 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006646/1.719, allocations: 2.726 MB / 1.573 GB, free: 3.371 MB / 1.026 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001181/1.72, allocations: 1.419 MB / 1.574 GB, free: 1.922 MB / 1.026 GB Notification: Performance of simCode: alias equations: time 0.001785/1.722, allocations: 387.8 kB / 1.574 GB, free: 1.539 MB / 1.026 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003658/1.723, allocations: 107.4 kB / 1.574 GB, free: 1.434 MB / 1.026 GB Notification: Performance of SimCode: time 1.202e-06/1.723, allocations: 0 / 1.574 GB, free: 1.434 MB / 1.026 GB Notification: Performance of Templates: time 0.0512/1.774, allocations: 29.2 MB / 1.603 GB, free: 4.602 MB / 1.057 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