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.445/2.445, allocations: 387.4 MB / 394.9 MB, free: 13.41 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.001061/0.001061, allocations: 168.8 kB / 487.4 MB, free: 5.039 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.623/1.623, allocations: 221.5 MB / 0.7824 GB, free: 0.9258 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008831/0.0008832, allocations: 98.94 kB / 0.9219 GB, free: 2.176 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.082e-05/2.085e-05, allocations: 4 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2603/0.2603, allocations: 142.4 MB / 1.206 GB, free: 43.94 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8605/1.121, allocations: 170.9 MB / 1.373 GB, free: 18.29 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002699/1.121, allocations: 93.94 kB / 1.373 GB, free: 18.29 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.08248/1.204, allocations: 39.82 MB / 1.412 GB, free: 16.36 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.683e-06/1.204, allocations: 0 / 1.412 GB, free: 16.36 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.444e-05/1.204, allocations: 27.83 kB / 1.412 GB, free: 16.33 MB / 0.8386 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.00144/1.205, allocations: 0.9549 MB / 1.413 GB, free: 15.39 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.916e-05/1.205, allocations: 8.031 kB / 1.413 GB, free: 15.38 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001454/1.207, allocations: 242.5 kB / 1.413 GB, free: 15.14 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008131/1.208, allocations: 0.5329 MB / 1.414 GB, free: 14.64 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.099e-05/1.208, allocations: 24 kB / 1.414 GB, free: 14.62 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001111/1.208, allocations: 43.98 kB / 1.414 GB, free: 14.58 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009068/1.209, allocations: 0.5939 MB / 1.414 GB, free: 14.2 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001324/1.21, allocations: 1.019 MB / 1.415 GB, free: 13.24 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.724e-05/1.21, allocations: 11.92 kB / 1.415 GB, free: 13.23 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.156e-05/1.21, allocations: 4 kB / 1.415 GB, free: 13.23 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.051e-05/1.21, allocations: 52.8 kB / 1.415 GB, free: 13.18 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005317/1.215, allocations: 5.76 MB / 1.421 GB, free: 7.586 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008903/1.216, allocations: 0.531 MB / 1.421 GB, free: 7.219 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003653/1.217, allocations: 308 kB / 1.422 GB, free: 7.031 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 3.662e-05/1.217, allocations: 8.438 kB / 1.422 GB, free: 7.023 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.178e-05/1.217, allocations: 42.67 kB / 1.422 GB, free: 6.977 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=47): time 1.984e-06/1.217, allocations: 0 / 1.422 GB, free: 6.977 MB / 0.8386 GB Notification: Performance of matching and sorting (n=48): time 0.002006/1.219, allocations: 1.154 MB / 1.423 GB, free: 6.074 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.557e-05/1.219, allocations: 63.84 kB / 1.423 GB, free: 6 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004318/1.219, allocations: 398.8 kB / 1.423 GB, free: 5.688 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 3.744e-05/1.219, allocations: 25.7 kB / 1.423 GB, free: 5.656 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.000241/1.22, allocations: 410.4 kB / 1.424 GB, free: 5.344 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001607/1.22, allocations: 169.9 kB / 1.424 GB, free: 5.195 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.917e-05/1.22, allocations: 0 / 1.424 GB, free: 5.195 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001641/1.22, allocations: 360.6 kB / 1.424 GB, free: 4.855 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003332/1.22, allocations: 258.2 kB / 1.425 GB, free: 4.699 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004619/1.221, allocations: 435.5 kB / 1.425 GB, free: 4.297 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004662/1.221, allocations: 321.1 kB / 1.425 GB, free: 4.086 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.218e-06/1.221, allocations: 0 / 1.425 GB, free: 4.086 MB / 0.8386 GB Notification: Performance of matching and sorting (n=81) (initialization): time 0.001667/1.223, allocations: 0.9618 MB / 1.426 GB, free: 3.336 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 3.043e-05/1.223, allocations: 12.12 kB / 1.426 GB, free: 3.324 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.41e-05/1.223, allocations: 4 kB / 1.426 GB, free: 3.32 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008645/1.224, allocations: 265.5 kB / 1.426 GB, free: 3.098 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004635/1.224, allocations: 119 kB / 1.427 GB, free: 2.984 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006016/1.23, allocations: 6.326 MB / 1.433 GB, free: 12.81 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006183/1.231, allocations: 23.97 kB / 1.433 GB, free: 12.79 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.486e-05/1.231, allocations: 23.88 kB / 1.433 GB, free: 12.77 MB / 0.8542 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 (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.000168/1.231, allocations: 128.3 kB / 1.433 GB, free: 12.64 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001314/1.231, allocations: 71.19 kB / 1.433 GB, free: 12.57 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001472/1.233, allocations: 0.8128 MB / 1.434 GB, free: 11.98 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.27e-06/1.233, allocations: 8 kB / 1.434 GB, free: 11.97 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.975e-06/1.233, allocations: 4 kB / 1.434 GB, free: 11.96 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.313e-06/1.233, allocations: 3.984 kB / 1.434 GB, free: 11.96 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002548/1.236, allocations: 1.581 MB / 1.435 GB, free: 10.69 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.165e-06/1.236, allocations: 4.188 kB / 1.435 GB, free: 10.69 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003065/1.236, allocations: 67.08 kB / 1.435 GB, free: 10.62 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007658/1.237, allocations: 259.9 kB / 1.436 GB, free: 10.41 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.162e-05/1.237, allocations: 0 / 1.436 GB, free: 10.41 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005902/1.243, allocations: 6.308 MB / 1.442 GB, free: 4.254 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.127e-06/1.243, allocations: 4.125 kB / 1.442 GB, free: 4.25 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001617/1.244, allocations: 0.9924 MB / 1.443 GB, free: 3.379 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004013/1.245, allocations: 187.5 kB / 1.443 GB, free: 3.199 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001239/1.245, allocations: 7.938 kB / 1.443 GB, free: 3.191 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004115/1.245, allocations: 23.95 kB / 1.443 GB, free: 3.168 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001038/1.245, allocations: 35.59 kB / 1.443 GB, free: 3.137 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.714e-05/1.245, allocations: 15.81 kB / 1.443 GB, free: 3.125 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.0003748/1.246, allocations: 299.4 kB / 1.443 GB, free: 2.902 MB / 0.8542 GB Notification: Performance of sort global known variables: time 4.11e-07/1.246, allocations: 4 kB / 1.443 GB, free: 2.898 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0009333/1.247, allocations: 203.9 kB / 1.444 GB, free: 2.699 MB / 0.8542 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 (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.0002026/1.247, allocations: 106.9 kB / 1.444 GB, free: 2.59 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.001908/1.249, allocations: 1.18 MB / 1.445 GB, free: 1.598 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 3.477e-06/1.249, allocations: 0 / 1.445 GB, free: 1.598 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.001138/1.25, allocations: 0.8327 MB / 1.446 GB, free: 0.8477 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009224/1.251, allocations: 169.3 kB / 1.446 GB, free: 0.7148 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001906/1.253, allocations: 0.9421 MB / 1.447 GB, free: 15.83 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007219/1.254, allocations: 1.033 MB / 1.448 GB, free: 14.8 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.0004849/1.254, allocations: 109.3 kB / 1.448 GB, free: 14.69 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001235/1.254, allocations: 39.44 kB / 1.448 GB, free: 14.65 MB / 0.8698 GB Notification: Performance of SimCode: time 6.81e-07/1.254, allocations: 0 / 1.448 GB, free: 14.65 MB / 0.8698 GB Notification: Performance of Templates: time 0.01816/1.272, allocations: 9.289 MB / 1.457 GB, free: 5.484 MB / 0.8698 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