Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 1.696/1.696, allocations: 390.4 MB / 397.7 MB, free: 11.29 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.0008979/0.0008979, allocations: 173.3 kB / 490.8 MB, free: 1.973 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.049/1.049, allocations: 221.4 MB / 0.7863 GB, free: 13.69 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.0008035/0.0008035, allocations: 91.11 kB / 0.9264 GB, free: 14.23 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.949e-06/4.979e-06, allocations: 0 / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.166/0.166, allocations: 143 MB / 1.212 GB, free: 40.16 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4658/0.6319, allocations: 179.9 MB / 1.387 GB, free: 16.34 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001996/0.6321, allocations: 89.66 kB / 1.387 GB, free: 16.32 MB / 0.823 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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: time 0.03853/0.6706, allocations: 19.78 MB / 1.407 GB, free: 4.875 MB / 0.823 GB Notification: Performance of Transformations before backend: time 1.027e-05/0.6707, allocations: 4 kB / 1.407 GB, free: 4.871 MB / 0.823 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.0004877/0.6712, allocations: 0.5175 MB / 1.407 GB, free: 20.32 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 2.6e-05/0.6712, allocations: 12.03 kB / 1.407 GB, free: 20.31 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007613/0.672, allocations: 107.5 kB / 1.407 GB, free: 20.21 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000254/0.6722, allocations: 259.2 kB / 1.408 GB, free: 19.93 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.168e-05/0.6722, allocations: 12 kB / 1.408 GB, free: 19.92 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.928e-05/0.6723, allocations: 12 kB / 1.408 GB, free: 19.91 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002905/0.6726, allocations: 235.3 kB / 1.408 GB, free: 19.76 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003241/0.6729, allocations: 326 kB / 1.408 GB, free: 19.49 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.018e-05/0.6729, allocations: 0 / 1.408 GB, free: 19.49 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.413e-05/0.6729, allocations: 3.906 kB / 1.408 GB, free: 19.49 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.667e-05/0.673, allocations: 20.42 kB / 1.408 GB, free: 19.47 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001475/0.6745, allocations: 1.697 MB / 1.41 GB, free: 17.81 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001809/0.6747, allocations: 215.6 kB / 1.41 GB, free: 17.63 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.344e-05/0.6748, allocations: 102.2 kB / 1.41 GB, free: 17.56 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 7.808e-05/0.6748, allocations: 85.09 kB / 1.41 GB, free: 17.46 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.479e-05/0.6749, allocations: 38.56 kB / 1.41 GB, free: 17.41 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=16): time 1.183e-06/0.6749, allocations: 0 / 1.41 GB, free: 17.41 MB / 0.8386 GB Notification: Performance of matching and sorting (n=23): time 0.001321/0.6762, allocations: 0.7004 MB / 1.411 GB, free: 16.84 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.48e-05/0.6762, allocations: 81.3 kB / 1.411 GB, free: 16.74 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000123/0.6764, allocations: 172.6 kB / 1.411 GB, free: 16.59 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.652e-05/0.6764, allocations: 25.7 kB / 1.411 GB, free: 16.56 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 5.139e-05/0.6764, allocations: 157.9 kB / 1.411 GB, free: 16.41 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.468e-05/0.6765, allocations: 77.28 kB / 1.411 GB, free: 16.34 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.309e-05/0.6765, allocations: 4 kB / 1.411 GB, free: 16.34 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 7.742e-05/0.6766, allocations: 333 kB / 1.412 GB, free: 16.01 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000129/0.6767, allocations: 129.8 kB / 1.412 GB, free: 15.93 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001431/0.6769, allocations: 208.9 kB / 1.412 GB, free: 15.75 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003088/0.6772, allocations: 192.8 kB / 1.412 GB, free: 15.61 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.232e-06/0.6772, allocations: 0 / 1.412 GB, free: 15.61 MB / 0.8386 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0007564/0.6779, allocations: 0.5132 MB / 1.413 GB, free: 15.2 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 7.795e-06/0.678, allocations: 4 kB / 1.413 GB, free: 15.2 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.069e-06/0.678, allocations: 4 kB / 1.413 GB, free: 15.19 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003361/0.6783, allocations: 146.4 kB / 1.413 GB, free: 15.06 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002129/0.6785, allocations: 63.47 kB / 1.413 GB, free: 15 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002192/0.6807, allocations: 3.831 MB / 1.417 GB, free: 11.09 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001709/0.6809, allocations: 4 kB / 1.417 GB, free: 11.08 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.576e-05/0.681, allocations: 19.42 kB / 1.417 GB, free: 11.07 MB / 0.8386 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.idealACDCConverter1.P_n[1]:DUMMY_DER(fixed = false ) "Power transmitted at pin n (primary)" type: Real [2] 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 () * 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.0001024/0.6811, allocations: 112.8 kB / 1.417 GB, free: 10.95 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.268e-05/0.6811, allocations: 19.91 kB / 1.417 GB, free: 10.93 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008251/0.682, allocations: 496.9 kB / 1.417 GB, free: 10.55 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/0.682, allocations: 4 kB / 1.417 GB, free: 10.54 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.453e-06/0.682, allocations: 7.906 kB / 1.417 GB, free: 10.54 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.682, allocations: 3.938 kB / 1.417 GB, free: 10.53 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001316/0.6833, allocations: 0.9716 MB / 1.418 GB, free: 9.668 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.484e-06/0.6833, allocations: 4.031 kB / 1.418 GB, free: 9.664 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001219/0.6835, allocations: 31.92 kB / 1.418 GB, free: 9.633 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003125/0.6838, allocations: 141.2 kB / 1.418 GB, free: 9.508 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.764e-05/0.6838, allocations: 8 kB / 1.418 GB, free: 9.5 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002083/0.6859, allocations: 3.824 MB / 1.422 GB, free: 5.582 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.6859, allocations: 4.031 kB / 1.422 GB, free: 5.578 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007928/0.6867, allocations: 0.7507 MB / 1.423 GB, free: 4.828 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001082/0.6868, allocations: 124 kB / 1.423 GB, free: 4.699 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.574e-05/0.6869, allocations: 4 kB / 1.423 GB, free: 4.695 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002122/0.6871, allocations: 11.98 kB / 1.423 GB, free: 4.684 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.161e-05/0.6871, allocations: 19.17 kB / 1.423 GB, free: 4.668 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.632e-05/0.6871, allocations: 8 kB / 1.423 GB, free: 4.66 MB / 0.8386 GB Notification: Performance of sort global known variables: time 9.656e-05/0.6872, allocations: 152.3 kB / 1.423 GB, free: 4.535 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0004085/0.6877, allocations: 91.92 kB / 1.423 GB, free: 4.445 MB / 0.8386 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 () * 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.0001721/0.6878, allocations: 156.2 kB / 1.423 GB, free: 4.285 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0006288/0.6885, allocations: 0.5163 MB / 1.424 GB, free: 3.844 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.6885, allocations: 0 / 1.424 GB, free: 3.844 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0003824/0.6889, allocations: 361 kB / 1.424 GB, free: 3.512 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002813/0.6892, allocations: 35.34 kB / 1.424 GB, free: 3.484 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006738/0.6898, allocations: 463.7 kB / 1.425 GB, free: 3.043 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003231/0.6902, allocations: 0.8134 MB / 1.426 GB, free: 2.219 MB / 0.8386 GB Notification: Performance of SimCode: time 2.6e-07/0.6902, allocations: 0 / 1.426 GB, free: 2.219 MB / 0.8386 GB Notification: Performance of Templates: time 0.006375/0.6966, allocations: 4.107 MB / 1.43 GB, free: 14.15 MB / 0.8542 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.sim & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Examples_GridDCLoad.csv","../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches