Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Movers.Validation.PumpCurveDerivatives.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.Fluid.Movers.Validation.PumpCurveDerivatives,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|ddp_dNrpm.y|ddp_dm_flow.y|dm_flow_dNrpm.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Movers.Validation.PumpCurveDerivatives") translateModel(Buildings.Fluid.Movers.Validation.PumpCurveDerivatives,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|ddp_dNrpm.y|ddp_dm_flow.y|dm_flow_dNrpm.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Movers.Validation.PumpCurveDerivatives") [: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.189/1.189, allocations: 249.4 MB / 256.7 MB, free: 15.85 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001244/0.001244, allocations: 177.5 kB / 316 MB, free: 7.242 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.332/1.332, allocations: 205.1 MB / 0.5667 GB, free: 23.98 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.0008417/0.0008417, allocations: 94.25 kB / 0.671 GB, free: 1.297 MB / 0.4948 GB Notification: Performance of FrontEnd - loaded program: time 6.562e-06/6.582e-06, allocations: 4 kB / 0.7807 GB, free: 0.8125 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3398/0.3398, allocations: 106.3 MB / 0.8846 GB, free: 76.39 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6184/0.9582, allocations: 398.1 MB / 1.273 GB, free: 7.453 MB / 0.7917 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001871/0.9584, allocations: 86.45 kB / 1.273 GB, free: 7.414 MB / 0.7917 GB Notification: Performance of FrontEnd: time 2.549/3.507, allocations: 0.9285 GB / 2.202 GB, free: 110.4 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 0.0003886/3.507, allocations: 81.56 kB / 2.202 GB, free: 110.4 MB / 0.8855 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 397 * Number of variables: 397 Notification: Performance of Generate backend data structure: time 0.007531/3.515, allocations: 3.193 MB / 2.205 GB, free: 108.8 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.077e-05/3.515, allocations: 7.594 kB / 2.205 GB, free: 108.8 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005185/3.52, allocations: 0.9686 MB / 2.206 GB, free: 108.6 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0414/3.562, allocations: 19.82 MB / 2.225 GB, free: 107.1 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001111/3.562, allocations: 54.62 kB / 2.225 GB, free: 107.1 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004747/3.562, allocations: 112.8 kB / 2.225 GB, free: 107.1 MB / 0.8855 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003459/3.566, allocations: 1.634 MB / 2.227 GB, free: 106.5 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002497/3.568, allocations: 1.859 MB / 2.229 GB, free: 105.6 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.221e-05/3.568, allocations: 3.688 kB / 2.229 GB, free: 105.6 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001477/3.569, allocations: 3.844 kB / 2.229 GB, free: 105.6 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.781e-05/3.569, allocations: 39.64 kB / 2.229 GB, free: 105.6 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01333/3.582, allocations: 10.13 MB / 2.239 GB, free: 99.31 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001688/3.584, allocations: 1.62 MB / 2.24 GB, free: 98.73 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000745/3.584, allocations: 0.7301 MB / 2.241 GB, free: 98.45 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004725/3.589, allocations: 3.985 MB / 2.245 GB, free: 95.82 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.779e-05/3.589, allocations: 41.88 kB / 2.245 GB, free: 95.78 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=84): time 2.084e-06/3.589, allocations: 0 / 2.245 GB, free: 95.78 MB / 0.8855 GB Notification: Performance of matching and sorting (n=84): time 0.005282/3.594, allocations: 2.259 MB / 2.247 GB, free: 95.02 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.32e-05/3.594, allocations: 65.72 kB / 2.247 GB, free: 94.96 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004348/3.599, allocations: 3.513 MB / 2.251 GB, free: 93.57 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 0.0001273/3.599, allocations: 29.36 kB / 2.251 GB, free: 93.54 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.000462/3.599, allocations: 0.8913 MB / 2.252 GB, free: 92.95 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002386/3.6, allocations: 285.2 kB / 2.252 GB, free: 92.72 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.915e-05/3.6, allocations: 5.219 kB / 2.252 GB, free: 92.72 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 8.814e-05/3.6, allocations: 368 kB / 2.252 GB, free: 92.39 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008679/3.601, allocations: 0.7766 MB / 2.253 GB, free: 92.1 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001099/3.602, allocations: 1.532 MB / 2.255 GB, free: 90.8 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002393/3.604, allocations: 1.125 MB / 2.256 GB, free: 90.45 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.035e-05/3.604, allocations: 7.875 kB / 2.256 GB, free: 90.45 MB / 0.8855 GB Notification: Performance of matching and sorting (n=207) (initialization): time 0.005195/3.609, allocations: 2.872 MB / 2.258 GB, free: 89.45 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.001399/3.611, allocations: 9.344 MB / 2.268 GB, free: 79.53 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.155e-05/3.611, allocations: 18.12 kB / 2.268 GB, free: 79.53 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001038/3.612, allocations: 461.6 kB / 2.268 GB, free: 79.41 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001399/3.613, allocations: 374.6 kB / 2.268 GB, free: 79.37 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00181/3.615, allocations: 2.438 MB / 2.271 GB, free: 77.48 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002617/3.618, allocations: 251.2 kB / 2.271 GB, free: 77.39 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002227/3.618, allocations: 160 kB / 2.271 GB, free: 77.38 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 9.088e-06/3.618, allocations: 11.16 kB / 2.271 GB, free: 77.37 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004712/3.623, allocations: 2.222 MB / 2.273 GB, free: 76.68 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.458e-05/3.623, allocations: 19.69 kB / 2.273 GB, free: 76.68 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001327/3.624, allocations: 0.505 MB / 2.274 GB, free: 76.55 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001156/3.625, allocations: 348.6 kB / 2.274 GB, free: 76.52 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006324/3.632, allocations: 5.242 MB / 2.279 GB, free: 73.11 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002569/3.634, allocations: 213.3 kB / 2.28 GB, free: 73.04 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002125/3.634, allocations: 136.5 kB / 2.28 GB, free: 73.03 MB / 0.8855 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pump2.vol.heaFloSen.Q_flow:VARIABLE(unit = "W" protected = true ) "Heat flow from port_a to port_b as output signal" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pump1.vol.heaFloSen.Q_flow:VARIABLE(unit = "W" protected = true ) "Heat flow from port_a to port_b as output signal" type: Real forcedPump1.vol.heaFloSen.Q_flow:VARIABLE(unit = "W" protected = true ) "Heat flow from port_a to port_b as output signal" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 95 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (167): * Single equations (assignments): 161 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 9,1 4,1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0004902/3.635, allocations: 168.8 kB / 2.28 GB, free: 72.88 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004913/3.635, allocations: 313.6 kB / 2.28 GB, free: 72.71 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005617/3.641, allocations: 2.272 MB / 2.282 GB, free: 72.02 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.883e-05/3.641, allocations: 14.23 kB / 2.282 GB, free: 72.02 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.446e-06/3.641, allocations: 0 / 2.282 GB, free: 72.02 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.202e-05/3.641, allocations: 3.891 kB / 2.282 GB, free: 72.02 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007928/3.649, allocations: 4.409 MB / 2.287 GB, free: 70.19 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.791e-06/3.649, allocations: 1.062 kB / 2.287 GB, free: 70.19 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001036/3.65, allocations: 187.8 kB / 2.287 GB, free: 70.18 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007659/3.651, allocations: 311.4 kB / 2.287 GB, free: 70.08 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.091e-05/3.651, allocations: 29.05 kB / 2.287 GB, free: 70.08 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001595/3.653, allocations: 2.119 MB / 2.289 GB, free: 68.29 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.821e-06/3.653, allocations: 9.391 kB / 2.289 GB, free: 68.29 MB / 0.8855 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006041/3.659, allocations: 2.86 MB / 2.292 GB, free: 67.03 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001603/3.66, allocations: 0.71 MB / 2.293 GB, free: 66.57 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000462/3.661, allocations: 2 kB / 2.293 GB, free: 66.57 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001629/3.662, allocations: 135.8 kB / 2.293 GB, free: 66.56 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001393/3.663, allocations: 63.83 kB / 2.293 GB, free: 66.55 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001382/3.663, allocations: 62.44 kB / 2.293 GB, free: 66.55 MB / 0.8855 GB Notification: Performance of sort global known variables: time 0.003831/3.667, allocations: 2.631 MB / 2.296 GB, free: 65.46 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.004583/3.671, allocations: 1.599 MB / 2.297 GB, free: 64.39 MB / 0.8855 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (ddp_dm_flow.x,ddp_dNrpm.x,dm_flow_dNrpm.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (85): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 9,1 4,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.002632/3.674, allocations: 1.661 MB / 2.299 GB, free: 63.08 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.004503/3.678, allocations: 3.011 MB / 2.302 GB, free: 60.3 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/3.678, allocations: 0 / 2.302 GB, free: 60.3 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0009543/3.679, allocations: 0.6513 MB / 2.302 GB, free: 59.71 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005018/3.684, allocations: 1.437 MB / 2.304 GB, free: 58.65 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00732/3.692, allocations: 4.378 MB / 2.308 GB, free: 54.64 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002528/3.694, allocations: 2.485 MB / 2.31 GB, free: 52.74 MB / 0.8855 GB Notification: Performance of SimCode: time 6.22e-07/3.694, allocations: 3.938 kB / 2.31 GB, free: 52.73 MB / 0.8855 GB Notification: Performance of Templates: time 0.116/3.81, allocations: 84.05 MB / 2.392 GB, free: 3.605 MB / 0.9167 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Movers.Validation.PumpCurveDerivatives.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Movers.Validation.PumpCurveDerivatives.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Movers.Validation.PumpCurveDerivatives.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Movers.Validation.PumpCurveDerivatives.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Movers.Validation.PumpCurveDerivatives.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Movers.Validation.PumpCurveDerivatives -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Movers.Validation.PumpCurveDerivatives.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.Movers.Validation.PumpCurveDerivatives_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_Movers_Validation_PumpCurveDerivatives.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.Movers.Validation.PumpCurveDerivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches