Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.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.Examples.GridDCLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|grid.P.real|grid.P.apparent|resistor.S.1.|resistor.S.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad") translateModel(Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|grid.P.real|grid.P.apparent|resistor.S.1.|resistor.S.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.757/2.757, allocations: 390.3 MB / 405.3 MB, free: 13.5 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.001445/0.001445, allocations: 169.2 kB / 498.1 MB, free: 5.754 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.73/1.73, allocations: 223.2 MB / 0.7948 GB, free: 17.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.0009132/0.000913, allocations: 94.83 kB / 0.9346 GB, free: 6.188 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004431/0.0004435, allocations: 10.91 kB / 1.084 GB, free: 221.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3228/0.3232, allocations: 142.3 MB / 1.223 GB, free: 114.3 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2201/0.5434, allocations: 179.9 MB / 1.399 GB, free: 14.1 MB / 0.9011 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003116/0.5437, allocations: 95.92 kB / 1.399 GB, free: 14 MB / 0.9011 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/Electrical/AC/OnePhase/Conversion/ACDCConverter.mo:42:5-42:39:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.root(terminal_p.theta);. Notification: Performance of FrontEnd - DAE generated: time 0.05104/0.5948, allocations: 20.36 MB / 1.419 GB, free: 9.426 MB / 0.9167 GB Notification: Performance of FrontEnd: time 1.603e-06/0.5948, allocations: 0 / 1.419 GB, free: 9.426 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 1.964e-05/0.5948, allocations: 4 kB / 1.419 GB, free: 9.422 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0009559/0.5958, allocations: 0.5498 MB / 1.419 GB, free: 8.824 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 4.689e-05/0.5959, allocations: 8.031 kB / 1.419 GB, free: 8.816 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008456/0.5967, allocations: 107.6 kB / 1.419 GB, free: 8.711 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004057/0.5971, allocations: 260.8 kB / 1.419 GB, free: 8.418 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.483e-05/0.5972, allocations: 20.36 kB / 1.419 GB, free: 8.395 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.927e-05/0.5972, allocations: 20 kB / 1.419 GB, free: 8.375 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000534/0.5978, allocations: 345.2 kB / 1.42 GB, free: 8.02 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.412e-05/0.5978, allocations: 0 / 1.42 GB, free: 8.02 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.905e-05/0.5978, allocations: 7.938 kB / 1.42 GB, free: 8.012 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.096e-05/0.5979, allocations: 20.42 kB / 1.42 GB, free: 7.992 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000445/0.5983, allocations: 293.5 kB / 1.42 GB, free: 7.707 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002202/0.6005, allocations: 1.749 MB / 1.422 GB, free: 5.789 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004722/0.601, allocations: 322.9 kB / 1.422 GB, free: 5.438 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001081/0.6011, allocations: 89.08 kB / 1.422 GB, free: 5.332 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.916e-05/0.6012, allocations: 42.66 kB / 1.422 GB, free: 5.281 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=16): time 4.689e-06/0.6012, allocations: 3.938 kB / 1.422 GB, free: 5.277 MB / 0.9167 GB Notification: Performance of matching and sorting (n=23): time 0.002529/0.6037, allocations: 0.9628 MB / 1.423 GB, free: 4.277 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.621e-05/0.6038, allocations: 81.3 kB / 1.423 GB, free: 4.18 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001946/0.604, allocations: 192.2 kB / 1.423 GB, free: 3.984 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 2.665e-05/0.604, allocations: 29.7 kB / 1.423 GB, free: 3.949 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 9.205e-05/0.6041, allocations: 168.1 kB / 1.424 GB, free: 3.781 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 7.05e-05/0.6042, allocations: 82.83 kB / 1.424 GB, free: 3.699 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.674e-05/0.6042, allocations: 8 kB / 1.424 GB, free: 3.691 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 0.0001284/0.6044, allocations: 334.8 kB / 1.424 GB, free: 3.355 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002107/0.6046, allocations: 127.9 kB / 1.424 GB, free: 3.23 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002394/0.6048, allocations: 213.2 kB / 1.424 GB, free: 2.988 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002414/0.6051, allocations: 171.8 kB / 1.425 GB, free: 2.82 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.623e-06/0.6051, allocations: 4 kB / 1.425 GB, free: 2.816 MB / 0.9167 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0008486/0.6059, allocations: 0.5016 MB / 1.425 GB, free: 2.297 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 2.28e-05/0.606, allocations: 8 kB / 1.425 GB, free: 2.289 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.182e-06/0.606, allocations: 0 / 1.425 GB, free: 2.289 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005256/0.6065, allocations: 155.6 kB / 1.425 GB, free: 2.125 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002871/0.6068, allocations: 55.91 kB / 1.425 GB, free: 2.07 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.664/1.271, allocations: 3.994 MB / 1.429 GB, free: 188.2 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003113/1.271, allocations: 17.55 kB / 1.429 GB, free: 188.2 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.738e-05/1.271, allocations: 13.38 kB / 1.429 GB, free: 188.2 MB / 0.9167 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (32): * Single equations (assignments): 28 * 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: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002115/1.271, allocations: 168.5 kB / 1.429 GB, free: 188.1 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.823e-05/1.272, allocations: 19.84 kB / 1.429 GB, free: 188.1 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008841/1.272, allocations: 477.2 kB / 1.43 GB, free: 188 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.469e-06/1.272, allocations: 5.812 kB / 1.43 GB, free: 188 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/1.272, allocations: 5.078 kB / 1.43 GB, free: 188 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/1.272, allocations: 0 / 1.43 GB, free: 188 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001692/1.274, allocations: 0.9985 MB / 1.431 GB, free: 187.6 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.939e-06/1.274, allocations: 2.531 kB / 1.431 GB, free: 187.6 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001366/1.274, allocations: 38.03 kB / 1.431 GB, free: 187.6 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00048/1.275, allocations: 148.6 kB / 1.431 GB, free: 187.6 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.42e-05/1.275, allocations: 7.25 kB / 1.431 GB, free: 187.6 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00234/1.277, allocations: 3.974 MB / 1.435 GB, free: 184.1 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.438e-06/1.277, allocations: 5.766 kB / 1.435 GB, free: 184.1 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009244/1.278, allocations: 0.7293 MB / 1.436 GB, free: 183.6 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001516/1.278, allocations: 127 kB / 1.436 GB, free: 183.5 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.499e-05/1.278, allocations: 13.05 kB / 1.436 GB, free: 183.5 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002542/1.279, allocations: 19.47 kB / 1.436 GB, free: 183.5 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.393e-05/1.279, allocations: 27.75 kB / 1.436 GB, free: 183.5 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.17e-05/1.279, allocations: 12.69 kB / 1.436 GB, free: 183.5 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.0001871/1.279, allocations: 151.4 kB / 1.436 GB, free: 183.4 MB / 0.9167 GB Notification: Performance of sort global known variables: time 1.11e-07/1.279, allocations: 1.5 kB / 1.436 GB, free: 183.4 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0006328/1.28, allocations: 106.3 kB / 1.436 GB, free: 183.4 MB / 0.9167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 (21): * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 2 {1 1,1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002912/1.28, allocations: 147.5 kB / 1.436 GB, free: 183.3 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.001044/1.281, allocations: 0.5726 MB / 1.437 GB, free: 183.1 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 3.907e-06/1.281, allocations: 0 / 1.437 GB, free: 183.1 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.0005793/1.282, allocations: 393.2 kB / 1.437 GB, free: 182.9 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003988/1.282, allocations: 37.66 kB / 1.437 GB, free: 182.9 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001313/1.283, allocations: 0.729 MB / 1.438 GB, free: 182.5 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003352/1.284, allocations: 0.7834 MB / 1.439 GB, free: 181.8 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.0002059/1.284, allocations: 61.42 kB / 1.439 GB, free: 181.8 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.202e-05/1.284, allocations: 23.89 kB / 1.439 GB, free: 181.8 MB / 0.9167 GB Notification: Performance of SimCode: time 2e-07/1.284, allocations: 0 / 1.439 GB, free: 181.8 MB / 0.9167 GB Notification: Performance of Templates: time 0.00978/1.294, allocations: 3.858 MB / 1.442 GB, free: 181.6 MB / 0.9167 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.makefile (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.sim & ./Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_OnePhase_Examples_GridDCLoad.csv","../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches