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.244/2.244, allocations: 387.1 MB / 399.7 MB, free: 9.465 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.001846/0.001846, allocations: 180.9 kB / 492.3 MB, free: 0.625 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.47/1.47, allocations: 221.3 MB / 0.7871 GB, free: 12.89 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.0009605/0.0009606, allocations: 91.94 kB / 0.9267 GB, free: 13.96 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.731e-05/2.731e-05, allocations: 4 kB / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.259/0.2591, allocations: 142.4 MB / 1.212 GB, free: 38.53 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8517/1.111, allocations: 171.6 MB / 1.38 GB, free: 18.89 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002743/1.111, allocations: 95.53 kB / 1.38 GB, free: 18.89 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.08303/1.194, allocations: 39.97 MB / 1.419 GB, free: 9.289 MB / 0.8386 GB Notification: Performance of FrontEnd: time 2.534e-06/1.194, allocations: 8 kB / 1.419 GB, free: 9.281 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.723e-05/1.194, allocations: 20 kB / 1.419 GB, free: 9.262 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.001595/1.196, allocations: 0.9479 MB / 1.42 GB, free: 8.32 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.393e-05/1.196, allocations: 12.03 kB / 1.42 GB, free: 8.309 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001483/1.197, allocations: 237.8 kB / 1.42 GB, free: 8.078 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009032/1.198, allocations: 0.5347 MB / 1.421 GB, free: 7.574 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.564e-05/1.198, allocations: 57.84 kB / 1.421 GB, free: 7.543 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001027/1.199, allocations: 60.25 kB / 1.421 GB, free: 7.504 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001451/1.2, allocations: 1.116 MB / 1.422 GB, free: 6.516 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.652e-05/1.2, allocations: 11.25 kB / 1.422 GB, free: 6.508 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.56e-05/1.2, allocations: 35.81 kB / 1.422 GB, free: 6.496 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.939e-05/1.2, allocations: 53.03 kB / 1.422 GB, free: 6.449 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001025/1.201, allocations: 0.7317 MB / 1.423 GB, free: 5.945 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004905/1.206, allocations: 5.906 MB / 1.429 GB, free: 244 kB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008712/1.207, allocations: 0.5508 MB / 1.429 GB, free: 15.85 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000404/1.207, allocations: 322.1 kB / 1.429 GB, free: 15.65 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 4.256e-05/1.207, allocations: 11.36 kB / 1.429 GB, free: 15.64 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.516e-05/1.208, allocations: 38.12 kB / 1.429 GB, free: 15.6 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=47): time 2.474e-06/1.208, allocations: 0 / 1.429 GB, free: 15.6 MB / 0.8542 GB Notification: Performance of matching and sorting (n=48): time 0.002058/1.21, allocations: 1.233 MB / 1.431 GB, free: 14.65 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.393e-05/1.21, allocations: 55.84 kB / 1.431 GB, free: 14.58 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005407/1.21, allocations: 491 kB / 1.431 GB, free: 14.2 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 3.648e-05/1.21, allocations: 31.83 kB / 1.431 GB, free: 14.17 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002137/1.21, allocations: 398.4 kB / 1.432 GB, free: 13.88 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001243/1.211, allocations: 175.4 kB / 1.432 GB, free: 13.73 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3e-05/1.211, allocations: 17.94 kB / 1.432 GB, free: 13.72 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001376/1.211, allocations: 372.8 kB / 1.432 GB, free: 13.38 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003421/1.211, allocations: 262.2 kB / 1.432 GB, free: 13.21 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004583/1.212, allocations: 457.6 kB / 1.433 GB, free: 12.8 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004269/1.212, allocations: 340.1 kB / 1.433 GB, free: 12.57 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/1.212, allocations: 0 / 1.433 GB, free: 12.57 MB / 0.8542 GB Notification: Performance of matching and sorting (n=81) (initialization): time 0.001579/1.214, allocations: 1.036 MB / 1.434 GB, free: 11.77 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.908e-05/1.214, allocations: 8.75 kB / 1.434 GB, free: 11.76 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.201e-05/1.214, allocations: 11.98 kB / 1.434 GB, free: 11.75 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007675/1.214, allocations: 277.5 kB / 1.434 GB, free: 11.52 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004362/1.215, allocations: 119.4 kB / 1.435 GB, free: 11.4 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005522/1.22, allocations: 6.583 MB / 1.441 GB, free: 4.945 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005499/1.221, allocations: 42.36 kB / 1.441 GB, free: 4.914 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.57e-05/1.221, allocations: 27.62 kB / 1.441 GB, free: 4.891 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.000139/1.221, allocations: 145.7 kB / 1.441 GB, free: 4.762 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001019/1.221, allocations: 67.25 kB / 1.441 GB, free: 4.695 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001505/1.223, allocations: 0.8776 MB / 1.442 GB, free: 4.051 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.139e-06/1.223, allocations: 4 kB / 1.442 GB, free: 4.047 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/1.223, allocations: 4 kB / 1.442 GB, free: 4.043 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.154e-06/1.223, allocations: 7.984 kB / 1.442 GB, free: 4.035 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002397/1.225, allocations: 1.71 MB / 1.444 GB, free: 2.676 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.008e-06/1.225, allocations: 0 / 1.444 GB, free: 2.676 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000253/1.226, allocations: 59.89 kB / 1.444 GB, free: 2.617 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006722/1.226, allocations: 266 kB / 1.444 GB, free: 2.395 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.846e-05/1.226, allocations: 6.562 kB / 1.444 GB, free: 2.395 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005263/1.232, allocations: 6.569 MB / 1.451 GB, free: 11.95 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/1.232, allocations: 3.938 kB / 1.451 GB, free: 11.94 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001421/1.233, allocations: 1.047 MB / 1.452 GB, free: 11.04 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003056/1.233, allocations: 203.4 kB / 1.452 GB, free: 10.85 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.905e-05/1.233, allocations: 11.94 kB / 1.452 GB, free: 10.84 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003578/1.234, allocations: 30.95 kB / 1.452 GB, free: 10.82 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.332e-05/1.234, allocations: 46.22 kB / 1.452 GB, free: 10.78 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.05e-05/1.234, allocations: 16.06 kB / 1.452 GB, free: 10.77 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.0003783/1.234, allocations: 379.2 kB / 1.452 GB, free: 10.48 MB / 0.8698 GB Notification: Performance of sort global known variables: time 2.6e-07/1.234, allocations: 3.938 kB / 1.452 GB, free: 10.48 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0007702/1.235, allocations: 228.9 kB / 1.452 GB, free: 10.28 MB / 0.8698 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.0001693/1.235, allocations: 119.4 kB / 1.453 GB, free: 10.16 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.001737/1.237, allocations: 1.243 MB / 1.454 GB, free: 9.102 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 3.878e-06/1.237, allocations: 0 / 1.454 GB, free: 9.102 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.001116/1.238, allocations: 0.8694 MB / 1.455 GB, free: 8.309 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008386/1.239, allocations: 194.5 kB / 1.455 GB, free: 8.164 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001668/1.241, allocations: 0.9721 MB / 1.456 GB, free: 7.262 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006127/1.241, allocations: 1.026 MB / 1.457 GB, free: 6.227 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.000406/1.242, allocations: 126 kB / 1.457 GB, free: 6.102 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001105/1.242, allocations: 43.44 kB / 1.457 GB, free: 6.059 MB / 0.8698 GB Notification: Performance of SimCode: time 2.6e-07/1.242, allocations: 0 / 1.457 GB, free: 6.059 MB / 0.8698 GB Notification: Performance of Templates: time 0.01785/1.26, allocations: 10.3 MB / 1.467 GB, free: 11.9 MB / 0.8855 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