Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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_maint.7.0.x_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_maint.7.0.x_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 7.0.3-maint.7.0.x/package.mo): time 1.494/1.494, allocations: 249.4 MB / 256.7 MB, free: 7.012 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001131/0.001131, allocations: 180.5 kB / 316 MB, free: 3.555 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.551/1.551, allocations: 205.1 MB / 0.5667 GB, free: 15.63 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009125/0.0009124, allocations: 90.56 kB / 0.671 GB, free: 4.766 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 7.604e-06/7.634e-06, allocations: 0 / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2087/0.2088, allocations: 106.3 MB / 0.8846 GB, free: 12.66 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6493/0.8581, allocations: 162.3 MB / 1.043 GB, free: 10.68 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002625/0.8584, allocations: 87.62 kB / 1.043 GB, free: 10.63 MB / 0.6667 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/Electrical/AC/OnePhase/Conversion/ACDCConverter.mo:43:5-43:39:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.root(terminal_p.theta);. Notification: Performance of FrontEnd: time 0.04269/0.9011, allocations: 17.7 MB / 1.06 GB, free: 12.11 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 1.876e-05/0.9012, allocations: 7.984 kB / 1.06 GB, free: 12.1 MB / 0.6823 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.0007323/0.9019, allocations: 0.5267 MB / 1.061 GB, free: 11.54 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.006e-05/0.902, allocations: 8.031 kB / 1.061 GB, free: 11.54 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009112/0.9029, allocations: 103.6 kB / 1.061 GB, free: 11.43 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003545/0.9033, allocations: 256.3 kB / 1.061 GB, free: 11.16 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.37e-05/0.9033, allocations: 4 kB / 1.061 GB, free: 11.16 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.452e-05/0.9033, allocations: 16 kB / 1.061 GB, free: 11.14 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003938/0.9037, allocations: 236.8 kB / 1.062 GB, free: 10.99 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004326/0.9042, allocations: 328.5 kB / 1.062 GB, free: 10.72 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.244e-05/0.9042, allocations: 0 / 1.062 GB, free: 10.72 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.118e-05/0.9042, allocations: 4 kB / 1.062 GB, free: 10.72 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.648e-05/0.9043, allocations: 23.3 kB / 1.062 GB, free: 10.7 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00197/0.9062, allocations: 1.699 MB / 1.064 GB, free: 9.035 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002997/0.9066, allocations: 209.4 kB / 1.064 GB, free: 8.867 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001273/0.9067, allocations: 98.38 kB / 1.064 GB, free: 8.797 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001142/0.9068, allocations: 93.09 kB / 1.064 GB, free: 8.688 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.019e-05/0.9068, allocations: 30.56 kB / 1.064 GB, free: 8.648 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=16): time 1.763e-06/0.9069, allocations: 0 / 1.064 GB, free: 8.648 MB / 0.6823 GB Notification: Performance of matching and sorting (n=23): time 0.001696/0.9086, allocations: 0.7015 MB / 1.065 GB, free: 8.074 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.653e-05/0.9086, allocations: 81.3 kB / 1.065 GB, free: 7.977 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000175/0.9088, allocations: 185.4 kB / 1.065 GB, free: 7.812 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 2.449e-05/0.9088, allocations: 25.7 kB / 1.065 GB, free: 7.781 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 8.099e-05/0.9089, allocations: 157.3 kB / 1.065 GB, free: 7.629 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 6.124e-05/0.909, allocations: 82.81 kB / 1.065 GB, free: 7.559 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.505e-05/0.909, allocations: 4 kB / 1.065 GB, free: 7.555 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001158/0.9091, allocations: 330.4 kB / 1.065 GB, free: 7.23 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000167/0.9093, allocations: 125.3 kB / 1.066 GB, free: 7.152 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002077/0.9095, allocations: 213.5 kB / 1.066 GB, free: 6.965 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003747/0.9099, allocations: 191 kB / 1.066 GB, free: 6.832 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.372e-06/0.9099, allocations: 4 kB / 1.066 GB, free: 6.828 MB / 0.6823 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0009368/0.9108, allocations: 0.5071 MB / 1.066 GB, free: 6.422 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.234e-05/0.9109, allocations: 8 kB / 1.066 GB, free: 6.414 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.975e-06/0.9109, allocations: 7.984 kB / 1.067 GB, free: 6.406 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004088/0.9113, allocations: 144 kB / 1.067 GB, free: 6.281 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002617/0.9116, allocations: 55.91 kB / 1.067 GB, free: 6.227 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002671/0.9143, allocations: 3.83 MB / 1.07 GB, free: 2.305 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001908/0.9145, allocations: 7.984 kB / 1.07 GB, free: 2.297 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.716e-05/0.9145, allocations: 12 kB / 1.07 GB, free: 2.285 MB / 0.6823 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.0001429/0.9146, allocations: 116.9 kB / 1.071 GB, free: 2.168 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.857e-05/0.9147, allocations: 23.7 kB / 1.071 GB, free: 2.145 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009124/0.9156, allocations: 487.8 kB / 1.071 GB, free: 1.773 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.931e-06/0.9157, allocations: 7.938 kB / 1.071 GB, free: 1.766 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.9157, allocations: 3.938 kB / 1.071 GB, free: 1.762 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.939e-06/0.9157, allocations: 7.984 kB / 1.071 GB, free: 1.754 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00154/0.9172, allocations: 0.9697 MB / 1.072 GB, free: 0.8906 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.9e-06/0.9173, allocations: 4 kB / 1.072 GB, free: 0.8867 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001357/0.9174, allocations: 27.98 kB / 1.072 GB, free: 0.8594 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003712/0.9178, allocations: 150.9 kB / 1.072 GB, free: 0.7266 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.148e-05/0.9178, allocations: 4 kB / 1.072 GB, free: 0.7227 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002896/0.9207, allocations: 3.808 MB / 1.076 GB, free: 12.81 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.162e-06/0.9207, allocations: 4 kB / 1.076 GB, free: 12.81 MB / 0.698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009852/0.9217, allocations: 0.7469 MB / 1.077 GB, free: 12.06 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001275/0.9219, allocations: 127.1 kB / 1.077 GB, free: 11.93 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.947e-05/0.9219, allocations: 4 kB / 1.077 GB, free: 11.93 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002358/0.9222, allocations: 11.98 kB / 1.077 GB, free: 11.92 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.845e-05/0.9222, allocations: 27.83 kB / 1.077 GB, free: 11.89 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.492e-05/0.9223, allocations: 15.8 kB / 1.077 GB, free: 11.88 MB / 0.698 GB Notification: Performance of sort global known variables: time 0.0001505/0.9224, allocations: 141.6 kB / 1.077 GB, free: 11.76 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0005755/0.923, allocations: 99.86 kB / 1.077 GB, free: 11.66 MB / 0.698 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.0002792/0.9233, allocations: 138.5 kB / 1.077 GB, free: 11.52 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0009091/0.9242, allocations: 0.5177 MB / 1.078 GB, free: 11.08 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 5.45e-06/0.9242, allocations: 4 kB / 1.078 GB, free: 11.08 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0004954/0.9247, allocations: 361.5 kB / 1.078 GB, free: 10.75 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003901/0.9251, allocations: 43.33 kB / 1.078 GB, free: 10.71 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009538/0.9261, allocations: 461.9 kB / 1.079 GB, free: 10.28 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004688/0.9266, allocations: 0.8179 MB / 1.079 GB, free: 9.449 MB / 0.698 GB Notification: Performance of SimCode: time 3.8e-07/0.9266, allocations: 0 / 1.079 GB, free: 9.449 MB / 0.698 GB Notification: Performance of Templates: time 0.00777/0.9344, allocations: 4.108 MB / 1.083 GB, free: 5.383 MB / 0.698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.makefile (rm -f Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.sim & ./Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Electrical_AC_OnePhase_Examples_GridDCLoad.csv","../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches