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.382/2.382, allocations: 390.5 MB / 398 MB, free: 10.91 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.001214/0.001214, allocations: 179.8 kB / 491.2 MB, free: 1.547 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.7/1.7, allocations: 221.5 MB / 0.7868 GB, free: 13.29 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.0009983/0.0009984, allocations: 99.5 kB / 0.9269 GB, free: 13.78 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 1.502e-05/1.526e-05, allocations: 0 / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3258/0.3259, allocations: 143 MB / 1.212 GB, free: 39.5 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.013/1.339, allocations: 191.6 MB / 1.399 GB, free: 8.895 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002916/1.339, allocations: 95.72 kB / 1.4 GB, free: 8.844 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.204/1.543, allocations: 83.12 MB / 1.481 GB, free: 2.941 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.414e-06/1.543, allocations: 0 / 1.481 GB, free: 2.941 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 0.0002096/1.543, allocations: 39.92 kB / 1.481 GB, free: 2.902 MB / 0.8855 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.005854/1.549, allocations: 1.537 MB / 1.482 GB, free: 1.422 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 6.413e-05/1.549, allocations: 16.02 kB / 1.482 GB, free: 1.406 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01158/1.561, allocations: 1.8 MB / 1.484 GB, free: 15.62 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003436/1.564, allocations: 1.134 MB / 1.485 GB, free: 14.64 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.429e-05/1.565, allocations: 36 kB / 1.485 GB, free: 14.61 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004828/1.565, allocations: 75.22 kB / 1.485 GB, free: 14.54 MB / 0.9011 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002947/1.568, allocations: 1.439 MB / 1.487 GB, free: 13.64 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003742/1.572, allocations: 1.876 MB / 1.488 GB, free: 12.05 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.536e-05/1.572, allocations: 13.95 kB / 1.488 GB, free: 12.04 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002247/1.572, allocations: 8 kB / 1.488 GB, free: 12.04 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001123/1.572, allocations: 73.58 kB / 1.489 GB, free: 11.96 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01604/1.588, allocations: 9.914 MB / 1.498 GB, free: 1.668 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002031/1.59, allocations: 1.105 MB / 1.499 GB, free: 0.5352 MB / 0.9011 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007981/1.591, allocations: 0.5838 MB / 1.5 GB, free: 15.95 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 4.621e-05/1.591, allocations: 12.39 kB / 1.5 GB, free: 15.94 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.912e-05/1.591, allocations: 42.94 kB / 1.5 GB, free: 15.89 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=53): time 2.505e-06/1.591, allocations: 0 / 1.5 GB, free: 15.89 MB / 0.9167 GB Notification: Performance of matching and sorting (n=81): time 0.008919/1.6, allocations: 3.878 MB / 1.504 GB, free: 11.97 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001259/1.6, allocations: 226.4 kB / 1.504 GB, free: 11.7 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001362/1.602, allocations: 0.7421 MB / 1.505 GB, free: 10.95 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 0.0001087/1.602, allocations: 25.7 kB / 1.505 GB, free: 10.92 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005639/1.602, allocations: 0.7408 MB / 1.505 GB, free: 10.17 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002766/1.603, allocations: 275.9 kB / 1.506 GB, free: 9.895 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.428e-05/1.603, allocations: 0 / 1.506 GB, free: 9.895 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 0.0001479/1.603, allocations: 337.9 kB / 1.506 GB, free: 9.559 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008961/1.604, allocations: 0.6742 MB / 1.507 GB, free: 8.883 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001104/1.605, allocations: 0.9111 MB / 1.508 GB, free: 7.875 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001271/1.606, allocations: 0.7695 MB / 1.508 GB, free: 7.105 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.183e-06/1.606, allocations: 7.984 kB / 1.508 GB, free: 7.098 MB / 0.9167 GB Notification: Performance of matching and sorting (n=114) (initialization): time 0.004839/1.611, allocations: 2.425 MB / 1.511 GB, free: 4.633 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 3.012e-05/1.611, allocations: 11.95 kB / 1.511 GB, free: 4.621 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.955e-05/1.611, allocations: 12.73 kB / 1.511 GB, free: 4.609 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002946/1.614, allocations: 0.8302 MB / 1.511 GB, free: 3.754 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00197/1.616, allocations: 423.2 kB / 1.512 GB, free: 3.34 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01591/1.632, allocations: 14.31 MB / 1.526 GB, free: 4.105 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002556/1.635, allocations: 287.5 kB / 1.526 GB, free: 3.824 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001495/1.635, allocations: 51.91 kB / 1.526 GB, free: 3.773 MB / 0.9323 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.0003035/1.635, allocations: 128.8 kB / 1.526 GB, free: 3.641 MB / 0.9323 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002308/1.635, allocations: 126.5 kB / 1.526 GB, free: 3.516 MB / 0.9323 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0053/1.641, allocations: 2.424 MB / 1.529 GB, free: 1.055 MB / 0.9323 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.02e-05/1.641, allocations: 11.95 kB / 1.529 GB, free: 1.043 MB / 0.9323 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.397e-05/1.641, allocations: 8 kB / 1.529 GB, free: 1.035 MB / 0.9323 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.042e-05/1.641, allocations: 7.922 kB / 1.529 GB, free: 1.027 MB / 0.9323 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007808/1.649, allocations: 4.019 MB / 1.533 GB, free: 12.9 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.203e-06/1.649, allocations: 4 kB / 1.533 GB, free: 12.9 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001698/1.65, allocations: 363.4 kB / 1.533 GB, free: 12.54 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002595/1.653, allocations: 0.7522 MB / 1.534 GB, free: 11.77 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.176e-05/1.653, allocations: 15.97 kB / 1.534 GB, free: 11.75 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01436/1.667, allocations: 13.93 MB / 1.547 GB, free: 12.89 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.504e-06/1.668, allocations: 12.23 kB / 1.547 GB, free: 12.88 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004689/1.672, allocations: 2.434 MB / 1.55 GB, free: 10.32 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008442/1.673, allocations: 375.4 kB / 1.55 GB, free: 9.934 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001983/1.673, allocations: 7.984 kB / 1.55 GB, free: 9.926 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001869/1.675, allocations: 291.5 kB / 1.55 GB, free: 9.641 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002853/1.676, allocations: 84.56 kB / 1.551 GB, free: 9.559 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.903e-05/1.676, allocations: 31.97 kB / 1.551 GB, free: 9.527 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 0.0009185/1.677, allocations: 0.568 MB / 1.551 GB, free: 8.953 MB / 0.9636 GB Notification: Performance of sort global known variables: time 2.01e-07/1.677, allocations: 0 / 1.551 GB, free: 8.953 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.001786/1.678, allocations: 419.9 kB / 1.552 GB, free: 8.543 MB / 0.9636 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.000358/1.679, allocations: 125.1 kB / 1.552 GB, free: 8.414 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.004509/1.683, allocations: 2.749 MB / 1.554 GB, free: 5.586 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 5.971e-06/1.683, allocations: 4 kB / 1.554 GB, free: 5.582 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 0.002834/1.686, allocations: 1.895 MB / 1.556 GB, free: 3.605 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002065/1.688, allocations: 407.4 kB / 1.557 GB, free: 3.211 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006212/1.694, allocations: 2.671 MB / 1.559 GB, free: 484 kB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001127/1.696, allocations: 1.419 MB / 1.561 GB, free: 15.02 MB / 0.9792 GB Notification: Performance of simCode: alias equations: time 0.001743/1.697, allocations: 362.5 kB / 1.561 GB, free: 14.66 MB / 0.9792 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003475/1.698, allocations: 95.38 kB / 1.561 GB, free: 14.57 MB / 0.9792 GB Notification: Performance of SimCode: time 5.11e-07/1.698, allocations: 0 / 1.561 GB, free: 14.57 MB / 0.9792 GB Notification: Performance of Templates: time 0.04659/1.744, allocations: 26.4 MB / 1.587 GB, free: 4.496 MB / 0.9948 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