Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_Utilities_Validation_PIDWithInputGains",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_Utilities_Validation_PIDWithInputGains",fmuType="me",version="2.0",platforms={"static"}) [: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 9.1.1-maint.9.1.x/package.mo): time 1.773/1.773, allocations: 387.2 MB / 394.5 MB, free: 7.535 MB / 318.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009731/0.0009733, allocations: 181.7 kB / 487 MB, free: 7.895 MB / 382.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.135/1.135, allocations: 221.3 MB / 0.7819 GB, free: 4.352 MB / 0.5606 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008712/0.0008712, allocations: 100.6 kB / 0.9213 GB, free: 64.98 MB / 0.67 GB Notification: Performance of FrontEnd - loaded program: time 0.2158/0.2167, allocations: 148.5 MB / 1.066 GB, free: 4.23 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2349/0.4516, allocations: 142.3 MB / 1.205 GB, free: 5.801 MB / 0.8575 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5436/0.9952, allocations: 152.2 MB / 1.354 GB, free: 53.99 MB / 0.8731 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001682/0.9954, allocations: 60.47 kB / 1.354 GB, free: 53.93 MB / 0.8731 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 169 * Number of variables: 169 Notification: Performance of Generate backend data structure: time 0.03909/1.035, allocations: 17.58 MB / 1.371 GB, free: 36.48 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 3.296e-05/1.035, allocations: 9 kB / 1.371 GB, free: 36.48 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001603/1.035, allocations: 114.8 kB / 1.371 GB, free: 36.36 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008452/1.036, allocations: 0.5904 MB / 1.372 GB, free: 35.73 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.822e-05/1.036, allocations: 24.8 kB / 1.372 GB, free: 35.71 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001138/1.036, allocations: 67.94 kB / 1.372 GB, free: 35.64 MB / 0.8731 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005902/1.036, allocations: 384 kB / 1.372 GB, free: 35.27 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007036/1.037, allocations: 0.528 MB / 1.373 GB, free: 34.73 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.579e-05/1.037, allocations: 4 kB / 1.373 GB, free: 34.72 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.997e-05/1.037, allocations: 3.984 kB / 1.373 GB, free: 34.72 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.298e-05/1.037, allocations: 18.81 kB / 1.373 GB, free: 34.7 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002426/1.04, allocations: 2.1 MB / 1.375 GB, free: 32.56 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006252/1.04, allocations: 429 kB / 1.375 GB, free: 32.13 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002843/1.041, allocations: 250.8 kB / 1.376 GB, free: 31.88 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 3.86e-05/1.041, allocations: 4.5 kB / 1.376 GB, free: 31.88 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003422/1.041, allocations: 282.8 kB / 1.376 GB, free: 31.58 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=68): time 1.834e-06/1.041, allocations: 0 / 1.376 GB, free: 31.58 MB / 0.8731 GB Notification: Performance of matching and sorting (n=68): time 0.0006524/1.042, allocations: 471.3 kB / 1.376 GB, free: 31.12 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.581e-05/1.042, allocations: 111.5 kB / 1.376 GB, free: 30.98 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003444/1.042, allocations: 405.1 kB / 1.377 GB, free: 30.58 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 7.393e-05/1.042, allocations: 49.69 kB / 1.377 GB, free: 30.53 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001307/1.042, allocations: 270.3 kB / 1.377 GB, free: 30.26 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 9.467e-05/1.042, allocations: 201.1 kB / 1.377 GB, free: 30.06 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.702e-05/1.042, allocations: 8.109 kB / 1.377 GB, free: 30.05 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 8.326e-05/1.042, allocations: 374.7 kB / 1.378 GB, free: 29.68 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004511/1.043, allocations: 285.4 kB / 1.378 GB, free: 29.39 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004673/1.043, allocations: 430 kB / 1.378 GB, free: 28.92 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008314/1.044, allocations: 342.9 kB / 1.379 GB, free: 28.59 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/1.044, allocations: 0 / 1.379 GB, free: 28.59 MB / 0.8731 GB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001506/1.046, allocations: 0.8581 MB / 1.379 GB, free: 27.72 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001478/1.046, allocations: 1.046 MB / 1.38 GB, free: 26.59 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.722e-06/1.046, allocations: 4 kB / 1.38 GB, free: 26.59 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.636e-05/1.046, allocations: 8 kB / 1.38 GB, free: 26.58 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004158/1.046, allocations: 107.8 kB / 1.381 GB, free: 26.48 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.178e-05/1.046, allocations: 15.92 kB / 1.381 GB, free: 26.46 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001068/1.047, allocations: 267.3 kB / 1.381 GB, free: 26.2 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.378e-05/1.048, allocations: 51.34 kB / 1.381 GB, free: 26.15 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 5.25e-06/1.048, allocations: 4 kB / 1.381 GB, free: 26.15 MB / 0.8731 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001409/1.049, allocations: 0.7481 MB / 1.382 GB, free: 25.4 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.208e-06/1.049, allocations: 4 kB / 1.382 GB, free: 25.4 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.191e-06/1.049, allocations: 8 kB / 1.382 GB, free: 25.39 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003496/1.049, allocations: 97.98 kB / 1.382 GB, free: 25.3 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.789e-06/1.049, allocations: 7.938 kB / 1.382 GB, free: 25.29 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000957/1.05, allocations: 255.5 kB / 1.382 GB, free: 25.04 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.632e-05/1.05, allocations: 43.97 kB / 1.382 GB, free: 25 MB / 0.8731 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 27 ($whenCondition11,$PRE.resSig.y,resSig.y,$whenCondition9,$whenCondition10,$whenCondition7,$whenCondition8,$whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,$PRE.pulse.booPul.y,pulse.booPul.y,$PRE.PIDWitInpGai.greThrkTd.greHys.y,PIDWitInpGai.greThrkTd.greHys.y,$PRE.k.booPul.y,k.booPul.y,$PRE.Ti.booPul.y,Ti.booPul.y,$PRE.Td.booPul.y,Td.booPul.y,$PRE.lesThr.lesHys.y,lesThr.lesHys.y,assMes.u,greThr.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (81): * Single equations (assignments): 76 * Array equations: 0 * Algorithm blocks: 5 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001756/1.051, allocations: 138.8 kB / 1.382 GB, free: 24.86 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.434e-05/1.051, allocations: 67.14 kB / 1.382 GB, free: 24.79 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006648/1.051, allocations: 486.3 kB / 1.383 GB, free: 24.3 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.891e-06/1.051, allocations: 5.031 kB / 1.383 GB, free: 24.3 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/1.051, allocations: 0 / 1.383 GB, free: 24.3 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.306e-06/1.051, allocations: 7.984 kB / 1.383 GB, free: 24.29 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001299/1.053, allocations: 1.227 MB / 1.384 GB, free: 23.01 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/1.053, allocations: 0 / 1.384 GB, free: 23.01 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003898/1.053, allocations: 95.83 kB / 1.384 GB, free: 22.92 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.37e-06/1.053, allocations: 4 kB / 1.384 GB, free: 22.91 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.352e-05/1.053, allocations: 11.98 kB / 1.384 GB, free: 22.9 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.376e-06/1.053, allocations: 4 kB / 1.384 GB, free: 22.9 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/1.053, allocations: 4.094 kB / 1.384 GB, free: 22.89 MB / 0.8731 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008871/1.054, allocations: 0.8618 MB / 1.385 GB, free: 21.99 MB / 0.8731 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001317/1.055, allocations: 1.48 MB / 1.386 GB, free: 20.46 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 8.951e-05/1.055, allocations: 141.3 kB / 1.386 GB, free: 20.3 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.497e-05/1.056, allocations: 11.98 kB / 1.386 GB, free: 20.29 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004069/1.056, allocations: 43.66 kB / 1.386 GB, free: 20.25 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001089/1.056, allocations: 56.56 kB / 1.387 GB, free: 20.2 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.217e-05/1.056, allocations: 24.64 kB / 1.387 GB, free: 20.18 MB / 0.8731 GB Notification: Performance of sort global known variables: time 0.0002968/1.056, allocations: 302.9 kB / 1.387 GB, free: 19.88 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.002395/1.059, allocations: 314.9 kB / 1.387 GB, free: 19.57 MB / 0.8731 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (PIDWitInpGai.I.y,PIDWitInpGai.D.x,PID.I.y,PID.D.x) * Number of discrete variables: 20 ($whenCondition11,$whenCondition9,$whenCondition10,$whenCondition7,$whenCondition8,$whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,pulse.booPul.y,PIDWitInpGai.greThrkTd.greHys.y,resSig.y,k.booPul.y,Ti.booPul.y,Td.booPul.y,lesThr.lesHys.y,assMes.u,greThr.y) * Number of discrete states: 2 (PIDWitInpGai.greThrkTd.greHys.y,lesThr.lesHys.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (68): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002017/1.059, allocations: 138.5 kB / 1.387 GB, free: 19.43 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001789/1.061, allocations: 1.329 MB / 1.389 GB, free: 18.04 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/1.061, allocations: 0 / 1.389 GB, free: 18.04 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0003629/1.061, allocations: 259.7 kB / 1.389 GB, free: 17.79 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007894/1.062, allocations: 119 kB / 1.389 GB, free: 17.68 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001615/1.064, allocations: 0.9081 MB / 1.39 GB, free: 16.73 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004569/1.064, allocations: 1.014 MB / 1.391 GB, free: 15.7 MB / 0.8731 GB Notification: Performance of SimCode: time 4.1e-07/1.064, allocations: 0 / 1.391 GB, free: 15.7 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_Utilities_Validation_PIDWithInputGains_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_Utilities_Validation_PIDWithInputGains.fmu > Buildings_9_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains.pipe 2>&1)