Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.PIDHysteresisTimer.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.PIDHysteresisTimer,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Controls_Continuous_Examples_PIDHysteresisTimer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Controls.Continuous.Examples.PIDHysteresisTimer,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Controls_Continuous_Examples_PIDHysteresisTimer",fmuType="me",version="2.0",platforms={"static"}) 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.9 MB, free: 3.461 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.001083/0.001083, allocations: 179.6 kB / 164.6 MB, free: 11.62 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.61/1.61, allocations: 205.2 MB / 399.5 MB, free: 13.52 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.0008964/0.0008966, allocations: 94.41 kB / 476.7 MB, free: 1.523 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 2.017e-05/2.008e-05, allocations: 3.281 kB / 0.5467 GB, free: 95.36 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1417/0.1417, allocations: 76.77 MB / 0.6216 GB, free: 43.03 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1412/0.283, allocations: 110.2 MB / 0.7292 GB, free: 12.72 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000219/0.2832, allocations: 79.94 kB / 0.7293 GB, free: 12.64 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 0.0206/0.3039, allocations: 7.822 MB / 0.7369 GB, free: 4.797 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.444e-06/0.3039, allocations: 4 kB / 0.7369 GB, free: 4.793 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 4.27e-05/0.304, allocations: 8 kB / 0.7369 GB, free: 4.785 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 92 * Number of variables: 92 Notification: Performance of Generate backend data structure: time 0.001062/0.305, allocations: 0.6444 MB / 0.7375 GB, free: 4.094 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.733e-05/0.3051, allocations: 12.03 kB / 0.7376 GB, free: 4.082 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001097/0.3052, allocations: 63.23 kB / 0.7376 GB, free: 4.02 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005933/0.3058, allocations: 400.2 kB / 0.738 GB, free: 3.59 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.723e-05/0.3058, allocations: 12 kB / 0.738 GB, free: 3.578 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.541e-05/0.3059, allocations: 24 kB / 0.738 GB, free: 3.555 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000449/0.3064, allocations: 233.5 kB / 0.7383 GB, free: 3.324 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000564/0.307, allocations: 341.7 kB / 0.7386 GB, free: 2.965 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.605e-05/0.307, allocations: 0 / 0.7386 GB, free: 2.965 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.587e-05/0.307, allocations: 7.891 kB / 0.7386 GB, free: 2.957 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.123e-05/0.307, allocations: 12 kB / 0.7386 GB, free: 2.945 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00185/0.3089, allocations: 1.315 MB / 0.7399 GB, free: 1.566 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000534/0.3095, allocations: 295.7 kB / 0.7402 GB, free: 1.27 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001785/0.3096, allocations: 116.8 kB / 0.7403 GB, free: 1.152 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 3.513e-05/0.3097, allocations: 4 kB / 0.7403 GB, free: 1.148 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002739/0.31, allocations: 157.9 kB / 0.7404 GB, free: 0.9805 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=33): time 2.665e-06/0.31, allocations: 0 / 0.7404 GB, free: 0.9805 MB / 0.5105 GB Notification: Performance of matching and sorting (n=33): time 0.0004752/0.3105, allocations: 259.2 kB / 0.7407 GB, free: 0.7227 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.678e-05/0.3106, allocations: 140.5 kB / 0.7408 GB, free: 0.5547 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003244/0.3109, allocations: 290.2 kB / 0.7411 GB, free: 272 kB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 3.919e-05/0.3109, allocations: 33.69 kB / 0.7411 GB, free: 232 kB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.358/0.6689, allocations: 225.5 kB / 0.7413 GB, free: 112.3 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001924/0.6692, allocations: 95.72 kB / 0.7414 GB, free: 112.3 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.759e-05/0.6692, allocations: 0 / 0.7414 GB, free: 112.3 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001677/0.6694, allocations: 352.2 kB / 0.7418 GB, free: 111.9 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002391/0.6697, allocations: 89.56 kB / 0.7419 GB, free: 111.9 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002395/0.6699, allocations: 159.3 kB / 0.742 GB, free: 111.9 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000204/0.6701, allocations: 92.97 kB / 0.7421 GB, free: 111.9 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.991e-06/0.6701, allocations: 0.7188 kB / 0.7421 GB, free: 111.9 MB / 0.5105 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0006292/0.6708, allocations: 298.4 kB / 0.7424 GB, free: 111.8 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.000117/0.6709, allocations: 458.2 kB / 0.7428 GB, free: 111.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.029e-05/0.6709, allocations: 1.438 kB / 0.7428 GB, free: 111.4 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.512e-05/0.6709, allocations: 3.719 kB / 0.7428 GB, free: 111.4 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003689/0.6713, allocations: 66.55 kB / 0.7429 GB, free: 111.4 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.205e-05/0.6713, allocations: 3.781 kB / 0.7429 GB, free: 111.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003399/0.6717, allocations: 38.52 kB / 0.7429 GB, free: 111.4 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.902e-05/0.6717, allocations: 12.22 kB / 0.7429 GB, free: 111.4 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.638e-05/0.6718, allocations: 9.172 kB / 0.7429 GB, free: 111.4 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004168/0.6722, allocations: 215.6 kB / 0.7432 GB, free: 111.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.797e-06/0.6722, allocations: 7.969 kB / 0.7432 GB, free: 111.4 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.995e-06/0.6722, allocations: 3.125 kB / 0.7432 GB, free: 111.4 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002717/0.6725, allocations: 59.53 kB / 0.7432 GB, free: 111.4 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.372e-06/0.6725, allocations: 2.5 kB / 0.7432 GB, free: 111.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002882/0.6728, allocations: 34.44 kB / 0.7433 GB, free: 111.3 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.609e-05/0.6728, allocations: 15.28 kB / 0.7433 GB, free: 111.3 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition3,$whenCondition2,$whenCondition1,$PRE.con.offHys.entryTime,con.offHys.entryTime,$PRE.con.onTimer.entryTime,con.onTimer.entryTime,$PRE.con.offTimer.entryTime,con.offTimer.entryTime,con.on,$PRE.con.hys.y,con.hys.y,con.and3.u1,con.con.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 43 * 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.0001278/0.673, allocations: 112.4 kB / 0.7434 GB, free: 111.2 MB / 0.5105 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004865/0.6735, allocations: 260.6 kB / 0.7436 GB, free: 111.2 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.275e-05/0.6736, allocations: 37.78 kB / 0.7437 GB, free: 111.2 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001391/0.6737, allocations: 45.56 kB / 0.7437 GB, free: 111.2 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.396e-06/0.6737, allocations: 3.094 kB / 0.7437 GB, free: 111.2 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.335e-06/0.6737, allocations: 0 / 0.7437 GB, free: 111.2 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.752e-06/0.6737, allocations: 3.719 kB / 0.7437 GB, free: 111.2 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001286/0.675, allocations: 0.7526 MB / 0.7444 GB, free: 110.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.387e-06/0.6751, allocations: 0 / 0.7444 GB, free: 110.9 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002933/0.6754, allocations: 54.02 kB / 0.7445 GB, free: 110.9 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.688e-06/0.6754, allocations: 3.266 kB / 0.7445 GB, free: 110.9 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.633e-05/0.6754, allocations: 2.188 kB / 0.7445 GB, free: 110.9 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.238e-06/0.6754, allocations: 2.031 kB / 0.7445 GB, free: 110.9 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.48e-06/0.6754, allocations: 5.266 kB / 0.7445 GB, free: 110.9 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007429/0.6762, allocations: 494.8 kB / 0.745 GB, free: 110.7 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001675/0.6764, allocations: 136.7 kB / 0.7451 GB, free: 110.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.781e-05/0.6764, allocations: 5.203 kB / 0.7451 GB, free: 110.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002558/0.6767, allocations: 25.44 kB / 0.7451 GB, free: 110.6 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.464e-05/0.6768, allocations: 25.95 kB / 0.7452 GB, free: 110.6 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.638e-05/0.6768, allocations: 12.41 kB / 0.7452 GB, free: 110.6 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.00029/0.6771, allocations: 214.8 kB / 0.7454 GB, free: 110.5 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.6e-07/0.6771, allocations: 0 / 0.7454 GB, free: 110.5 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0006805/0.6778, allocations: 143 kB / 0.7455 GB, free: 110.5 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (con.con.I.y,cap.T) * Number of discrete variables: 9 (con.on,$whenCondition3,$whenCondition2,$whenCondition1,con.offHys.entryTime,con.onTimer.entryTime,con.offTimer.entryTime,con.hys.y,con.and3.u1) * Number of discrete states: 1 (con.hys.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.001152/0.679, allocations: 1.032 MB / 0.7465 GB, free: 109.8 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0009321/0.6799, allocations: 383.5 kB / 0.7469 GB, free: 109.8 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 6.211e-06/0.6799, allocations: 1.375 kB / 0.7469 GB, free: 109.8 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.000259/0.6802, allocations: 126.1 kB / 0.747 GB, free: 109.8 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005837/0.6808, allocations: 67.27 kB / 0.7471 GB, free: 109.8 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001984/0.6828, allocations: 0.6482 MB / 0.7477 GB, free: 109.6 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005029/0.6833, allocations: 0.8259 MB / 0.7485 GB, free: 108.9 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.0004182/0.6837, allocations: 62.77 kB / 0.7486 GB, free: 108.8 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002375/0.684, allocations: 146.9 kB / 0.7487 GB, free: 108.8 MB / 0.5105 GB Notification: Performance of SimCode: time 6.31e-07/0.684, allocations: 1.062 kB / 0.7487 GB, free: 108.8 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0337/0.7177, allocations: 7.392 MB / 0.7559 GB, free: 108.4 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001646/0.7179, allocations: 164.4 kB / 0.7561 GB, free: 108.2 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.069/2.787, allocations: 0.625 kB / 0.7561 GB, free: 108.2 MB / 0.5105 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.PIDHysteresisTimer.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.PIDHysteresisTimer.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.PIDHysteresisTimer.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.PIDHysteresisTimer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Controls_Continuous_Examples_PIDHysteresisTimer_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 BuildSysPro_BuildSysPro_IBPSA_Controls_Continuous_Examples_PIDHysteresisTimer.fmu > BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.PIDHysteresisTimer.pipe 2>&1)