Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresis") translateModel(IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001328/0.001328, allocations: 106.7 kB / 16.27 MB, free: 6.059 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001708/0.001708, allocations: 192.6 kB / 17.2 MB, free: 5.688 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.477/1.477, allocations: 222.9 MB / 240.9 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.8855/0.8855, allocations: 126.7 MB / 417.8 MB, free: 12.34 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001961/0.001961, allocations: 67.89 kB / 0.4958 GB, free: 2.797 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4684/0.4704, allocations: 78.85 MB / 0.5728 GB, free: 30.86 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresis): time 0.004949/0.4754, allocations: 2.971 MB / 0.5757 GB, free: 28.78 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.002375/0.4778, allocations: 0.901 MB / 0.5765 GB, free: 28.13 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004021/0.4782, allocations: 13.56 kB / 0.5765 GB, free: 28.13 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000309/0.4787, allocations: 69.06 kB / 0.5766 GB, free: 28.08 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000216/0.4789, allocations: 88.61 kB / 0.5767 GB, free: 28.01 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006434/0.4795, allocations: 216.5 kB / 0.5769 GB, free: 27.89 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005727/0.4801, allocations: 493.3 kB / 0.5774 GB, free: 27.62 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004368/0.4806, allocations: 222.3 kB / 0.5776 GB, free: 27.52 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002584/0.4808, allocations: 174.5 kB / 0.5778 GB, free: 27.42 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002491/0.4811, allocations: 179.4 kB / 0.5779 GB, free: 27.32 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 7.581e-05/0.4812, allocations: 44.16 kB / 0.578 GB, free: 27.32 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.995e-05/0.4812, allocations: 42.59 kB / 0.578 GB, free: 27.32 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 8.901e-05/0.4813, allocations: 92.64 kB / 0.5781 GB, free: 27.25 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001759/0.4815, allocations: 203.4 kB / 0.5783 GB, free: 27.11 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005818/0.4821, allocations: 0.4919 MB / 0.5788 GB, free: 26.82 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.561e-06/0.4821, allocations: 0 / 0.5788 GB, free: 26.82 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.4821, allocations: 1.375 kB / 0.5788 GB, free: 26.82 MB / 446.1 MB Notification: Performance of Transformations before backend: time 9.719e-06/0.4821, allocations: 0 / 0.5788 GB, free: 26.82 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.001017/0.4832, allocations: 0.7207 MB / 0.5795 GB, free: 26.19 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.956e-05/0.4832, allocations: 8.531 kB / 0.5795 GB, free: 26.19 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.357e-05/0.4833, allocations: 49.38 kB / 0.5795 GB, free: 26.16 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004953/0.4838, allocations: 391.9 kB / 0.5799 GB, free: 25.8 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.348e-05/0.4839, allocations: 21.72 kB / 0.5799 GB, free: 25.79 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.871e-05/0.4839, allocations: 31 kB / 0.58 GB, free: 25.78 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005165/0.4845, allocations: 346.3 kB / 0.5803 GB, free: 25.54 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.427e-05/0.4845, allocations: 0 / 0.5803 GB, free: 25.54 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.107e-05/0.4845, allocations: 12.28 kB / 0.5803 GB, free: 25.53 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.225e-05/0.4845, allocations: 8.656 kB / 0.5803 GB, free: 25.53 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004363/0.485, allocations: 212.8 kB / 0.5805 GB, free: 25.43 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001404/0.4864, allocations: 1.183 MB / 0.5817 GB, free: 24.4 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005889/0.487, allocations: 236.9 kB / 0.5819 GB, free: 24.28 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002209/0.4872, allocations: 117.6 kB / 0.582 GB, free: 24.21 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.373e-05/0.4873, allocations: 5.562 kB / 0.582 GB, free: 24.21 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.344e-05/0.4873, allocations: 38.19 kB / 0.582 GB, free: 24.17 MB / 446.1 MB Notification: Performance of pre-optimization done (n=22): time 1.422e-06/0.4873, allocations: 3.438 kB / 0.582 GB, free: 24.17 MB / 446.1 MB Notification: Performance of matching and sorting (n=22): time 0.0007138/0.488, allocations: 293.2 kB / 0.5823 GB, free: 24.01 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.808e-05/0.4881, allocations: 109.4 kB / 0.5824 GB, free: 23.88 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002998/0.4884, allocations: 338 kB / 0.5828 GB, free: 23.66 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 2.289e-05/0.4884, allocations: 33.69 kB / 0.5828 GB, free: 23.62 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001319/0.4886, allocations: 219.2 kB / 0.583 GB, free: 23.43 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.049e-05/0.4886, allocations: 80.28 kB / 0.5831 GB, free: 23.36 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.88e-05/0.4887, allocations: 56.88 kB / 0.5831 GB, free: 23.32 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 7.827e-05/0.4888, allocations: 342.9 kB / 0.5835 GB, free: 22.98 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001731/0.489, allocations: 87.73 kB / 0.5835 GB, free: 22.93 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001941/0.4892, allocations: 143 kB / 0.5837 GB, free: 22.82 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003454/0.4895, allocations: 217.7 kB / 0.5839 GB, free: 22.68 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.4895, allocations: 0 / 0.5839 GB, free: 22.68 MB / 446.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004777/0.49, allocations: 282.7 kB / 0.5841 GB, free: 22.52 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.878e-05/0.4901, allocations: 6.406 kB / 0.5842 GB, free: 22.52 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.356e-06/0.4901, allocations: 1.562 kB / 0.5842 GB, free: 22.52 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.444e-05/0.4901, allocations: 2.688 kB / 0.5842 GB, free: 22.52 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002202/0.4903, allocations: 52.97 kB / 0.5842 GB, free: 22.51 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.07e-05/0.4903, allocations: 2.781 kB / 0.5842 GB, free: 22.51 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001698/0.4905, allocations: 33.58 kB / 0.5842 GB, free: 22.49 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.31e-05/0.4906, allocations: 13.38 kB / 0.5843 GB, free: 22.49 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 3 (con.hys.y,$PRE.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 (31): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001508/0.4907, allocations: 160.9 kB / 0.5844 GB, free: 22.34 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.966e-05/0.4908, allocations: 33.91 kB / 0.5844 GB, free: 22.32 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.935e-05/0.4909, allocations: 39.83 kB / 0.5845 GB, free: 22.29 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.809e-06/0.4909, allocations: 1.906 kB / 0.5845 GB, free: 22.29 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.326e-06/0.4909, allocations: 2.969 kB / 0.5845 GB, free: 22.29 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-06/0.4909, allocations: 3.984 kB / 0.5845 GB, free: 22.29 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000369/0.4913, allocations: 391.2 kB / 0.5849 GB, free: 21.94 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.814e-06/0.4913, allocations: 0.5938 kB / 0.5849 GB, free: 21.94 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000214/0.4915, allocations: 44.73 kB / 0.5849 GB, free: 21.93 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.456e-06/0.4915, allocations: 1.469 kB / 0.5849 GB, free: 21.93 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.848e-05/0.4915, allocations: 6.016 kB / 0.5849 GB, free: 21.92 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.645e-06/0.4915, allocations: 1.5 kB / 0.5849 GB, free: 21.92 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.4916, allocations: 0.7812 kB / 0.5849 GB, free: 21.92 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006559/0.4922, allocations: 428.6 kB / 0.5853 GB, free: 21.64 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001007/0.4923, allocations: 128.9 kB / 0.5854 GB, free: 21.51 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.327e-05/0.4924, allocations: 10.08 kB / 0.5855 GB, free: 21.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001712/0.4926, allocations: 18.86 kB / 0.5855 GB, free: 21.49 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.867e-05/0.4926, allocations: 16.55 kB / 0.5855 GB, free: 21.48 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.418e-05/0.4927, allocations: 11.61 kB / 0.5855 GB, free: 21.48 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0002227/0.4929, allocations: 239.2 kB / 0.5857 GB, free: 21.32 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4929, allocations: 0 / 0.5857 GB, free: 21.32 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003407/0.4932, allocations: 69.66 kB / 0.5858 GB, free: 21.3 MB / 446.1 MB 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001085/0.4933, allocations: 110.4 kB / 0.5859 GB, free: 21.21 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0004806/0.4938, allocations: 213.1 kB / 0.5861 GB, free: 21.11 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.4938, allocations: 2.344 kB / 0.5861 GB, free: 21.11 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001945/0.494, allocations: 102 kB / 0.5862 GB, free: 21.07 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005665/0.4946, allocations: 85.38 kB / 0.5863 GB, free: 21.03 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001316/0.4959, allocations: 0.696 MB / 0.587 GB, free: 20.58 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002392/0.4962, allocations: 0.7938 MB / 0.5877 GB, free: 19.83 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0001713/0.4964, allocations: 45.41 kB / 0.5878 GB, free: 19.81 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.746e-05/0.4965, allocations: 25.31 kB / 0.5878 GB, free: 19.8 MB / 446.1 MB Notification: Performance of SimCode: time 7.52e-07/0.4965, allocations: 0 / 0.5878 GB, free: 19.8 MB / 446.1 MB Notification: Performance of Templates: time 0.007808/0.5043, allocations: 3.189 MB / 0.5909 GB, free: 18.26 MB / 446.1 MB make -j1 -f IBPSA_latest_IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresis.makefile (rm -f IBPSA_latest_IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresis.pipe ; mkfifo IBPSA_latest_IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresis.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresis.pipe >> ../files/IBPSA_latest_IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresis.sim & ./IBPSA_latest_IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresis -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresis.pipe 2>&1)