Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad.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.DC.Loads.Examples.VariableLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|loa1.i.1.|loa2.i.1.|loa3.i.1.",fileNamePrefix="Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad") translateModel(Buildings.Electrical.DC.Loads.Examples.VariableLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|loa1.i.1.|loa2.i.1.|loa3.i.1.",fileNamePrefix="Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad") [: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.714/1.714, allocations: 390.4 MB / 397.7 MB, free: 11.28 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.0008964/0.0008964, allocations: 177.3 kB / 490.8 MB, free: 1.945 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.077/1.077, allocations: 221.3 MB / 0.7863 GB, free: 13.67 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.0008114/0.0008114, allocations: 86.28 kB / 0.9264 GB, free: 14.21 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.729e-06/4.739e-06, allocations: 0 / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1648/0.1648, allocations: 143 MB / 1.212 GB, free: 40.14 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4677/0.6325, allocations: 177.4 MB / 1.385 GB, free: 17.07 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001906/0.6328, allocations: 92.97 kB / 1.385 GB, free: 17.06 MB / 0.823 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/Electrical/Interfaces/Source.mo:28:9-28:50:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.potentialRoot(terminal.theta);. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/Electrical/Transmission/BaseClasses/PartialTwoPortResistance.mo:13:3-13:57:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.branch(terminal_p.theta, terminal_n.theta);. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/Electrical/DC/Sensors/GeneralizedSensor.mo:39:3-39:57:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.branch(terminal_p.theta, terminal_n.theta);. Notification: Performance of FrontEnd: time 0.04284/0.6756, allocations: 23.29 MB / 1.408 GB, free: 4.289 MB / 0.823 GB Notification: Performance of Transformations before backend: time 1.315e-05/0.6757, allocations: 8 kB / 1.408 GB, free: 4.281 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: 82 * Number of variables: 82 Notification: Performance of Generate backend data structure: time 0.0007295/0.6764, allocations: 0.6033 MB / 1.408 GB, free: 19.66 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 2.705e-05/0.6764, allocations: 11.97 kB / 1.408 GB, free: 19.65 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006671/0.6771, allocations: 103.4 kB / 1.408 GB, free: 19.55 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000284/0.6774, allocations: 297.8 kB / 1.409 GB, free: 19.24 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.221e-05/0.6774, allocations: 8 kB / 1.409 GB, free: 19.23 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.637e-05/0.6774, allocations: 16 kB / 1.409 GB, free: 19.22 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003468/0.6778, allocations: 299.3 kB / 1.409 GB, free: 19.02 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004123/0.6782, allocations: 415.1 kB / 1.409 GB, free: 18.67 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.088e-05/0.6782, allocations: 0 / 1.409 GB, free: 18.67 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.814e-05/0.6783, allocations: 0 / 1.409 GB, free: 18.67 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.93e-05/0.6783, allocations: 32.62 kB / 1.409 GB, free: 18.64 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001498/0.6798, allocations: 1.996 MB / 1.411 GB, free: 16.64 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003327/0.6802, allocations: 177.3 kB / 1.412 GB, free: 16.51 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002016/0.6804, allocations: 142.4 kB / 1.412 GB, free: 16.4 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.965e-05/0.6804, allocations: 0 / 1.412 GB, free: 16.4 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.056e-05/0.6804, allocations: 34.56 kB / 1.412 GB, free: 16.36 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=18): time 9.52e-07/0.6804, allocations: 0 / 1.412 GB, free: 16.36 MB / 0.8386 GB Notification: Performance of matching and sorting (n=18): time 0.0003248/0.6807, allocations: 188.8 kB / 1.412 GB, free: 16.2 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.196e-05/0.6808, allocations: 55.34 kB / 1.412 GB, free: 16.13 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001319/0.6809, allocations: 195.5 kB / 1.412 GB, free: 15.96 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.436e-05/0.6809, allocations: 25.7 kB / 1.412 GB, free: 15.93 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 6.266e-05/0.681, allocations: 204.9 kB / 1.412 GB, free: 15.74 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.724e-05/0.681, allocations: 61.98 kB / 1.412 GB, free: 15.68 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.045e-05/0.681, allocations: 0 / 1.412 GB, free: 15.68 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 7.839e-05/0.6811, allocations: 329.4 kB / 1.413 GB, free: 15.36 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.028e-05/0.6812, allocations: 64.92 kB / 1.413 GB, free: 15.32 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001034/0.6813, allocations: 175.9 kB / 1.413 GB, free: 15.12 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001045/0.6814, allocations: 95.08 kB / 1.413 GB, free: 15.05 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.6814, allocations: 3.938 kB / 1.413 GB, free: 15.05 MB / 0.8386 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003464/0.6818, allocations: 272.6 kB / 1.413 GB, free: 14.82 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003709/0.6822, allocations: 1.398 MB / 1.415 GB, free: 13.34 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.152e-06/0.6822, allocations: 4 kB / 1.415 GB, free: 13.34 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001372/0.6823, allocations: 28.22 kB / 1.415 GB, free: 13.31 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002922/0.6826, allocations: 75.89 kB / 1.415 GB, free: 13.23 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003153/0.6829, allocations: 0.5614 MB / 1.415 GB, free: 12.66 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00024/0.6832, allocations: 39.83 kB / 1.415 GB, free: 12.62 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.009e-05/0.6832, allocations: 12 kB / 1.415 GB, free: 12.61 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 5.19e-06/0.6832, allocations: 4 kB / 1.415 GB, free: 12.61 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002634/0.6835, allocations: 196.1 kB / 1.416 GB, free: 12.46 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.677e-06/0.6835, allocations: 4 kB / 1.416 GB, free: 12.45 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.923e-06/0.6835, allocations: 8 kB / 1.416 GB, free: 12.45 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002769/0.6838, allocations: 83.92 kB / 1.416 GB, free: 12.37 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.831e-06/0.6838, allocations: 8 kB / 1.416 GB, free: 12.36 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000201/0.684, allocations: 39.73 kB / 1.416 GB, free: 12.32 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.662e-05/0.6841, allocations: 16 kB / 1.416 GB, free: 12.3 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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): 31 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 8.042e-05/0.6841, allocations: 115.8 kB / 1.416 GB, free: 12.19 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.612e-05/0.6842, allocations: 23.72 kB / 1.416 GB, free: 12.16 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.943e-05/0.6842, allocations: 24.77 kB / 1.416 GB, free: 12.15 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-06/0.6843, allocations: 0 / 1.416 GB, free: 12.15 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/0.6843, allocations: 4 kB / 1.416 GB, free: 12.15 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.6843, allocations: 0 / 1.416 GB, free: 12.15 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000705/0.685, allocations: 0.6522 MB / 1.416 GB, free: 11.53 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.685, allocations: 0 / 1.416 GB, free: 11.53 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002022/0.6852, allocations: 48.03 kB / 1.417 GB, free: 11.48 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.643e-05/0.6853, allocations: 28.77 kB / 1.417 GB, free: 11.46 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.197e-05/0.6853, allocations: 3.938 kB / 1.417 GB, free: 11.45 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007603/0.6861, allocations: 1.252 MB / 1.418 GB, free: 10.12 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.6861, allocations: 3.906 kB / 1.418 GB, free: 10.12 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003168/0.6864, allocations: 326.6 kB / 1.418 GB, free: 9.805 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 8.501e-05/0.6865, allocations: 119.5 kB / 1.418 GB, free: 9.676 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.09e-05/0.6865, allocations: 3.906 kB / 1.418 GB, free: 9.672 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001946/0.6867, allocations: 23.98 kB / 1.418 GB, free: 9.648 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.285e-05/0.6868, allocations: 15.34 kB / 1.418 GB, free: 9.637 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.251e-05/0.6868, allocations: 4 kB / 1.418 GB, free: 9.633 MB / 0.8386 GB Notification: Performance of sort global known variables: time 9.9e-05/0.6869, allocations: 155.9 kB / 1.418 GB, free: 9.504 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0004566/0.6874, allocations: 131.5 kB / 1.419 GB, free: 9.375 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 9.4e-05/0.6875, allocations: 99.19 kB / 1.419 GB, free: 9.266 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0004402/0.6879, allocations: 293.2 kB / 1.419 GB, free: 9.047 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.6879, allocations: 192 / 1.419 GB, free: 9.047 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0002014/0.6881, allocations: 189.6 kB / 1.419 GB, free: 8.875 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000314/0.6885, allocations: 44.02 kB / 1.419 GB, free: 8.84 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005901/0.6891, allocations: 386.3 kB / 1.42 GB, free: 8.473 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00036/0.6894, allocations: 0.8346 MB / 1.42 GB, free: 7.629 MB / 0.8386 GB Notification: Performance of SimCode: time 2.7e-07/0.6895, allocations: 8 kB / 1.42 GB, free: 7.621 MB / 0.8386 GB Notification: Performance of Templates: time 0.006302/0.6958, allocations: 3.758 MB / 1.424 GB, free: 3.922 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad.makefile (rm -f Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad.sim & ./Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Loads_Examples_VariableLoad.csv","../files/Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches