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.7282/0.7282, allocations: 128.7 MB / 143.7 MB, free: 2.301 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.001043/0.001043, allocations: 182.5 kB / 173.7 MB, free: 6.117 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.597/1.597, allocations: 205.4 MB / 409 MB, free: 10.48 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.0009428/0.0009427, allocations: 90.8 kB / 486.5 MB, free: 13 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003172/0.0003172, allocations: 12.5 kB / 0.5604 GB, free: 97.43 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1636/0.164, allocations: 76.77 MB / 0.6354 GB, free: 30.46 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1556/0.3197, allocations: 109.8 MB / 0.7427 GB, free: 468 kB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003349/0.3201, allocations: 87.94 kB / 0.7428 GB, free: 380 kB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 0.3244/0.6445, allocations: 7.269 MB / 0.7498 GB, free: 109.5 MB / 0.5105 GB Notification: Performance of FrontEnd: time 3.216e-06/0.6445, allocations: 0 / 0.7498 GB, free: 109.5 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 3.874e-05/0.6446, allocations: 5.844 kB / 0.7499 GB, free: 109.5 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001077/0.6457, allocations: 0.6672 MB / 0.7505 GB, free: 109 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 6.023e-05/0.6457, allocations: 9.094 kB / 0.7505 GB, free: 109 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001053/0.6458, allocations: 70.95 kB / 0.7506 GB, free: 109 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.704e-05/0.6459, allocations: 48.16 kB / 0.7506 GB, free: 108.9 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005809/0.6465, allocations: 398.1 kB / 0.751 GB, free: 108.7 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.546e-05/0.6466, allocations: 20.69 kB / 0.751 GB, free: 108.7 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.765e-05/0.6466, allocations: 33.38 kB / 0.7511 GB, free: 108.7 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006025/0.6472, allocations: 369.5 kB / 0.7514 GB, free: 108.6 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.701e-05/0.6473, allocations: 6.625 kB / 0.7514 GB, free: 108.6 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.203e-05/0.6473, allocations: 14.39 kB / 0.7514 GB, free: 108.6 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.416e-06/0.6473, allocations: 5.875 kB / 0.7514 GB, free: 108.6 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005381/0.6479, allocations: 250.2 kB / 0.7517 GB, free: 108.6 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001578/0.6494, allocations: 1.256 MB / 0.7529 GB, free: 107.9 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006343/0.6501, allocations: 287 kB / 0.7532 GB, free: 107.9 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 3.189e-05/0.6501, allocations: 2.219 kB / 0.7532 GB, free: 107.9 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.024e-05/0.6502, allocations: 37.38 kB / 0.7532 GB, free: 107.8 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=22): time 2.665e-06/0.6502, allocations: 4 kB / 0.7532 GB, free: 107.8 MB / 0.5105 GB Notification: Performance of matching and sorting (n=22): time 0.0007634/0.6509, allocations: 347.8 kB / 0.7536 GB, free: 107.8 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.955e-05/0.651, allocations: 162.2 kB / 0.7537 GB, free: 107.6 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003696/0.6514, allocations: 307.2 kB / 0.754 GB, free: 107.5 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 3.322e-05/0.6514, allocations: 32.2 kB / 0.754 GB, free: 107.4 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001525/0.6516, allocations: 218.3 kB / 0.7542 GB, free: 107.3 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 6.568e-05/0.6517, allocations: 73.58 kB / 0.7543 GB, free: 107.3 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.299e-05/0.6517, allocations: 5.25 kB / 0.7543 GB, free: 107.3 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001364/0.6518, allocations: 346.9 kB / 0.7546 GB, free: 107 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002077/0.6521, allocations: 98.25 kB / 0.7547 GB, free: 106.9 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002657/0.6523, allocations: 168.4 kB / 0.7549 GB, free: 106.9 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002301/0.6526, allocations: 106.3 kB / 0.755 GB, free: 106.9 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.088e-06/0.6526, allocations: 1.562 kB / 0.755 GB, free: 106.9 MB / 0.5105 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005726/0.6532, allocations: 305.3 kB / 0.7553 GB, free: 106.8 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001612/0.6533, allocations: 448.3 kB / 0.7557 GB, free: 106.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.288e-06/0.6533, allocations: 1.531 kB / 0.7557 GB, free: 106.3 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.051e-05/0.6534, allocations: 1.375 kB / 0.7557 GB, free: 106.3 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002585/0.6536, allocations: 61.25 kB / 0.7558 GB, free: 106.3 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.018e-05/0.6537, allocations: 1.562 kB / 0.7558 GB, free: 106.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002373/0.6539, allocations: 47.53 kB / 0.7558 GB, free: 106.3 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.83e-05/0.6539, allocations: 10.94 kB / 0.7558 GB, free: 106.3 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.032e-05/0.654, allocations: 9.25 kB / 0.7558 GB, free: 106.3 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003948/0.6544, allocations: 206.4 kB / 0.756 GB, free: 106.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.604e-06/0.6544, allocations: 2.531 kB / 0.756 GB, free: 106.3 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.869e-06/0.6544, allocations: 2.594 kB / 0.756 GB, free: 106.3 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002122/0.6546, allocations: 45.86 kB / 0.7561 GB, free: 106.3 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.793e-06/0.6546, allocations: 5.203 kB / 0.7561 GB, free: 106.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001857/0.6548, allocations: 42.92 kB / 0.7561 GB, free: 106.3 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.055e-05/0.6548, allocations: 6.719 kB / 0.7561 GB, free: 106.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: 3 ($PRE.con.hys.y,con.hys.y,con.PID.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked 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.0002275/0.6551, allocations: 238.5 kB / 0.7564 GB, free: 106.1 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.489e-05/0.6551, allocations: 38.64 kB / 0.7564 GB, free: 106.1 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001093/0.6553, allocations: 39.02 kB / 0.7564 GB, free: 106.1 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.913e-06/0.6553, allocations: 6.75 kB / 0.7565 GB, free: 106.1 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.417e-06/0.6553, allocations: 3.562 kB / 0.7565 GB, free: 106.1 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.599e-06/0.6553, allocations: 1.375 kB / 0.7565 GB, free: 106.1 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004891/0.6558, allocations: 421.6 kB / 0.7569 GB, free: 105.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.063e-06/0.6558, allocations: 0 / 0.7569 GB, free: 105.9 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002387/0.6561, allocations: 46.83 kB / 0.7569 GB, free: 105.9 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.6561, allocations: 1.594 kB / 0.7569 GB, free: 105.9 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.131e-05/0.6561, allocations: 4.438 kB / 0.7569 GB, free: 105.9 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.6561, allocations: 0 / 0.7569 GB, free: 105.9 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.375e-06/0.6561, allocations: 48 / 0.7569 GB, free: 105.9 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007025/0.6568, allocations: 499.1 kB / 0.7574 GB, free: 105.7 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001294/0.657, allocations: 134.3 kB / 0.7575 GB, free: 105.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.89e-05/0.657, allocations: 7.094 kB / 0.7575 GB, free: 105.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002099/0.6572, allocations: 35.31 kB / 0.7576 GB, free: 105.6 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.489e-05/0.6573, allocations: 18.97 kB / 0.7576 GB, free: 105.6 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.33e-05/0.6573, allocations: 7.812 kB / 0.7576 GB, free: 105.6 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0002726/0.6576, allocations: 246.9 kB / 0.7578 GB, free: 105.5 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.31e-07/0.6576, allocations: 1.188 kB / 0.7578 GB, free: 105.5 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0005207/0.6581, allocations: 129.9 kB / 0.7579 GB, free: 105.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.PID.I.y,cap.T) * Number of discrete variables: 1 (con.hys.y) * Number of discrete states: 1 (con.hys.y) * Number of clocked states: 0 () * 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.001026/0.6592, allocations: 1.027 MB / 0.7589 GB, free: 104.8 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.000747/0.6599, allocations: 348.2 kB / 0.7593 GB, free: 104.7 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 3.987e-06/0.6599, allocations: 1.781 kB / 0.7593 GB, free: 104.7 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.000223/0.6602, allocations: 122.1 kB / 0.7594 GB, free: 104.7 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000502/0.6607, allocations: 73.7 kB / 0.7595 GB, free: 104.7 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00349/0.6642, allocations: 2.741 MB / 0.7621 GB, free: 103.3 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002557/0.6645, allocations: 0.8119 MB / 0.7629 GB, free: 102.6 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.0002272/0.6647, allocations: 40.02 kB / 0.763 GB, free: 102.6 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002283/0.6649, allocations: 124.8 kB / 0.7631 GB, free: 102.6 MB / 0.5105 GB Notification: Performance of SimCode: time 3.81e-07/0.6649, allocations: 4 kB / 0.7631 GB, free: 102.6 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02048/0.6854, allocations: 6.969 MB / 0.7699 GB, free: 99.48 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00017/0.6856, allocations: 192.1 kB / 0.7701 GB, free: 99.24 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.97/2.656, allocations: 3.938 kB / 0.7701 GB, free: 99.23 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)