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_L.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_L,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_L") translateModel(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L,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_L") 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: 249.5 MB / 257 MB, free: 6.852 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009848/0.0009848, allocations: 183.6 kB / 316.3 MB, free: 3.246 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.697/1.697, allocations: 205.3 MB / 0.5671 GB, free: 15.89 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.0008891/0.0008892, allocations: 90.52 kB / 0.6714 GB, free: 5.008 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.603e-05/1.605e-05, allocations: 4 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1945/0.1945, allocations: 106.3 MB / 0.8852 GB, free: 12.26 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6927/0.8873, allocations: 155.2 MB / 1.037 GB, free: 224 kB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002246/0.8875, allocations: 95.56 kB / 1.037 GB, free: 172 kB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 0.0832/0.9707, allocations: 36.63 MB / 1.073 GB, free: 1.574 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.082e-06/0.9708, allocations: 0 / 1.073 GB, free: 1.574 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 4.52e-05/0.9708, allocations: 27.92 kB / 1.073 GB, free: 1.547 MB / 0.6823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 177 * Number of variables: 177 Notification: Performance of Generate backend data structure: time 0.001271/0.9721, allocations: 0.8558 MB / 1.074 GB, free: 0.6914 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.092e-05/0.9722, allocations: 12.03 kB / 1.074 GB, free: 0.6797 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001398/0.9736, allocations: 218.1 kB / 1.074 GB, free: 480 kB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008889/0.9745, allocations: 0.5383 MB / 1.074 GB, free: 15.95 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.395e-05/0.9745, allocations: 20 kB / 1.074 GB, free: 15.93 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.378e-05/0.9746, allocations: 36 kB / 1.074 GB, free: 15.89 MB / 0.698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008278/0.9754, allocations: 0.5476 MB / 1.075 GB, free: 15.54 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001273/0.9767, allocations: 0.9873 MB / 1.076 GB, free: 14.62 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.558e-05/0.9768, allocations: 4 kB / 1.076 GB, free: 14.61 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.591e-05/0.9768, allocations: 4 kB / 1.076 GB, free: 14.61 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.158e-05/0.9769, allocations: 59.72 kB / 1.076 GB, free: 14.56 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004471/0.9814, allocations: 5.631 MB / 1.081 GB, free: 9.016 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007144/0.9821, allocations: 0.5855 MB / 1.082 GB, free: 8.543 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005606/0.9827, allocations: 384.7 kB / 1.082 GB, free: 8.277 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 3.539e-05/0.9827, allocations: 4 kB / 1.082 GB, free: 8.273 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.081e-05/0.9828, allocations: 34 kB / 1.082 GB, free: 8.234 MB / 0.698 GB Notification: Performance of pre-optimization done (n=41): time 1.743e-06/0.9828, allocations: 0 / 1.082 GB, free: 8.234 MB / 0.698 GB Notification: Performance of matching and sorting (n=42): time 0.001929/0.9847, allocations: 1.167 MB / 1.083 GB, free: 7.316 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.115e-05/0.9847, allocations: 55.41 kB / 1.084 GB, free: 7.25 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002928/0.985, allocations: 324 kB / 1.084 GB, free: 6.992 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 3.039e-05/0.9851, allocations: 29.7 kB / 1.084 GB, free: 6.957 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001882/0.9853, allocations: 380.7 kB / 1.084 GB, free: 6.656 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001026/0.9854, allocations: 142.3 kB / 1.084 GB, free: 6.531 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.225e-05/0.9854, allocations: 0 / 1.084 GB, free: 6.531 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001235/0.9855, allocations: 358.4 kB / 1.085 GB, free: 6.191 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002736/0.9858, allocations: 227.5 kB / 1.085 GB, free: 6.055 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003516/0.9862, allocations: 407 kB / 1.085 GB, free: 5.668 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003252/0.9865, allocations: 293.6 kB / 1.086 GB, free: 5.473 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.9865, allocations: 0 / 1.086 GB, free: 5.473 MB / 0.698 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001443/0.988, allocations: 0.9349 MB / 1.087 GB, free: 4.734 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.861e-05/0.988, allocations: 12.03 kB / 1.087 GB, free: 4.723 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.204e-05/0.988, allocations: 15.98 kB / 1.087 GB, free: 4.707 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000876/0.9889, allocations: 306.1 kB / 1.087 GB, free: 4.453 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002871/0.9892, allocations: 95.31 kB / 1.087 GB, free: 4.363 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005987/0.9952, allocations: 6.833 MB / 1.094 GB, free: 13.79 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003874/0.9956, allocations: 19.97 kB / 1.094 GB, free: 13.77 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.682e-05/0.9957, allocations: 19.31 kB / 1.094 GB, free: 13.75 MB / 0.7136 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 (49): * Single equations (assignments): 45 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 8,(1,100.0%) 5,(1,100.0%) 3,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001258/0.9958, allocations: 125 kB / 1.094 GB, free: 13.62 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.628e-05/0.9959, allocations: 55.3 kB / 1.094 GB, free: 13.57 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001448/0.9973, allocations: 0.8427 MB / 1.095 GB, free: 12.95 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.462e-06/0.9974, allocations: 12 kB / 1.095 GB, free: 12.93 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.9974, allocations: 0 / 1.095 GB, free: 12.93 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.458e-06/0.9974, allocations: 4 kB / 1.095 GB, free: 12.93 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002368/0.9998, allocations: 1.711 MB / 1.096 GB, free: 11.49 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.406e-06/0.9998, allocations: 192 / 1.096 GB, free: 11.49 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001682/0.9999, allocations: 47.09 kB / 1.096 GB, free: 11.45 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007466/1.001, allocations: 284.1 kB / 1.097 GB, free: 11.21 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.538e-05/1.001, allocations: 4 kB / 1.097 GB, free: 11.21 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005307/1.006, allocations: 6.554 MB / 1.103 GB, free: 4.809 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.488e-06/1.006, allocations: 7.922 kB / 1.103 GB, free: 4.801 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001379/1.007, allocations: 0.9706 MB / 1.104 GB, free: 3.902 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001995/1.008, allocations: 160.5 kB / 1.104 GB, free: 3.727 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.731e-05/1.008, allocations: 4 kB / 1.104 GB, free: 3.723 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002468/1.008, allocations: 15.97 kB / 1.104 GB, free: 3.707 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.261e-05/1.008, allocations: 39.89 kB / 1.104 GB, free: 3.668 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.459e-05/1.008, allocations: 12 kB / 1.104 GB, free: 3.656 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.0002372/1.008, allocations: 247 kB / 1.104 GB, free: 3.418 MB / 0.7136 GB Notification: Performance of sort global known variables: time 2.41e-07/1.008, allocations: 0 / 1.104 GB, free: 3.418 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0007636/1.009, allocations: 176 kB / 1.105 GB, free: 3.246 MB / 0.7136 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 21 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 7,(2,100.0%) 2,(1,100.0%) 3,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001511/1.009, allocations: 115.1 kB / 1.105 GB, free: 3.125 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.001526/1.011, allocations: 1.074 MB / 1.106 GB, free: 2.008 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/1.011, allocations: 0 / 1.106 GB, free: 2.008 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.001079/1.012, allocations: 0.7839 MB / 1.107 GB, free: 1.184 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008648/1.013, allocations: 165.2 kB / 1.107 GB, free: 1.02 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001542/1.014, allocations: 0.8594 MB / 1.108 GB, free: 120 kB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006458/1.015, allocations: 1 MB / 1.109 GB, free: 15.09 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.0002895/1.015, allocations: 96.84 kB / 1.109 GB, free: 15 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.1e-05/1.015, allocations: 35.44 kB / 1.109 GB, free: 14.96 MB / 0.7292 GB Notification: Performance of SimCode: time 4.11e-07/1.015, allocations: 4 kB / 1.109 GB, free: 14.96 MB / 0.7292 GB Notification: Performance of Templates: time 0.01335/1.029, allocations: 8.092 MB / 1.117 GB, free: 6.938 MB / 0.7292 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.makefile (rm -f Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.sim & ./Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_L.csv","../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches