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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo): time 0.7297/0.7297, allocations: 127.3 MB / 139.8 MB, free: 15.5 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001413/0.001413, allocations: 176.8 kB / 169.7 MB, free: 1.746 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.775/1.775, allocations: 205.1 MB / 404.5 MB, free: 1.688 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.0008418/0.0008418, allocations: 94.34 kB / 481.8 MB, free: 4.328 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 3.074e-05/3.076e-05, allocations: 4 kB / 0.5533 GB, free: 54.77 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1599/0.1599, allocations: 76.76 MB / 0.6282 GB, free: 9.945 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5606/0.7206, allocations: 109.8 MB / 0.7354 GB, free: 3.715 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002539/0.7209, allocations: 85.45 kB / 0.7355 GB, free: 3.668 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01861/0.7395, allocations: 7.25 MB / 0.7426 GB, free: 13.58 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.114e-06/0.7396, allocations: 0 / 0.7426 GB, free: 13.58 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 3.361e-05/0.7396, allocations: 11.94 kB / 0.7426 GB, free: 13.57 MB / 0.4948 GB 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.0009322/0.7405, allocations: 0.6093 MB / 0.7432 GB, free: 12.95 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.543e-05/0.7406, allocations: 16.03 kB / 0.7432 GB, free: 12.93 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.15e-05/0.7407, allocations: 68.23 kB / 0.7433 GB, free: 12.87 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.343e-05/0.7408, allocations: 47.44 kB / 0.7433 GB, free: 12.82 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005857/0.7414, allocations: 387.3 kB / 0.7437 GB, free: 12.46 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.633e-05/0.7414, allocations: 19.84 kB / 0.7437 GB, free: 12.45 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.96e-05/0.7415, allocations: 30.38 kB / 0.7437 GB, free: 12.43 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005898/0.7421, allocations: 344.1 kB / 0.7441 GB, free: 12.16 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.764e-05/0.7421, allocations: 0 / 0.7441 GB, free: 12.16 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.726e-05/0.7422, allocations: 22.39 kB / 0.7441 GB, free: 12.15 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.039e-05/0.7422, allocations: 8 kB / 0.7441 GB, free: 12.14 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003442/0.7425, allocations: 204.3 kB / 0.7443 GB, free: 12.02 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001639/0.7442, allocations: 1.254 MB / 0.7455 GB, free: 10.92 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004582/0.7446, allocations: 249.5 kB / 0.7458 GB, free: 10.75 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001449/0.7448, allocations: 99.73 kB / 0.7459 GB, free: 10.69 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 3.255e-05/0.7448, allocations: 8.062 kB / 0.7459 GB, free: 10.68 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.314e-05/0.7449, allocations: 30.75 kB / 0.7459 GB, free: 10.64 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=22): time 1.443e-06/0.7449, allocations: 0 / 0.7459 GB, free: 10.64 MB / 0.4948 GB Notification: Performance of matching and sorting (n=22): time 0.0004119/0.7453, allocations: 218.3 kB / 0.7461 GB, free: 10.48 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.142e-05/0.7454, allocations: 162.2 kB / 0.7463 GB, free: 10.29 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003309/0.7457, allocations: 308.1 kB / 0.7466 GB, free: 10.04 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 3.263e-05/0.7458, allocations: 32.45 kB / 0.7466 GB, free: 10.01 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001482/0.7459, allocations: 216.3 kB / 0.7468 GB, free: 9.848 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 6.108e-05/0.746, allocations: 74.48 kB / 0.7469 GB, free: 9.785 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.247e-05/0.746, allocations: 3.438 kB / 0.7469 GB, free: 9.785 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001502/0.7462, allocations: 347.2 kB / 0.7472 GB, free: 9.453 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001213/0.7463, allocations: 71.5 kB / 0.7473 GB, free: 9.414 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001773/0.7465, allocations: 146 kB / 0.7474 GB, free: 9.281 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001403/0.7466, allocations: 89.3 kB / 0.7475 GB, free: 9.223 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.7466, allocations: 0 / 0.7475 GB, free: 9.223 MB / 0.4948 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003843/0.747, allocations: 256.9 kB / 0.7477 GB, free: 9.027 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002161/0.7473, allocations: 455.9 kB / 0.7482 GB, free: 8.559 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.661e-06/0.7473, allocations: 0 / 0.7482 GB, free: 8.559 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.348e-05/0.7473, allocations: 4 kB / 0.7482 GB, free: 8.555 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002406/0.7475, allocations: 51.91 kB / 0.7482 GB, free: 8.504 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.15e-05/0.7476, allocations: 4 kB / 0.7482 GB, free: 8.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002215/0.7478, allocations: 47.75 kB / 0.7483 GB, free: 8.457 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.923e-05/0.7478, allocations: 7.5 kB / 0.7483 GB, free: 8.453 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.019e-05/0.7478, allocations: 4 kB / 0.7483 GB, free: 8.449 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002962/0.7481, allocations: 191.8 kB / 0.7485 GB, free: 8.324 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.286e-06/0.7482, allocations: 12.05 kB / 0.7485 GB, free: 8.312 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.841e-06/0.7482, allocations: 4 kB / 0.7485 GB, free: 8.309 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000192/0.7484, allocations: 46.86 kB / 0.7485 GB, free: 8.266 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.959e-06/0.7484, allocations: 4 kB / 0.7485 GB, free: 8.262 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001908/0.7486, allocations: 43.36 kB / 0.7486 GB, free: 8.223 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.405e-05/0.7486, allocations: 4 kB / 0.7486 GB, free: 8.219 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.0001104/0.7487, allocations: 135.4 kB / 0.7487 GB, free: 8.09 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.249e-05/0.7488, allocations: 31.62 kB / 0.7487 GB, free: 8.059 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.919e-05/0.7489, allocations: 36.62 kB / 0.7488 GB, free: 8.043 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.389e-06/0.7489, allocations: 4 kB / 0.7488 GB, free: 8.039 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.571e-06/0.7489, allocations: 0 / 0.7488 GB, free: 8.039 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.7489, allocations: 0 / 0.7488 GB, free: 8.039 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004445/0.7494, allocations: 419.6 kB / 0.7492 GB, free: 7.672 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.7494, allocations: 7.938 kB / 0.7492 GB, free: 7.664 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002316/0.7496, allocations: 55.28 kB / 0.7492 GB, free: 7.613 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.524e-06/0.7496, allocations: 0 / 0.7492 GB, free: 7.613 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.215e-05/0.7496, allocations: 7.312 kB / 0.7492 GB, free: 7.609 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.704e-06/0.7497, allocations: 0 / 0.7492 GB, free: 7.609 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.7497, allocations: 0 / 0.7492 GB, free: 7.609 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005344/0.7502, allocations: 423 kB / 0.7496 GB, free: 7.285 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001336/0.7503, allocations: 138.2 kB / 0.7498 GB, free: 7.148 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.478e-05/0.7504, allocations: 11.19 kB / 0.7498 GB, free: 7.145 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002079/0.7506, allocations: 24.05 kB / 0.7498 GB, free: 7.121 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.53e-05/0.7507, allocations: 23.22 kB / 0.7498 GB, free: 7.102 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.534e-05/0.7507, allocations: 7.984 kB / 0.7498 GB, free: 7.094 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0002414/0.751, allocations: 243.3 kB / 0.7501 GB, free: 6.91 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.5e-07/0.751, allocations: 0 / 0.7501 GB, free: 6.91 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0004396/0.7514, allocations: 125.7 kB / 0.7502 GB, free: 6.797 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.0008037/0.7522, allocations: 0.9733 MB / 0.7511 GB, free: 5.906 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0004977/0.7527, allocations: 305.3 kB / 0.7514 GB, free: 5.625 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.7527, allocations: 4.062 kB / 0.7514 GB, free: 5.621 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0001444/0.7529, allocations: 99.92 kB / 0.7515 GB, free: 5.523 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004547/0.7534, allocations: 65.3 kB / 0.7516 GB, free: 5.457 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001261/0.7546, allocations: 0.6017 MB / 0.7522 GB, free: 4.82 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003798/0.755, allocations: 0.8038 MB / 0.753 GB, free: 3.988 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.0002713/0.7553, allocations: 56.25 kB / 0.753 GB, free: 3.938 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001843/0.7555, allocations: 126.1 kB / 0.7531 GB, free: 3.816 MB / 0.4948 GB Notification: Performance of SimCode: time 3.61e-07/0.7555, allocations: 0 / 0.7531 GB, free: 3.816 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02141/0.7769, allocations: 7.399 MB / 0.7604 GB, free: 12.55 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001891/0.7771, allocations: 162.5 kB / 0.7605 GB, free: 12.33 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.121/2.898, allocations: 0 / 0.7605 GB, free: 12.33 MB / 0.5105 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)