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.519/1.519, allocations: 251.9 MB / 266.9 MB, free: 10.85 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.001326/0.001326, allocations: 179.6 kB / 326.5 MB, free: 2.215 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.978/1.978, allocations: 205.4 MB / 0.5775 GB, free: 20.18 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.0009159/0.0009161, allocations: 93.98 kB / 0.6821 GB, free: 12.88 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003968/0.0003967, allocations: 8.562 kB / 0.7963 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2742/0.2746, allocations: 106.3 MB / 0.9001 GB, free: 63.9 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2067/0.4813, allocations: 155 MB / 1.051 GB, free: 4.684 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003248/0.4817, allocations: 99.92 kB / 1.052 GB, free: 4.586 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 0.5883/1.07, allocations: 37 MB / 1.088 GB, free: 145 MB / 0.698 GB Notification: Performance of FrontEnd: time 3.577e-06/1.07, allocations: 0 / 1.088 GB, free: 145 MB / 0.698 GB Notification: Performance of Transformations before backend: time 6.39e-05/1.07, allocations: 23.5 kB / 1.088 GB, free: 145 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: 177 * Number of variables: 177 Notification: Performance of Generate backend data structure: time 0.00213/1.072, allocations: 0.9413 MB / 1.089 GB, free: 144.2 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.629e-05/1.072, allocations: 7.625 kB / 1.089 GB, free: 144.2 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001723/1.074, allocations: 216 kB / 1.089 GB, free: 144.1 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001152/1.075, allocations: 0.5322 MB / 1.089 GB, free: 143.7 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.504e-05/1.075, allocations: 48.55 kB / 1.089 GB, free: 143.7 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001526/1.075, allocations: 70.89 kB / 1.089 GB, free: 143.6 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001457/1.077, allocations: 1.086 MB / 1.091 GB, free: 142.7 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.439e-05/1.077, allocations: 7.938 kB / 1.091 GB, free: 142.7 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.913e-05/1.077, allocations: 35.98 kB / 1.091 GB, free: 142.6 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.403e-05/1.077, allocations: 57.28 kB / 1.091 GB, free: 142.6 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009608/1.078, allocations: 0.684 MB / 1.091 GB, free: 141.9 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004697/1.083, allocations: 5.78 MB / 1.097 GB, free: 135.7 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006773/1.084, allocations: 0.5865 MB / 1.098 GB, free: 135 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 3.246e-05/1.084, allocations: 8 kB / 1.098 GB, free: 135 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.915e-05/1.084, allocations: 42.5 kB / 1.098 GB, free: 135 MB / 0.698 GB Notification: Performance of pre-optimization done (n=41): time 2.685e-06/1.084, allocations: 3.984 kB / 1.098 GB, free: 135 MB / 0.698 GB Notification: Performance of matching and sorting (n=42): time 0.003759/1.087, allocations: 1.901 MB / 1.099 GB, free: 133 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.339e-05/1.087, allocations: 55.41 kB / 1.099 GB, free: 132.9 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004703/1.088, allocations: 397.9 kB / 1.1 GB, free: 132.5 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 3.313e-05/1.088, allocations: 33.7 kB / 1.1 GB, free: 132.5 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002182/1.088, allocations: 375.3 kB / 1.1 GB, free: 132.1 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001238/1.088, allocations: 149.8 kB / 1.1 GB, free: 132 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.38e-05/1.088, allocations: 8 kB / 1.1 GB, free: 132 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001119/1.088, allocations: 366.8 kB / 1.101 GB, free: 131.6 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002883/1.089, allocations: 229 kB / 1.101 GB, free: 131.4 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003591/1.089, allocations: 413.3 kB / 1.101 GB, free: 130.9 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00038/1.09, allocations: 296.6 kB / 1.102 GB, free: 130.6 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/1.09, allocations: 3.938 kB / 1.102 GB, free: 130.6 MB / 0.698 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0016/1.091, allocations: 0.9567 MB / 1.103 GB, free: 129.6 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 2.733e-05/1.091, allocations: 10.81 kB / 1.103 GB, free: 129.6 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.47e-05/1.091, allocations: 4 kB / 1.103 GB, free: 129.6 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008476/1.092, allocations: 271.4 kB / 1.103 GB, free: 129.3 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003215/1.092, allocations: 95.81 kB / 1.103 GB, free: 129.2 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005049/1.097, allocations: 6.743 MB / 1.11 GB, free: 121.9 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005292/1.098, allocations: 27.97 kB / 1.11 GB, free: 121.9 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.806e-05/1.098, allocations: 27.94 kB / 1.11 GB, free: 121.9 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 (51): * Single equations (assignments): 47 * 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%) 6,(1,100.0%) 5,(1,100.0%) 3,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004745/1.099, allocations: 252.3 kB / 1.11 GB, free: 121.6 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001305/1.099, allocations: 59.25 kB / 1.11 GB, free: 121.6 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001382/1.1, allocations: 0.8342 MB / 1.111 GB, free: 120.7 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.839e-06/1.1, allocations: 4 kB / 1.111 GB, free: 120.7 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.144e-05/1.1, allocations: 7.984 kB / 1.111 GB, free: 120.7 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.4e-06/1.1, allocations: 0 / 1.111 GB, free: 120.7 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002559/1.103, allocations: 1.738 MB / 1.112 GB, free: 118.9 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.849e-06/1.103, allocations: 0 / 1.112 GB, free: 118.9 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002199/1.103, allocations: 48.27 kB / 1.112 GB, free: 118.8 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006989/1.104, allocations: 247.3 kB / 1.113 GB, free: 118.6 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.272e-05/1.104, allocations: 12 kB / 1.113 GB, free: 118.6 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004198/1.108, allocations: 6.46 MB / 1.119 GB, free: 111.6 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.045e-06/1.108, allocations: 0 / 1.119 GB, free: 111.6 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001337/1.109, allocations: 0.9783 MB / 1.12 GB, free: 110.5 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003227/1.11, allocations: 168.4 kB / 1.12 GB, free: 110.3 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.974e-05/1.11, allocations: 12 kB / 1.12 GB, free: 110.3 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002799/1.11, allocations: 19.97 kB / 1.12 GB, free: 110.3 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001054/1.11, allocations: 43.89 kB / 1.12 GB, free: 110.2 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.156e-05/1.11, allocations: 8.25 kB / 1.12 GB, free: 110.2 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0003547/1.111, allocations: 314.8 kB / 1.121 GB, free: 109.9 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.6e-07/1.111, allocations: 0 / 1.121 GB, free: 109.9 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.000904/1.111, allocations: 192 kB / 1.121 GB, free: 109.7 MB / 0.698 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 23 * 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%) 2,(1,100.0%) 3,(1,100.0%) 5,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001671/1.112, allocations: 122.9 kB / 1.121 GB, free: 109.6 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.001467/1.113, allocations: 1.133 MB / 1.122 GB, free: 108.4 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/1.113, allocations: 0 / 1.122 GB, free: 108.4 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0008285/1.114, allocations: 0.7877 MB / 1.123 GB, free: 107.6 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008228/1.115, allocations: 182.1 kB / 1.123 GB, free: 107.4 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001842/1.117, allocations: 1.46 MB / 1.124 GB, free: 105.9 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004228/1.117, allocations: 0.9964 MB / 1.125 GB, free: 104.9 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0003378/1.117, allocations: 101.1 kB / 1.125 GB, free: 104.8 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.007e-05/1.118, allocations: 39.44 kB / 1.125 GB, free: 104.7 MB / 0.698 GB Notification: Performance of SimCode: time 7.52e-07/1.118, allocations: 0 / 1.125 GB, free: 104.7 MB / 0.698 GB Notification: Performance of Templates: time 0.0127/1.13, allocations: 8.649 MB / 1.134 GB, free: 96.17 MB / 0.698 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