Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPIDWithReset.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/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 BuildSysPro with version 3.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo) Running command: "" <> buildModelFMU(BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Controls_Continuous_Examples_LimPIDWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Controls_Continuous_Examples_LimPIDWithReset",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/BuildSysPro 3.5.0/package.mo): time 0.7367/0.7367, allocations: 127.4 MB / 134.6 MB, free: 4.074 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001246/0.001246, allocations: 177.3 kB / 164.4 MB, free: 6.879 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.842/1.842, allocations: 205.1 MB / 399.1 MB, free: 6.086 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009695/0.0009695, allocations: 83.33 kB / 476.3 MB, free: 8.844 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 0.3154/0.3164, allocations: 82.88 MB / 0.546 GB, free: 42.66 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1679/0.4843, allocations: 76.75 MB / 0.621 GB, free: 13.83 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.514/0.9984, allocations: 109.1 MB / 0.7276 GB, free: 3.156 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002119/0.9987, allocations: 83.94 kB / 0.7277 GB, free: 3.074 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 148 * Number of variables: 148 Notification: Performance of Generate backend data structure: time 0.03785/1.037, allocations: 13.72 MB / 0.7411 GB, free: 5.289 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 6.281e-05/1.037, allocations: 12 kB / 0.7411 GB, free: 5.277 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002179/1.037, allocations: 83.05 kB / 0.7412 GB, free: 5.195 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001071/1.038, allocations: 0.5484 MB / 0.7417 GB, free: 4.605 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.031e-05/1.038, allocations: 20 kB / 0.7417 GB, free: 4.586 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.929e-05/1.038, allocations: 36.2 kB / 0.7417 GB, free: 4.551 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008887/1.039, allocations: 398.6 kB / 0.7421 GB, free: 4.16 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001118/1.04, allocations: 0.5327 MB / 0.7426 GB, free: 3.594 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.185e-05/1.04, allocations: 4 kB / 0.7426 GB, free: 3.59 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.376e-05/1.04, allocations: 0 / 0.7426 GB, free: 3.59 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.792e-05/1.04, allocations: 19.91 kB / 0.7427 GB, free: 3.57 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003614/1.044, allocations: 2.011 MB / 0.7446 GB, free: 1.504 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006199/1.045, allocations: 315 kB / 0.7449 GB, free: 1.191 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003886/1.045, allocations: 209.2 kB / 0.7451 GB, free: 0.9844 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 4.411e-05/1.045, allocations: 8.438 kB / 0.7451 GB, free: 0.9766 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003885/1.045, allocations: 236.5 kB / 0.7454 GB, free: 0.7305 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=50): time 2.605e-06/1.045, allocations: 0 / 0.7454 GB, free: 0.7305 MB / 0.4948 GB Notification: Performance of matching and sorting (n=50): time 0.0007858/1.046, allocations: 398.8 kB / 0.7457 GB, free: 344 kB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.822e-05/1.046, allocations: 162.7 kB / 0.7459 GB, free: 144 kB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004452/1.047, allocations: 349.1 kB / 0.7462 GB, free: 15.79 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 4.319e-05/1.047, allocations: 29.7 kB / 0.7463 GB, free: 15.75 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001835/1.047, allocations: 260.3 kB / 0.7465 GB, free: 15.5 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001333/1.047, allocations: 157.6 kB / 0.7467 GB, free: 15.34 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.497e-05/1.047, allocations: 4 kB / 0.7467 GB, free: 15.34 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001864/1.047, allocations: 370.7 kB / 0.747 GB, free: 14.96 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002564/1.048, allocations: 141.3 kB / 0.7471 GB, free: 14.83 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004142/1.048, allocations: 251.2 kB / 0.7474 GB, free: 14.55 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003672/1.048, allocations: 169.4 kB / 0.7475 GB, free: 14.38 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/1.048, allocations: 0 / 0.7475 GB, free: 14.38 MB / 0.5105 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.0009269/1.049, allocations: 471.8 kB / 0.748 GB, free: 13.91 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004094/1.05, allocations: 0.6104 MB / 0.7486 GB, free: 13.26 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.011e-05/1.05, allocations: 3.938 kB / 0.7486 GB, free: 13.25 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.858e-05/1.05, allocations: 4 kB / 0.7486 GB, free: 13.25 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006331/1.051, allocations: 131.8 kB / 0.7487 GB, free: 13.12 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.077e-05/1.051, allocations: 7.906 kB / 0.7487 GB, free: 13.11 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004832/1.051, allocations: 75.64 kB / 0.7488 GB, free: 13.04 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.54e-05/1.051, allocations: 16 kB / 0.7488 GB, free: 13.02 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 9.638e-06/1.051, allocations: 4 kB / 0.7488 GB, free: 13.02 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006523/1.052, allocations: 366.8 kB / 0.7492 GB, free: 12.66 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.434e-06/1.052, allocations: 0 / 0.7492 GB, free: 12.66 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.901e-06/1.052, allocations: 4 kB / 0.7492 GB, free: 12.66 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004477/1.052, allocations: 116 kB / 0.7493 GB, free: 12.54 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.11e-06/1.052, allocations: 4 kB / 0.7493 GB, free: 12.54 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003801/1.053, allocations: 59.56 kB / 0.7494 GB, free: 12.48 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.245e-05/1.053, allocations: 20 kB / 0.7494 GB, free: 12.46 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition2,$whenCondition1,conWitRes.conPID.trigger,conNoRes.trigger.y,$PRE.TSet.T_start,TSet.T_start,$PRE.TSet.count,TSet.count,conNoRes.conPID.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (64): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 1 * 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.0001623/1.053, allocations: 112.9 kB / 0.7495 GB, free: 12.34 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.946e-05/1.053, allocations: 59.34 kB / 0.7495 GB, free: 12.29 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001573/1.053, allocations: 57.22 kB / 0.7496 GB, free: 12.23 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.045e-06/1.053, allocations: 11.91 kB / 0.7496 GB, free: 12.22 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.795e-06/1.053, allocations: 0 / 0.7496 GB, free: 12.22 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.784e-05/1.053, allocations: 3.984 kB / 0.7496 GB, free: 12.21 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001753/1.055, allocations: 1.103 MB / 0.7507 GB, free: 11.07 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/1.055, allocations: 0 / 0.7507 GB, free: 11.07 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005878/1.056, allocations: 115.8 kB / 0.7508 GB, free: 10.96 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.692e-06/1.056, allocations: 3.984 kB / 0.7508 GB, free: 10.95 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.744e-05/1.056, allocations: 8 kB / 0.7508 GB, free: 10.95 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.078e-06/1.056, allocations: 3.906 kB / 0.7508 GB, free: 10.94 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.916e-06/1.056, allocations: 0 / 0.7508 GB, free: 10.94 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001114/1.057, allocations: 0.7127 MB / 0.7515 GB, free: 10.21 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001451/1.058, allocations: 1.31 MB / 0.7528 GB, free: 8.879 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002681/1.058, allocations: 184.3 kB / 0.753 GB, free: 8.68 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.798e-05/1.059, allocations: 8.188 kB / 0.753 GB, free: 8.672 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004332/1.059, allocations: 51.95 kB / 0.753 GB, free: 8.621 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001134/1.059, allocations: 32.39 kB / 0.753 GB, free: 8.59 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.582e-05/1.059, allocations: 19.92 kB / 0.7531 GB, free: 8.57 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.0003601/1.06, allocations: 271.2 kB / 0.7533 GB, free: 8.309 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.002166/1.062, allocations: 242.9 kB / 0.7536 GB, free: 8.07 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (plaWitRes.cap.T,plaWitRes.cap1.T,conWitRes.conPID.I.y,plaNoRes.cap.T,plaNoRes.cap1.T,conNoRes.conPID.I.y) * Number of discrete variables: 6 (conWitRes.conPID.trigger,$whenCondition2,$whenCondition1,conNoRes.trigger.y,TSet.T_start,TSet.count) * Number of discrete states: 1 (TSet.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0002305/1.062, allocations: 118.9 kB / 0.7537 GB, free: 7.945 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.001297/1.063, allocations: 0.6715 MB / 0.7543 GB, free: 7.262 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/1.063, allocations: 0 / 0.7543 GB, free: 7.262 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0003451/1.064, allocations: 201.6 kB / 0.7545 GB, free: 7.066 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008356/1.064, allocations: 118.1 kB / 0.7546 GB, free: 6.953 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003325/1.068, allocations: 1.3 MB / 0.7559 GB, free: 5.621 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007626/1.069, allocations: 0.9609 MB / 0.7568 GB, free: 4.633 MB / 0.5105 GB Notification: Performance of SimCode: time 4.3e-07/1.069, allocations: 0 / 0.7568 GB, free: 4.633 MB / 0.5105 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPIDWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Controls_Continuous_Examples_LimPIDWithReset_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 BuildSysPro_BuildSysPro_IBPSA_Controls_Continuous_Examples_LimPIDWithReset.fmu > BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1)