Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.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.LinearizedLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|error|sen_nlin.I|sen_lin.I|sen_nlin.V|sen_lin.V|sen_nlin.P|sen_lin.P",fileNamePrefix="Buildings_latest_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad") translateModel(Buildings.Electrical.DC.Loads.Examples.LinearizedLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|error|sen_nlin.I|sen_lin.I|sen_nlin.V|sen_lin.V|sen_nlin.P|sen_lin.P",fileNamePrefix="Buildings_latest_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad") [: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.687/1.687, allocations: 390.4 MB / 397.7 MB, free: 11.25 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.0008913/0.0008913, allocations: 173.3 kB / 490.8 MB, free: 1.934 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.06/1.06, allocations: 221.4 MB / 0.7863 GB, free: 13.65 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.0007969/0.0007969, allocations: 97.69 kB / 0.9264 GB, free: 14.18 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 5.32e-06/5.35e-06, allocations: 0 / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1626/0.1626, allocations: 143 MB / 1.212 GB, free: 40.11 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4622/0.6249, allocations: 177.7 MB / 1.385 GB, free: 16.95 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001896/0.6251, allocations: 96.27 kB / 1.385 GB, free: 16.93 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);. [/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);. Notification: Performance of FrontEnd: time 0.04505/0.6702, allocations: 25.26 MB / 1.41 GB, free: 2.328 MB / 0.823 GB Notification: Performance of Transformations before backend: time 1.215e-05/0.6702, allocations: 11.94 kB / 1.41 GB, free: 2.316 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.0007565/0.6709, allocations: 0.6108 MB / 1.41 GB, free: 17.68 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 2.65e-05/0.671, allocations: 8.031 kB / 1.41 GB, free: 17.67 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007557/0.6717, allocations: 119.4 kB / 1.411 GB, free: 17.55 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004487/0.6722, allocations: 330.8 kB / 1.411 GB, free: 17.22 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.342e-05/0.6722, allocations: 42.48 kB / 1.411 GB, free: 17.17 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.201e-05/0.6723, allocations: 20 kB / 1.411 GB, free: 17.15 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003944/0.6727, allocations: 328.4 kB / 1.411 GB, free: 16.94 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004654/0.6732, allocations: 439 kB / 1.412 GB, free: 16.59 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.202e-05/0.6732, allocations: 0 / 1.412 GB, free: 16.59 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.176e-05/0.6732, allocations: 0 / 1.412 GB, free: 16.59 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.596e-05/0.6733, allocations: 24.77 kB / 1.412 GB, free: 16.57 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001815/0.6751, allocations: 2.158 MB / 1.414 GB, free: 14.43 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004195/0.6755, allocations: 211.5 kB / 1.414 GB, free: 14.27 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002372/0.6758, allocations: 142.5 kB / 1.414 GB, free: 14.16 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.368e-05/0.6758, allocations: 7.938 kB / 1.414 GB, free: 14.16 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.729e-05/0.6758, allocations: 34 kB / 1.414 GB, free: 14.12 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=19): time 1.192e-06/0.6758, allocations: 0 / 1.414 GB, free: 14.12 MB / 0.8386 GB Notification: Performance of matching and sorting (n=19): time 0.0005903/0.6764, allocations: 264.1 kB / 1.414 GB, free: 13.9 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.078e-05/0.6764, allocations: 51.41 kB / 1.415 GB, free: 13.84 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001391/0.6766, allocations: 175.4 kB / 1.415 GB, free: 13.68 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.945e-05/0.6766, allocations: 25.7 kB / 1.415 GB, free: 13.65 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 8.164e-05/0.6767, allocations: 197.6 kB / 1.415 GB, free: 13.46 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 4.088e-05/0.6767, allocations: 64.7 kB / 1.415 GB, free: 13.41 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.203e-05/0.6768, allocations: 0 / 1.415 GB, free: 13.41 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 8.164e-05/0.6769, allocations: 339.4 kB / 1.415 GB, free: 13.08 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.733e-05/0.677, allocations: 65.73 kB / 1.415 GB, free: 13.04 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001399/0.6771, allocations: 159.7 kB / 1.415 GB, free: 12.87 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001278/0.6772, allocations: 99.91 kB / 1.416 GB, free: 12.8 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.6772, allocations: 3.906 kB / 1.416 GB, free: 12.8 MB / 0.8386 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005649/0.6778, allocations: 311.8 kB / 1.416 GB, free: 12.54 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002491/0.6781, allocations: 0.9612 MB / 1.417 GB, free: 11.52 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.641e-06/0.6781, allocations: 4 kB / 1.417 GB, free: 11.51 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003733/0.6785, allocations: 99.2 kB / 1.417 GB, free: 11.42 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002085/0.6787, allocations: 51.09 kB / 1.417 GB, free: 11.38 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001742/0.6804, allocations: 1.956 MB / 1.419 GB, free: 9.363 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002344/0.6807, allocations: 31.67 kB / 1.419 GB, free: 9.332 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.905e-05/0.6807, allocations: 11.97 kB / 1.419 GB, free: 9.324 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 4.548e-06/0.6807, allocations: 8 kB / 1.419 GB, free: 9.316 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004497/0.6812, allocations: 243.9 kB / 1.419 GB, free: 9.129 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.777e-06/0.6812, allocations: 4 kB / 1.419 GB, free: 9.125 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002302/0.6814, allocations: 74.42 kB / 1.419 GB, free: 9.059 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002195/0.6817, allocations: 59.91 kB / 1.419 GB, free: 9 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001381/0.683, allocations: 1.4 MB / 1.421 GB, free: 7.559 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002253/0.6833, allocations: 31.94 kB / 1.421 GB, free: 7.527 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.694e-05/0.6833, allocations: 11.69 kB / 1.421 GB, free: 7.52 MB / 0.8386 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 25 * 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: 0 * Non-linear torn systems: 2 {1 1,1 2} Notification: Performance of prepare postOptimizeDAE: time 7.41e-05/0.6834, allocations: 106.3 kB / 1.421 GB, free: 7.41 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.538e-05/0.6834, allocations: 23.72 kB / 1.421 GB, free: 7.387 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.812e-05/0.6835, allocations: 24.08 kB / 1.421 GB, free: 7.379 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.865e-06/0.6835, allocations: 4 kB / 1.421 GB, free: 7.375 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.072e-06/0.6835, allocations: 0 / 1.421 GB, free: 7.375 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.6835, allocations: 0 / 1.421 GB, free: 7.375 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000911/0.6844, allocations: 0.7475 MB / 1.422 GB, free: 6.684 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.6844, allocations: 0 / 1.422 GB, free: 6.684 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001468/0.6846, allocations: 32.05 kB / 1.422 GB, free: 6.652 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003223/0.6849, allocations: 103.4 kB / 1.422 GB, free: 6.559 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.316e-05/0.6849, allocations: 0 / 1.422 GB, free: 6.559 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002098/0.687, allocations: 2.658 MB / 1.424 GB, free: 3.781 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.6871, allocations: 4.156 kB / 1.424 GB, free: 3.777 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005105/0.6876, allocations: 396.7 kB / 1.425 GB, free: 3.402 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 9.251e-05/0.6877, allocations: 119 kB / 1.425 GB, free: 3.273 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.003e-05/0.6877, allocations: 0 / 1.425 GB, free: 3.273 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001724/0.6879, allocations: 11.98 kB / 1.425 GB, free: 3.262 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.601e-05/0.6879, allocations: 10.67 kB / 1.425 GB, free: 3.254 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.412e-05/0.688, allocations: 8 kB / 1.425 GB, free: 3.246 MB / 0.8386 GB Notification: Performance of sort global known variables: time 8.557e-05/0.6881, allocations: 144.9 kB / 1.425 GB, free: 3.125 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0004692/0.6885, allocations: 155.3 kB / 1.425 GB, free: 2.973 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 (17): * Single equations (assignments): 15 * 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: 0 * Non-linear torn systems: 2 {1 1,1 2} Notification: Performance of Backend phase and start with SimCode phase: time 9.041e-05/0.6886, allocations: 95.25 kB / 1.425 GB, free: 2.871 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.001293/0.6899, allocations: 0.5771 MB / 1.426 GB, free: 2.359 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.6899, allocations: 0 / 1.426 GB, free: 2.359 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0005948/0.6905, allocations: 326.5 kB / 1.426 GB, free: 2.051 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002626/0.6908, allocations: 38.34 kB / 1.426 GB, free: 2.02 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006986/0.6915, allocations: 412.2 kB / 1.427 GB, free: 1.621 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003592/0.6919, allocations: 0.8448 MB / 1.427 GB, free: 0.7617 MB / 0.8386 GB Notification: Performance of SimCode: time 2.5e-07/0.6919, allocations: 0 / 1.427 GB, free: 0.7617 MB / 0.8386 GB Notification: Performance of Templates: time 0.007218/0.6991, allocations: 4.66 MB / 1.432 GB, free: 12.15 MB / 0.8542 GB make -j1 -f Buildings_latest_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.makefile (rm -f Buildings_latest_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.sim & ./Buildings_latest_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Loads_Examples_LinearizedLoad.csv","../files/Buildings_latest_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches