Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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_maint.7.0.x_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_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.486/1.486, allocations: 251.9 MB / 266.9 MB, free: 10.97 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001173/0.001173, allocations: 182.8 kB / 326.5 MB, free: 2.23 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.946/1.946, allocations: 205.4 MB / 0.5775 GB, free: 20.27 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008071/0.000807, allocations: 93.47 kB / 0.6821 GB, free: 12.88 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003557/0.0003558, allocations: 9.5 kB / 0.7963 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2516/0.252, allocations: 106.3 MB / 0.9001 GB, free: 63.91 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7416/0.9937, allocations: 173.6 MB / 1.07 GB, free: 154.1 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003683/0.9941, allocations: 99.77 kB / 1.07 GB, free: 154.1 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 0.1774/1.172, allocations: 78 MB / 1.146 GB, free: 85.7 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.054e-06/1.172, allocations: 0 / 1.146 GB, free: 85.7 MB / 0.698 GB Notification: Performance of Transformations before backend: time 0.0001873/1.172, allocations: 47.92 kB / 1.146 GB, free: 85.65 MB / 0.698 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.004678/1.177, allocations: 1.755 MB / 1.148 GB, free: 83.84 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 3.903e-05/1.177, allocations: 8.031 kB / 1.148 GB, free: 83.83 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009882/1.186, allocations: 1.811 MB / 1.149 GB, free: 82.02 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004209/1.191, allocations: 1.157 MB / 1.151 GB, free: 80.8 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001135/1.191, allocations: 82.31 kB / 1.151 GB, free: 80.72 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006921/1.192, allocations: 116 kB / 1.151 GB, free: 80.61 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007136/1.199, allocations: 2.548 MB / 1.153 GB, free: 77.87 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.567e-05/1.199, allocations: 7.906 kB / 1.153 GB, free: 77.86 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002348/1.199, allocations: 55.98 kB / 1.153 GB, free: 77.8 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001002/1.199, allocations: 82.14 kB / 1.153 GB, free: 77.72 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006813/1.206, allocations: 2.588 MB / 1.156 GB, free: 75.12 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01418/1.22, allocations: 10.19 MB / 1.166 GB, free: 64.28 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005471/1.226, allocations: 2.011 MB / 1.168 GB, free: 62.24 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 5.67e-05/1.226, allocations: 12.42 kB / 1.168 GB, free: 62.23 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.957e-05/1.226, allocations: 54.88 kB / 1.168 GB, free: 62.17 MB / 0.698 GB Notification: Performance of pre-optimization done (n=53): time 4.308e-06/1.226, allocations: 0 / 1.168 GB, free: 62.17 MB / 0.698 GB Notification: Performance of matching and sorting (n=81): time 0.02943/1.255, allocations: 9.229 MB / 1.177 GB, free: 52.88 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.378e-05/1.256, allocations: 218.2 kB / 1.177 GB, free: 52.62 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001708/1.257, allocations: 0.9572 MB / 1.178 GB, free: 51.65 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 0.0001888/1.257, allocations: 41.7 kB / 1.178 GB, free: 51.6 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004758/1.258, allocations: 0.7303 MB / 1.179 GB, free: 50.86 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.000286/1.258, allocations: 276 kB / 1.179 GB, free: 50.59 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001066/1.258, allocations: 20 kB / 1.179 GB, free: 50.57 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 7.84e-05/1.258, allocations: 334 kB / 1.179 GB, free: 50.24 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002579/1.261, allocations: 1.102 MB / 1.181 GB, free: 49.13 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002695/1.264, allocations: 1.34 MB / 1.182 GB, free: 47.69 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002658/1.266, allocations: 1.15 MB / 1.183 GB, free: 46.54 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.731e-06/1.266, allocations: 4 kB / 1.183 GB, free: 46.54 MB / 0.698 GB Notification: Performance of matching and sorting (n=114) (initialization): time 0.007746/1.274, allocations: 3.319 MB / 1.186 GB, free: 43.18 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 2.776e-05/1.274, allocations: 8 kB / 1.186 GB, free: 43.18 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.572e-05/1.274, allocations: 8.703 kB / 1.186 GB, free: 43.17 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002917/1.277, allocations: 0.8652 MB / 1.187 GB, free: 42.28 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001745/1.279, allocations: 419.3 kB / 1.187 GB, free: 41.87 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01196/1.291, allocations: 15.19 MB / 1.202 GB, free: 25.61 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00234/1.293, allocations: 311.9 kB / 1.203 GB, free: 25.3 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002355/1.294, allocations: 51.91 kB / 1.203 GB, free: 25.25 MB / 0.698 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.001053/1.295, allocations: 405.9 kB / 1.203 GB, free: 24.84 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004159/1.295, allocations: 142.3 kB / 1.203 GB, free: 24.7 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007863/1.303, allocations: 3.265 MB / 1.206 GB, free: 21.39 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.223e-05/1.303, allocations: 11.98 kB / 1.206 GB, free: 21.38 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.461e-05/1.303, allocations: 8 kB / 1.206 GB, free: 21.38 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.544e-06/1.303, allocations: 3.984 kB / 1.206 GB, free: 21.37 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01076/1.314, allocations: 5.045 MB / 1.211 GB, free: 16.2 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.989e-06/1.314, allocations: 4.344 kB / 1.211 GB, free: 16.2 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001481/1.315, allocations: 363.4 kB / 1.212 GB, free: 15.84 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002707/1.318, allocations: 0.7842 MB / 1.212 GB, free: 15.03 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000132/1.318, allocations: 31.97 kB / 1.212 GB, free: 15 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01238/1.331, allocations: 14.82 MB / 1.227 GB, free: 15.11 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.99e-06/1.331, allocations: 8.047 kB / 1.227 GB, free: 15.11 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009581/1.34, allocations: 3.272 MB / 1.23 GB, free: 11.67 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001317/1.342, allocations: 399.1 kB / 1.23 GB, free: 11.26 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000521/1.342, allocations: 20 kB / 1.231 GB, free: 11.24 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002167/1.344, allocations: 307.5 kB / 1.231 GB, free: 10.94 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003332/1.345, allocations: 84.44 kB / 1.231 GB, free: 10.86 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001215/1.345, allocations: 35.97 kB / 1.231 GB, free: 10.82 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.001543/1.346, allocations: 0.7405 MB / 1.232 GB, free: 10.08 MB / 0.7136 GB Notification: Performance of sort global known variables: time 5.21e-07/1.346, allocations: 0 / 1.232 GB, free: 10.08 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.002343/1.349, allocations: 456 kB / 1.232 GB, free: 9.633 MB / 0.7136 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.0003715/1.349, allocations: 156.9 kB / 1.232 GB, free: 9.473 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.008448/1.358, allocations: 3.683 MB / 1.236 GB, free: 5.684 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 9.638e-06/1.358, allocations: 0 / 1.236 GB, free: 5.684 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.005099/1.363, allocations: 2.403 MB / 1.238 GB, free: 3.172 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002672/1.366, allocations: 474.1 kB / 1.239 GB, free: 2.715 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00958/1.375, allocations: 4.271 MB / 1.243 GB, free: 14.39 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001525/1.377, allocations: 1.415 MB / 1.244 GB, free: 12.93 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.002075/1.379, allocations: 379.8 kB / 1.245 GB, free: 12.56 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003694/1.379, allocations: 111.4 kB / 1.245 GB, free: 12.45 MB / 0.7292 GB Notification: Performance of SimCode: time 1.583e-06/1.379, allocations: 0 / 1.245 GB, free: 12.45 MB / 0.7292 GB Notification: Performance of Templates: time 0.05073/1.43, allocations: 29.18 MB / 1.273 GB, free: 15.61 MB / 0.7605 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.makefile (rm -f Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.sim & ./Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine.csv","../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches