Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.PIDHysteresis.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.PIDHysteresis,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Controls_Continuous_Examples_PIDHysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Controls.Continuous.Examples.PIDHysteresis,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Controls_Continuous_Examples_PIDHysteresis",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.7411/0.7411, 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.001275/0.001275, allocations: 173.3 kB / 164.4 MB, free: 6.883 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.106/2.106, allocations: 205.1 MB / 399.1 MB, free: 6.246 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.0009955/0.0009952, allocations: 94.34 kB / 476.3 MB, free: 8.992 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 0.3691/0.3701, allocations: 82.87 MB / 0.546 GB, free: 42.7 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1897/0.5599, allocations: 76.75 MB / 0.621 GB, free: 13.86 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5193/1.079, allocations: 109 MB / 0.7275 GB, free: 3.312 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003908/1.08, allocations: 83.94 kB / 0.7275 GB, free: 3.23 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.03324/1.113, allocations: 7.523 MB / 0.7349 GB, free: 11.65 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.45e-05/1.113, allocations: 8 kB / 0.7349 GB, free: 11.64 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001473/1.113, allocations: 47.44 kB / 0.7349 GB, free: 11.6 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009599/1.114, allocations: 395.2 kB / 0.7353 GB, free: 11.17 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.189e-05/1.114, allocations: 12 kB / 0.7353 GB, free: 11.16 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.483e-05/1.114, allocations: 16 kB / 0.7353 GB, free: 11.14 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000696/1.115, allocations: 193.2 kB / 0.7355 GB, free: 10.96 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008156/1.116, allocations: 304.8 kB / 0.7358 GB, free: 10.62 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.389e-05/1.116, allocations: 0 / 0.7358 GB, free: 10.62 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.748e-05/1.116, allocations: 0 / 0.7358 GB, free: 10.62 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.867e-05/1.116, allocations: 8 kB / 0.7358 GB, free: 10.62 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002692/1.119, allocations: 1.198 MB / 0.737 GB, free: 9.355 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005302/1.119, allocations: 154.3 kB / 0.7371 GB, free: 9.199 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003009/1.12, allocations: 97.14 kB / 0.7372 GB, free: 9.102 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 4.313e-05/1.12, allocations: 4.188 kB / 0.7372 GB, free: 9.098 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.919e-05/1.12, allocations: 38.75 kB / 0.7373 GB, free: 9.051 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=22): time 2.635e-06/1.12, allocations: 0 / 0.7373 GB, free: 9.051 MB / 0.4948 GB Notification: Performance of matching and sorting (n=22): time 0.000682/1.12, allocations: 207.4 kB / 0.7375 GB, free: 8.848 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001043/1.12, allocations: 158.2 kB / 0.7376 GB, free: 8.656 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004665/1.121, allocations: 270 kB / 0.7379 GB, free: 8.387 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 4.321e-05/1.121, allocations: 29.7 kB / 0.7379 GB, free: 8.352 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001749/1.121, allocations: 179.9 kB / 0.7381 GB, free: 8.172 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 9.282e-05/1.121, allocations: 67.02 kB / 0.7381 GB, free: 8.105 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.971e-05/1.121, allocations: 4 kB / 0.7381 GB, free: 8.102 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002082/1.122, allocations: 346.7 kB / 0.7385 GB, free: 7.754 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002622/1.122, allocations: 68 kB / 0.7385 GB, free: 7.688 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003128/1.122, allocations: 136.5 kB / 0.7387 GB, free: 7.527 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002598/1.122, allocations: 85.16 kB / 0.7388 GB, free: 7.445 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/1.122, allocations: 0 / 0.7388 GB, free: 7.445 MB / 0.4948 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006268/1.123, allocations: 237.1 kB / 0.739 GB, free: 7.207 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003299/1.123, allocations: 449.3 kB / 0.7394 GB, free: 6.734 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.064e-05/1.124, allocations: 0 / 0.7394 GB, free: 6.734 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.587e-05/1.124, allocations: 8 kB / 0.7394 GB, free: 6.727 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004755/1.124, allocations: 55.91 kB / 0.7395 GB, free: 6.672 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.293e-05/1.124, allocations: 7.938 kB / 0.7395 GB, free: 6.664 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004588/1.125, allocations: 47.77 kB / 0.7395 GB, free: 6.617 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.38e-05/1.125, allocations: 7.984 kB / 0.7395 GB, free: 6.609 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.147e-05/1.125, allocations: 4 kB / 0.7395 GB, free: 6.605 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004791/1.125, allocations: 171.8 kB / 0.7397 GB, free: 6.438 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.063e-06/1.125, allocations: 4 kB / 0.7397 GB, free: 6.434 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.6e-06/1.125, allocations: 128 / 0.7397 GB, free: 6.434 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003575/1.125, allocations: 51.92 kB / 0.7398 GB, free: 6.383 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.807e-06/1.126, allocations: 0 / 0.7398 GB, free: 6.383 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002974/1.126, allocations: 35.81 kB / 0.7398 GB, free: 6.348 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.519e-05/1.126, allocations: 12 kB / 0.7398 GB, free: 6.336 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 ($PRE.con.hys.y,con.hys.y,con.PID.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 29 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001507/1.126, allocations: 116.8 kB / 0.7399 GB, free: 6.215 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.224e-05/1.126, allocations: 35.53 kB / 0.7399 GB, free: 6.18 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001407/1.126, allocations: 35.16 kB / 0.74 GB, free: 6.141 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.933e-06/1.126, allocations: 4 kB / 0.74 GB, free: 6.137 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.893e-06/1.126, allocations: 0 / 0.74 GB, free: 6.137 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.002e-06/1.126, allocations: 0 / 0.74 GB, free: 6.137 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007177/1.127, allocations: 365.8 kB / 0.7403 GB, free: 5.742 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/1.127, allocations: 0 / 0.7403 GB, free: 5.742 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004405/1.128, allocations: 51.97 kB / 0.7404 GB, free: 5.691 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.3e-06/1.128, allocations: 0 / 0.7404 GB, free: 5.691 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.246e-05/1.128, allocations: 4 kB / 0.7404 GB, free: 5.688 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.5e-06/1.128, allocations: 0 / 0.7404 GB, free: 5.688 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.861e-06/1.128, allocations: 7.844 kB / 0.7404 GB, free: 5.68 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009287/1.129, allocations: 399.1 kB / 0.7408 GB, free: 5.273 MB / 0.4948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001317/1.13, allocations: 0.8734 MB / 0.7416 GB, free: 4.383 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002429/1.13, allocations: 136.5 kB / 0.7418 GB, free: 4.23 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.512e-05/1.13, allocations: 4 kB / 0.7418 GB, free: 4.227 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004115/1.131, allocations: 32.09 kB / 0.7418 GB, free: 4.195 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.243e-05/1.131, allocations: 19.97 kB / 0.7418 GB, free: 4.176 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.726e-05/1.131, allocations: 4 kB / 0.7418 GB, free: 4.172 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.0003888/1.131, allocations: 212.5 kB / 0.742 GB, free: 3.965 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.003156/1.134, allocations: 119.4 kB / 0.7421 GB, free: 3.848 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (con.PID.I.y,cap.T) * Number of discrete variables: 1 (con.hys.y) * Number of discrete states: 1 (con.hys.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 22 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002419/1.135, allocations: 111.2 kB / 0.7422 GB, free: 3.73 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0009817/1.136, allocations: 289.8 kB / 0.7425 GB, free: 3.449 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 3.998e-06/1.136, allocations: 0 / 0.7425 GB, free: 3.449 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0002652/1.136, allocations: 96.3 kB / 0.7426 GB, free: 3.355 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008654/1.137, allocations: 76.56 kB / 0.7427 GB, free: 3.285 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001997/1.139, allocations: 0.5081 MB / 0.7432 GB, free: 2.758 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007634/1.14, allocations: 0.8421 MB / 0.744 GB, free: 1.887 MB / 0.4948 GB Notification: Performance of SimCode: time 6.31e-07/1.14, allocations: 0 / 0.744 GB, free: 1.887 MB / 0.4948 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.PIDHysteresis.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.PIDHysteresis.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.PIDHysteresis.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.PIDHysteresis.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Controls_Continuous_Examples_PIDHysteresis_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 BuildSysPro_BuildSysPro_IBPSA_Controls_Continuous_Examples_PIDHysteresis.fmu > BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.PIDHysteresis.pipe 2>&1)