Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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_9_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_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.509/2.509, allocations: 390.3 MB / 405.3 MB, free: 13.52 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.001329/0.001329, allocations: 169.1 kB / 498.1 MB, free: 5.766 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.821/1.821, allocations: 223.2 MB / 0.7948 GB, free: 17.94 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.0009781/0.000978, allocations: 108.1 kB / 0.9346 GB, free: 6.23 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003965/0.0003962, allocations: 10.34 kB / 1.084 GB, free: 221.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3215/0.3219, allocations: 142.3 MB / 1.223 GB, free: 114.3 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2363/0.5583, allocations: 191.5 MB / 1.41 GB, free: 2.531 MB / 0.9011 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002887/0.5586, allocations: 99.94 kB / 1.41 GB, free: 2.434 MB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 0.8418/1.4, allocations: 83.89 MB / 1.492 GB, free: 159.4 MB / 0.9167 GB Notification: Performance of FrontEnd: time 1.953e-06/1.401, allocations: 3.938 kB / 1.492 GB, free: 159.4 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 9.911e-05/1.401, allocations: 39.98 kB / 1.492 GB, free: 159.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.002993/1.404, allocations: 1.761 MB / 1.494 GB, free: 157.5 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 4.219e-05/1.404, allocations: 8.031 kB / 1.494 GB, free: 157.5 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009582/1.413, allocations: 1.819 MB / 1.495 GB, free: 155.7 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003136/1.416, allocations: 1.145 MB / 1.497 GB, free: 154.5 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.83e-05/1.417, allocations: 90.31 kB / 1.497 GB, free: 154.4 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002492/1.417, allocations: 116 kB / 1.497 GB, free: 154.3 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004931/1.422, allocations: 2.548 MB / 1.499 GB, free: 151.6 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.283e-05/1.422, allocations: 11.92 kB / 1.499 GB, free: 151.6 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001567/1.422, allocations: 55.98 kB / 1.499 GB, free: 151.5 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.721e-05/1.422, allocations: 74.2 kB / 1.499 GB, free: 151.4 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006311/1.428, allocations: 2.592 MB / 1.502 GB, free: 148.8 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01178/1.44, allocations: 10.2 MB / 1.512 GB, free: 138 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005332/1.446, allocations: 1.999 MB / 1.514 GB, free: 135.9 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 4.575e-05/1.446, allocations: 12.42 kB / 1.514 GB, free: 135.9 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.211e-05/1.446, allocations: 42.95 kB / 1.514 GB, free: 135.9 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=53): time 2.705e-06/1.446, allocations: 0 / 1.514 GB, free: 135.9 MB / 0.9167 GB Notification: Performance of matching and sorting (n=81): time 0.0284/1.474, allocations: 9.225 MB / 1.523 GB, free: 126.6 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.677e-05/1.474, allocations: 218.3 kB / 1.523 GB, free: 126.3 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001243/1.475, allocations: 0.9494 MB / 1.524 GB, free: 125.4 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 0.0001171/1.476, allocations: 41.7 kB / 1.524 GB, free: 125.3 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003759/1.476, allocations: 0.7304 MB / 1.525 GB, free: 124.6 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002346/1.476, allocations: 283.9 kB / 1.525 GB, free: 124.3 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.01e-05/1.476, allocations: 24 kB / 1.525 GB, free: 124.3 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 8.467e-05/1.476, allocations: 345.9 kB / 1.525 GB, free: 123.9 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002464/1.479, allocations: 1.091 MB / 1.526 GB, free: 122.8 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002507/1.481, allocations: 1.34 MB / 1.528 GB, free: 121.4 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002471/1.484, allocations: 1.154 MB / 1.529 GB, free: 120.3 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.419e-06/1.484, allocations: 0 / 1.529 GB, free: 120.3 MB / 0.9167 GB Notification: Performance of matching and sorting (n=114) (initialization): time 0.007972/1.492, allocations: 3.316 MB / 1.532 GB, free: 116.9 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 2.386e-05/1.492, allocations: 12.12 kB / 1.532 GB, free: 116.9 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.253e-05/1.492, allocations: 12.02 kB / 1.532 GB, free: 116.9 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003411/1.495, allocations: 0.8652 MB / 1.533 GB, free: 116 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002161/1.498, allocations: 423.2 kB / 1.533 GB, free: 115.6 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01214/1.51, allocations: 15.2 MB / 1.548 GB, free: 99.3 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002359/1.512, allocations: 311.5 kB / 1.549 GB, free: 98.99 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001256/1.512, allocations: 51.97 kB / 1.549 GB, free: 98.94 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.0008864/1.513, allocations: 399.1 kB / 1.549 GB, free: 98.54 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002236/1.513, allocations: 142.3 kB / 1.549 GB, free: 98.4 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00756/1.521, allocations: 3.277 MB / 1.552 GB, free: 95.08 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.686e-06/1.521, allocations: 8 kB / 1.552 GB, free: 95.07 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.083e-05/1.521, allocations: 15.94 kB / 1.552 GB, free: 95.06 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.584e-06/1.521, allocations: 3.984 kB / 1.552 GB, free: 95.05 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01015/1.531, allocations: 5.045 MB / 1.557 GB, free: 89.88 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.865e-06/1.531, allocations: 0 / 1.557 GB, free: 89.88 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001455/1.533, allocations: 367.4 kB / 1.558 GB, free: 89.52 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00251/1.535, allocations: 0.7836 MB / 1.558 GB, free: 88.71 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001015/1.535, allocations: 31.95 kB / 1.558 GB, free: 88.68 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01104/1.546, allocations: 14.82 MB / 1.573 GB, free: 72.8 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.169e-06/1.546, allocations: 7.938 kB / 1.573 GB, free: 72.79 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007133/1.554, allocations: 3.26 MB / 1.576 GB, free: 69.36 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001004/1.555, allocations: 399.2 kB / 1.576 GB, free: 68.95 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002055/1.555, allocations: 16.38 kB / 1.577 GB, free: 68.94 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001702/1.557, allocations: 303.5 kB / 1.577 GB, free: 68.64 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002563/1.557, allocations: 88.44 kB / 1.577 GB, free: 68.55 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.94e-05/1.557, allocations: 43.97 kB / 1.577 GB, free: 68.51 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.0009284/1.558, allocations: 0.7366 MB / 1.578 GB, free: 67.77 MB / 0.9167 GB Notification: Performance of sort global known variables: time 6.01e-07/1.558, allocations: 0 / 1.578 GB, free: 67.77 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.001591/1.559, allocations: 456 kB / 1.578 GB, free: 67.33 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.0003025/1.56, allocations: 162.1 kB / 1.578 GB, free: 67.16 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.00709/1.567, allocations: 3.683 MB / 1.582 GB, free: 63.38 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 6.542e-06/1.567, allocations: 0 / 1.582 GB, free: 63.38 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.004176/1.571, allocations: 2.407 MB / 1.584 GB, free: 60.86 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002099/1.573, allocations: 473.1 kB / 1.585 GB, free: 60.41 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00785/1.581, allocations: 4.259 MB / 1.589 GB, free: 56.09 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007855/1.582, allocations: 1.419 MB / 1.59 GB, free: 54.64 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.001647/1.584, allocations: 375.9 kB / 1.591 GB, free: 54.27 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003301/1.584, allocations: 115.4 kB / 1.591 GB, free: 54.15 MB / 0.9167 GB Notification: Performance of SimCode: time 1.403e-06/1.584, allocations: 0 / 1.591 GB, free: 54.15 MB / 0.9167 GB Notification: Performance of Templates: time 0.04111/1.625, allocations: 29.17 MB / 1.619 GB, free: 25.37 MB / 0.9167 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.makefile (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.sim & ./Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine.csv","../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches