Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.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.ACSimpleGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.v.1.|load.v.2.|E.terminal.v.1.|E.terminal.v.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid") translateModel(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.v.1.|load.v.2.|E.terminal.v.1.|E.terminal.v.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.407/2.407, allocations: 390.3 MB / 405.3 MB, free: 13.48 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.001131/0.001131, allocations: 189.1 kB / 498.1 MB, free: 5.727 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.734/1.734, allocations: 223.2 MB / 0.7948 GB, free: 17.83 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.0008982/0.0008982, allocations: 98.56 kB / 0.9346 GB, free: 6.098 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003453/0.0003454, allocations: 12.81 kB / 1.084 GB, free: 221.5 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2653/0.2657, allocations: 142.3 MB / 1.223 GB, free: 114.1 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2255/0.4913, allocations: 193.5 MB / 1.412 GB, free: 380 kB / 0.9011 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004369/0.4918, allocations: 103.9 kB / 1.412 GB, free: 276 kB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 0.669/1.161, allocations: 30.92 MB / 1.442 GB, free: 192 MB / 0.9167 GB Notification: Performance of FrontEnd: time 1.603e-06/1.161, allocations: 4 kB / 1.442 GB, free: 192 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 3.901e-05/1.161, allocations: 7.406 kB / 1.442 GB, free: 192 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: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.00135/1.162, allocations: 0.7436 MB / 1.443 GB, free: 191.5 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 4.576e-05/1.162, allocations: 9.562 kB / 1.443 GB, free: 191.5 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002423/1.165, allocations: 0.5802 MB / 1.443 GB, free: 191.4 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008542/1.166, allocations: 473.4 kB / 1.444 GB, free: 191.2 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.992e-05/1.166, allocations: 27.61 kB / 1.444 GB, free: 191.2 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.065e-05/1.166, allocations: 29.34 kB / 1.444 GB, free: 191.2 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00155/1.167, allocations: 0.7599 MB / 1.445 GB, free: 191.1 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.023e-05/1.167, allocations: 0 / 1.445 GB, free: 191.1 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.298e-05/1.167, allocations: 14.16 kB / 1.445 GB, free: 191.1 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.857e-05/1.167, allocations: 21.78 kB / 1.445 GB, free: 191.1 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002072/1.17, allocations: 0.852 MB / 1.446 GB, free: 191.1 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003926/1.173, allocations: 2.87 MB / 1.448 GB, free: 189.4 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001613/1.175, allocations: 0.5186 MB / 1.449 GB, free: 189.4 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001027/1.175, allocations: 91 kB / 1.449 GB, free: 189.3 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.714e-05/1.175, allocations: 39.27 kB / 1.449 GB, free: 189.3 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=16): time 2.645e-06/1.175, allocations: 0 / 1.449 GB, free: 189.3 MB / 0.9167 GB Notification: Performance of matching and sorting (n=24): time 0.01039/1.186, allocations: 2.942 MB / 1.452 GB, free: 188.8 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.579e-05/1.186, allocations: 83.88 kB / 1.452 GB, free: 188.7 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005641/1.186, allocations: 383.1 kB / 1.452 GB, free: 188.5 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 5.097e-05/1.186, allocations: 35.02 kB / 1.452 GB, free: 188.5 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001461/1.187, allocations: 232.8 kB / 1.453 GB, free: 188.3 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 7.956e-05/1.187, allocations: 86.12 kB / 1.453 GB, free: 188.2 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.84e-05/1.187, allocations: 7.938 kB / 1.453 GB, free: 188.2 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 0.0001038/1.187, allocations: 348.2 kB / 1.453 GB, free: 187.9 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008875/1.188, allocations: 360.6 kB / 1.453 GB, free: 187.8 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008947/1.189, allocations: 446.8 kB / 1.454 GB, free: 187.6 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009351/1.19, allocations: 395.7 kB / 1.454 GB, free: 187.5 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.025e-06/1.19, allocations: 0 / 1.454 GB, free: 187.5 MB / 0.9167 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.004653/1.194, allocations: 1.405 MB / 1.456 GB, free: 187.1 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002041/1.194, allocations: 0.7877 MB / 1.456 GB, free: 186.3 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.183e-05/1.194, allocations: 2.188 kB / 1.456 GB, free: 186.3 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00332/1.198, allocations: 0.7024 MB / 1.457 GB, free: 186.2 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000655/1.198, allocations: 130.8 kB / 1.457 GB, free: 186.2 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003768/1.202, allocations: 3.263 MB / 1.46 GB, free: 183.9 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007542/1.203, allocations: 114.5 kB / 1.46 GB, free: 183.9 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.923e-05/1.203, allocations: 11.53 kB / 1.46 GB, free: 183.9 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 9.558e-06/1.203, allocations: 3.906 kB / 1.46 GB, free: 183.9 MB / 0.9167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003102/1.206, allocations: 1.154 MB / 1.462 GB, free: 183.7 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/1.206, allocations: 2.266 kB / 1.462 GB, free: 183.7 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001883/1.208, allocations: 462.6 kB / 1.462 GB, free: 183.6 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005794/1.209, allocations: 149.2 kB / 1.462 GB, free: 183.6 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002992/1.212, allocations: 2.53 MB / 1.465 GB, free: 181.8 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007496/1.212, allocations: 106.6 kB / 1.465 GB, free: 181.7 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.667e-05/1.212, allocations: 11.88 kB / 1.465 GB, free: 181.7 MB / 0.9167 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (29): * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 2} * Non-linear torn systems: 1 {2 2} Notification: Performance of prepare postOptimizeDAE: time 0.0004384/1.213, allocations: 316 kB / 1.465 GB, free: 181.5 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.943e-05/1.213, allocations: 43.11 kB / 1.465 GB, free: 181.4 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003566/1.217, allocations: 1.308 MB / 1.466 GB, free: 180.7 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.673e-06/1.217, allocations: 4.219 kB / 1.466 GB, free: 180.7 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/1.217, allocations: 3.938 kB / 1.466 GB, free: 180.7 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/1.217, allocations: 0 / 1.466 GB, free: 180.7 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00438/1.221, allocations: 2.006 MB / 1.468 GB, free: 179.5 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.008e-06/1.221, allocations: 0 / 1.468 GB, free: 179.5 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003555/1.221, allocations: 83.03 kB / 1.468 GB, free: 179.4 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002682/1.224, allocations: 0.6918 MB / 1.469 GB, free: 179.1 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.551e-05/1.224, allocations: 7.938 kB / 1.469 GB, free: 179.1 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004616/1.229, allocations: 4.565 MB / 1.474 GB, free: 175.3 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/1.229, allocations: 4.016 kB / 1.474 GB, free: 175.3 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003635/1.232, allocations: 1.369 MB / 1.475 GB, free: 174.5 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003654/1.233, allocations: 174.8 kB / 1.475 GB, free: 174.3 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001006/1.233, allocations: 4 kB / 1.475 GB, free: 174.3 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005521/1.233, allocations: 89.52 kB / 1.475 GB, free: 174.3 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001388/1.234, allocations: 24.09 kB / 1.475 GB, free: 174.3 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.077e-05/1.234, allocations: 11.44 kB / 1.475 GB, free: 174.3 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.0003858/1.234, allocations: 306.9 kB / 1.475 GB, free: 174.1 MB / 0.9167 GB Notification: Performance of sort global known variables: time 1.6e-07/1.234, allocations: 0 / 1.475 GB, free: 174.1 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.001004/1.235, allocations: 220.5 kB / 1.476 GB, free: 174.1 MB / 0.9167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (19): * Single equations (assignments): 17 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 2} * Non-linear torn systems: 1 {2 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.000314/1.235, allocations: 169.5 kB / 1.476 GB, free: 173.9 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.003193/1.239, allocations: 1.509 MB / 1.477 GB, free: 172.8 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 3.977e-06/1.239, allocations: 0 / 1.477 GB, free: 172.8 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.001083/1.24, allocations: 0.6652 MB / 1.478 GB, free: 172.1 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006028/1.24, allocations: 122.1 kB / 1.478 GB, free: 172 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001997/1.242, allocations: 1.213 MB / 1.479 GB, free: 170.8 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000397/1.243, allocations: 0.9171 MB / 1.48 GB, free: 169.8 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.0005434/1.243, allocations: 147.2 kB / 1.48 GB, free: 169.7 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000121/1.243, allocations: 43.42 kB / 1.48 GB, free: 169.6 MB / 0.9167 GB Notification: Performance of SimCode: time 4.41e-07/1.243, allocations: 0 / 1.48 GB, free: 169.6 MB / 0.9167 GB Notification: Performance of Templates: time 0.01609/1.26, allocations: 11.76 MB / 1.492 GB, free: 158 MB / 0.9167 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.makefile (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.sim & ./Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACSimpleGrid.csv","../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches