Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.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_R,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.|sc_load.i.1.|sc_load.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R") translateModel(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R,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.|sc_load.i.1.|sc_load.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.326/2.326, 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.001661/0.001661, allocations: 173.1 kB / 498.1 MB, free: 5.762 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.574/1.574, 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.001054/0.001055, allocations: 106.5 kB / 0.9346 GB, free: 6.25 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004163/0.0004164, allocations: 8.688 kB / 1.084 GB, free: 221.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.327/0.3275, allocations: 142.3 MB / 1.223 GB, free: 114.3 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.212/0.5395, allocations: 171.7 MB / 1.391 GB, free: 6.375 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003015/0.5398, allocations: 99.94 kB / 1.391 GB, free: 6.277 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.7491/1.289, allocations: 40.17 MB / 1.43 GB, free: 180.9 MB / 0.9167 GB Notification: Performance of FrontEnd: time 3.116e-06/1.289, allocations: 4.328 kB / 1.43 GB, free: 180.9 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 8.798e-05/1.289, allocations: 18.48 kB / 1.43 GB, free: 180.9 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: 183 * Number of variables: 183 Notification: Performance of Generate backend data structure: time 0.002955/1.292, allocations: 1.037 MB / 1.431 GB, free: 180.3 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 5.465e-05/1.292, allocations: 10.22 kB / 1.431 GB, free: 180.3 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002461/1.295, allocations: 237.7 kB / 1.431 GB, free: 180.2 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00153/1.296, allocations: 0.5339 MB / 1.432 GB, free: 179.9 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.595e-05/1.296, allocations: 50.72 kB / 1.432 GB, free: 179.9 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001952/1.296, allocations: 69.86 kB / 1.432 GB, free: 179.9 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002677/1.299, allocations: 1.132 MB / 1.433 GB, free: 179.5 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.622e-05/1.299, allocations: 8.859 kB / 1.433 GB, free: 179.5 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001244/1.299, allocations: 37.45 kB / 1.433 GB, free: 179.5 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000128/1.299, allocations: 50.64 kB / 1.433 GB, free: 179.5 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002009/1.302, allocations: 0.7471 MB / 1.434 GB, free: 179.5 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007958/1.309, allocations: 5.909 MB / 1.439 GB, free: 175.2 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001506/1.311, allocations: 0.5533 MB / 1.44 GB, free: 175.2 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 4.724e-05/1.311, allocations: 9.703 kB / 1.44 GB, free: 175.2 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.034e-05/1.311, allocations: 40.94 kB / 1.44 GB, free: 175.1 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=47): time 4.629e-06/1.311, allocations: 0 / 1.44 GB, free: 175.1 MB / 0.9167 GB Notification: Performance of matching and sorting (n=48): time 0.006038/1.317, allocations: 1.979 MB / 1.442 GB, free: 174.5 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.755e-05/1.317, allocations: 57.45 kB / 1.442 GB, free: 174.4 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001202/1.319, allocations: 494.6 kB / 1.443 GB, free: 174.3 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 5.548e-05/1.319, allocations: 39.77 kB / 1.443 GB, free: 174.3 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003581/1.319, allocations: 398.8 kB / 1.443 GB, free: 174.1 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001905/1.319, allocations: 173.5 kB / 1.443 GB, free: 174 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.635e-05/1.319, allocations: 11 kB / 1.443 GB, free: 174 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 0.0001502/1.319, allocations: 375.4 kB / 1.443 GB, free: 173.7 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006374/1.32, allocations: 266.6 kB / 1.444 GB, free: 173.7 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008916/1.321, allocations: 463.7 kB / 1.444 GB, free: 173.4 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009334/1.322, allocations: 339.3 kB / 1.444 GB, free: 173.4 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.253e-06/1.322, allocations: 5.219 kB / 1.444 GB, free: 173.4 MB / 0.9167 GB Notification: Performance of matching and sorting (n=81) (initialization): time 0.002527/1.324, allocations: 1.049 MB / 1.446 GB, free: 173.3 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 2.719e-05/1.324, allocations: 10.14 kB / 1.446 GB, free: 173.3 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.467e-05/1.324, allocations: 6.875 kB / 1.446 GB, free: 173.3 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009933/1.325, allocations: 280.4 kB / 1.446 GB, free: 173.2 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005567/1.326, allocations: 118.3 kB / 1.446 GB, free: 173.2 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006033/1.332, allocations: 6.71 MB / 1.452 GB, free: 168.2 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007982/1.333, allocations: 41.58 kB / 1.453 GB, free: 168.2 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.659e-05/1.333, allocations: 30.67 kB / 1.453 GB, free: 168.2 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 (63): * Single equations (assignments): 59 * 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,(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004364/1.333, allocations: 249.2 kB / 1.453 GB, free: 168.1 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001106/1.334, allocations: 72.66 kB / 1.453 GB, free: 168 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001674/1.335, allocations: 0.8823 MB / 1.454 GB, free: 167.9 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.644e-06/1.335, allocations: 5.75 kB / 1.454 GB, free: 167.9 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.705e-06/1.335, allocations: 3.156 kB / 1.454 GB, free: 167.9 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.244e-06/1.335, allocations: 6.438 kB / 1.454 GB, free: 167.9 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003054/1.338, allocations: 1.706 MB / 1.455 GB, free: 167.5 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.771e-06/1.338, allocations: 2.031 kB / 1.455 GB, free: 167.5 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002975/1.339, allocations: 62.17 kB / 1.455 GB, free: 167.5 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008205/1.34, allocations: 267.2 kB / 1.456 GB, free: 167.5 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.202e-05/1.34, allocations: 14.83 kB / 1.456 GB, free: 167.5 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005704/1.345, allocations: 6.691 MB / 1.462 GB, free: 162.3 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.19e-06/1.345, allocations: 5.453 kB / 1.462 GB, free: 162.3 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001864/1.347, allocations: 1.05 MB / 1.463 GB, free: 161.7 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004331/1.348, allocations: 198.7 kB / 1.463 GB, free: 161.5 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.018e-05/1.348, allocations: 19.89 kB / 1.463 GB, free: 161.5 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003882/1.348, allocations: 27.25 kB / 1.464 GB, free: 161.5 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001525/1.348, allocations: 49.7 kB / 1.464 GB, free: 161.5 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.916e-05/1.348, allocations: 15.22 kB / 1.464 GB, free: 161.5 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.0005135/1.349, allocations: 379.1 kB / 1.464 GB, free: 161.3 MB / 0.9167 GB Notification: Performance of sort global known variables: time 1.1e-07/1.349, allocations: 0 / 1.464 GB, free: 161.3 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.001102/1.35, allocations: 236.5 kB / 1.464 GB, free: 161.3 MB / 0.9167 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 (31): * Single equations (assignments): 27 * 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,(2,100.0%) 4,(2,100.0%) 6,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001899/1.35, allocations: 124.6 kB / 1.464 GB, free: 161.2 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.001981/1.352, allocations: 1.256 MB / 1.466 GB, free: 160.5 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/1.352, allocations: 1.531 kB / 1.466 GB, free: 160.5 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.001186/1.353, allocations: 0.8829 MB / 1.466 GB, free: 159.9 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001065/1.354, allocations: 198 kB / 1.467 GB, free: 159.8 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002513/1.357, allocations: 1.572 MB / 1.468 GB, free: 158.9 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007569/1.358, allocations: 1.027 MB / 1.469 GB, free: 158.1 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.0005924/1.358, allocations: 128.6 kB / 1.469 GB, free: 158.1 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001417/1.359, allocations: 40.44 kB / 1.469 GB, free: 158.1 MB / 0.9167 GB Notification: Performance of SimCode: time 9.82e-07/1.359, allocations: 0 / 1.469 GB, free: 158.1 MB / 0.9167 GB Notification: Performance of Templates: time 0.01855/1.377, allocations: 10.3 MB / 1.479 GB, free: 157.6 MB / 0.9167 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.makefile (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.sim & ./Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_R.csv","../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches