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.72/0.72, allocations: 127.4 MB / 134.9 MB, free: 3.723 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.001086/0.001086, allocations: 184.9 kB / 164.7 MB, free: 6.516 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.573/1.573, allocations: 205.2 MB / 399.5 MB, free: 5.875 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.0009276/0.0009275, allocations: 102.8 kB / 476.7 MB, free: 8.594 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 1.79e-05/1.793e-05, allocations: 0 / 0.5467 GB, free: 60.4 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.147/0.1471, allocations: 76.76 MB / 0.6216 GB, free: 15.58 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5116/0.6587, allocations: 109.4 MB / 0.7284 GB, free: 6.133 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002282/0.659, allocations: 82.52 kB / 0.7285 GB, free: 6.09 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01872/0.6778, allocations: 7.201 MB / 0.7355 GB, free: 148 kB / 490.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.6778, allocations: 0 / 0.7355 GB, free: 148 kB / 490.7 MB Notification: Performance of Transformations before backend: time 3.807e-05/0.6778, allocations: 8 kB / 0.7355 GB, free: 140 kB / 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.0008848/0.6787, allocations: 0.6094 MB / 0.7361 GB, free: 15.51 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.524e-05/0.6788, allocations: 8.578 kB / 0.7361 GB, free: 15.5 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.357e-05/0.6789, allocations: 55.39 kB / 0.7362 GB, free: 15.45 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005501/0.6795, allocations: 384.9 kB / 0.7366 GB, free: 15.09 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.728e-05/0.6795, allocations: 11.98 kB / 0.7366 GB, free: 15.07 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.569e-05/0.6795, allocations: 19.81 kB / 0.7366 GB, free: 15.06 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003536/0.6799, allocations: 186.3 kB / 0.7368 GB, free: 14.95 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004639/0.6804, allocations: 304.7 kB / 0.7371 GB, free: 14.69 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.556e-05/0.6804, allocations: 3.938 kB / 0.7371 GB, free: 14.69 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.132e-05/0.6804, allocations: 3.953 kB / 0.7371 GB, free: 14.68 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.226e-05/0.6805, allocations: 12 kB / 0.7371 GB, free: 14.67 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001518/0.682, allocations: 1.179 MB / 0.7382 GB, free: 13.64 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000421/0.6824, allocations: 233.1 kB / 0.7384 GB, free: 13.49 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001392/0.6826, allocations: 100.5 kB / 0.7385 GB, free: 13.43 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 3.611e-05/0.6826, allocations: 4.141 kB / 0.7385 GB, free: 13.43 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.619e-05/0.6827, allocations: 34.75 kB / 0.7386 GB, free: 13.38 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=22): time 1.894e-06/0.6827, allocations: 0 / 0.7386 GB, free: 13.38 MB / 0.4948 GB Notification: Performance of matching and sorting (n=22): time 0.000387/0.6831, allocations: 206.5 kB / 0.7388 GB, free: 13.23 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.35e-05/0.6831, allocations: 158.2 kB / 0.7389 GB, free: 13.04 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002649/0.6834, allocations: 269.3 kB / 0.7392 GB, free: 12.83 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 3.011e-05/0.6834, allocations: 33.7 kB / 0.7392 GB, free: 12.79 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001377/0.6836, allocations: 216.4 kB / 0.7394 GB, free: 12.63 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 5.324e-05/0.6837, allocations: 69.31 kB / 0.7395 GB, free: 12.57 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.176e-05/0.6837, allocations: 0.75 kB / 0.7395 GB, free: 12.57 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001365/0.6838, allocations: 344.7 kB / 0.7398 GB, free: 12.24 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.932e-05/0.6839, allocations: 66.75 kB / 0.7399 GB, free: 12.2 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001558/0.6841, allocations: 139.8 kB / 0.74 GB, free: 12.08 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001223/0.6842, allocations: 80.62 kB / 0.7401 GB, free: 12.03 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.195e-06/0.6842, allocations: 0 / 0.7401 GB, free: 12.03 MB / 0.4948 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003384/0.6846, allocations: 248 kB / 0.7403 GB, free: 11.84 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001843/0.6848, allocations: 452.3 kB / 0.7408 GB, free: 11.37 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.803e-06/0.6848, allocations: 0 / 0.7408 GB, free: 11.37 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.638e-05/0.6848, allocations: 7.953 kB / 0.7408 GB, free: 11.36 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002514/0.6851, allocations: 55.91 kB / 0.7408 GB, free: 11.31 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5e-06/0.6851, allocations: 0 / 0.7408 GB, free: 11.31 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002263/0.6853, allocations: 43.81 kB / 0.7409 GB, free: 11.27 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.987e-05/0.6853, allocations: 7.062 kB / 0.7409 GB, free: 11.26 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 7.814e-06/0.6853, allocations: 4 kB / 0.7409 GB, free: 11.26 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002517/0.6856, allocations: 166.2 kB / 0.741 GB, free: 11.15 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.647e-06/0.6856, allocations: 0 / 0.741 GB, free: 11.15 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.509e-06/0.6856, allocations: 7.938 kB / 0.741 GB, free: 11.14 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001966/0.6858, allocations: 43.92 kB / 0.7411 GB, free: 11.1 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.285e-06/0.6858, allocations: 8.125 kB / 0.7411 GB, free: 11.09 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001795/0.686, allocations: 27.83 kB / 0.7411 GB, free: 11.06 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.921e-05/0.6861, allocations: 15.3 kB / 0.7411 GB, free: 11.05 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.000114/0.6862, allocations: 120.8 kB / 0.7412 GB, free: 10.93 MB / 0.4948 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003354/0.6865, allocations: 191.3 kB / 0.7414 GB, free: 10.78 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.539e-05/0.6866, allocations: 39.56 kB / 0.7415 GB, free: 10.74 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.058e-05/0.6867, allocations: 36.19 kB / 0.7415 GB, free: 10.71 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.866e-06/0.6867, allocations: 4 kB / 0.7415 GB, free: 10.71 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/0.6867, allocations: 0 / 0.7415 GB, free: 10.71 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.271e-06/0.6867, allocations: 3.984 kB / 0.7415 GB, free: 10.71 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003947/0.6871, allocations: 370.1 kB / 0.7419 GB, free: 10.39 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.6871, allocations: 0 / 0.7419 GB, free: 10.39 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002364/0.6874, allocations: 46.78 kB / 0.7419 GB, free: 10.34 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.485e-06/0.6874, allocations: 0 / 0.7419 GB, free: 10.34 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.695e-05/0.6874, allocations: 4 kB / 0.7419 GB, free: 10.34 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.863e-06/0.6874, allocations: 4 kB / 0.7419 GB, free: 10.34 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.6874, allocations: 0 / 0.7419 GB, free: 10.34 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004731/0.6879, allocations: 415.7 kB / 0.7423 GB, free: 10.02 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001353/0.688, allocations: 137.3 kB / 0.7424 GB, free: 9.883 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.212e-05/0.6881, allocations: 0 / 0.7424 GB, free: 9.883 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000222/0.6883, allocations: 32.03 kB / 0.7425 GB, free: 9.852 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.907e-05/0.6884, allocations: 19.59 kB / 0.7425 GB, free: 9.836 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.276e-05/0.6884, allocations: 4 kB / 0.7425 GB, free: 9.832 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0001869/0.6886, allocations: 210 kB / 0.7427 GB, free: 9.676 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.81e-07/0.6886, allocations: 0 / 0.7427 GB, free: 9.676 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0004578/0.6891, allocations: 115.5 kB / 0.7428 GB, free: 9.562 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.0007616/0.6898, allocations: 0.9471 MB / 0.7437 GB, free: 8.691 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0004628/0.6903, allocations: 278.4 kB / 0.744 GB, free: 8.52 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.6903, allocations: 3.938 kB / 0.744 GB, free: 8.516 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0001227/0.6905, allocations: 94.42 kB / 0.7441 GB, free: 8.453 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004737/0.6909, allocations: 70.73 kB / 0.7442 GB, free: 8.402 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001265/0.6922, allocations: 0.5905 MB / 0.7447 GB, free: 7.828 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003609/0.6926, allocations: 0.8035 MB / 0.7455 GB, free: 6.996 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.0002538/0.6929, allocations: 52.56 kB / 0.7456 GB, free: 6.945 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001459/0.693, allocations: 119.5 kB / 0.7457 GB, free: 6.91 MB / 0.4948 GB Notification: Performance of SimCode: time 4.11e-07/0.693, allocations: 4 kB / 0.7457 GB, free: 6.906 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02984/0.7229, allocations: 6.574 MB / 0.7521 GB, free: 396 kB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001772/0.7231, allocations: 158.4 kB / 0.7523 GB, free: 188 kB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.113/2.836, allocations: 0 / 0.7523 GB, free: 188 kB / 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)