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.001019/0.001019, allocations: 92.95 kB / 16.02 MB, free: 84 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001377/0.001377, allocations: 179.7 kB / 16.92 MB, free: 6.645 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.497/1.497, allocations: 223.3 MB / 241 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7874/0.7874, allocations: 123 MB / 415.1 MB, free: 11.11 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004582/0.0004581, allocations: 8 kB / 0.4933 GB, free: 14 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5964/0.5968, allocations: 79.28 MB / 0.5707 GB, free: 9.902 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresis): time 0.003871/0.6008, allocations: 2.629 MB / 0.5733 GB, free: 9.016 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.001762/0.6026, allocations: 0.8692 MB / 0.5742 GB, free: 8.398 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002776/0.6029, allocations: 15.31 kB / 0.5742 GB, free: 8.395 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002041/0.6031, allocations: 43.72 kB / 0.5742 GB, free: 8.367 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001952/0.6033, allocations: 77.52 kB / 0.5743 GB, free: 8.309 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005215/0.6038, allocations: 197.8 kB / 0.5745 GB, free: 8.188 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.000475/0.6043, allocations: 453.8 kB / 0.5749 GB, free: 7.965 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003329/0.6046, allocations: 206.2 kB / 0.5751 GB, free: 7.855 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001834/0.6048, allocations: 126.6 kB / 0.5752 GB, free: 7.793 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000203/0.605, allocations: 132.2 kB / 0.5754 GB, free: 7.723 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 4.127e-05/0.6051, allocations: 15.2 kB / 0.5754 GB, free: 7.719 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.728e-05/0.6051, allocations: 10.66 kB / 0.5754 GB, free: 7.719 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 5.472e-05/0.6052, allocations: 56.98 kB / 0.5754 GB, free: 7.684 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001354/0.6053, allocations: 180.1 kB / 0.5756 GB, free: 7.547 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005399/0.6059, allocations: 478 kB / 0.5761 GB, free: 7.387 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.6059, allocations: 0 / 0.5761 GB, free: 7.387 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.615e-06/0.6059, allocations: 0 / 0.5761 GB, free: 7.387 MB / 430.1 MB Notification: Performance of Transformations before backend: time 8.476e-06/0.6059, allocations: 0 / 0.5761 GB, free: 7.387 MB / 430.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.001015/0.6069, allocations: 0.6404 MB / 0.5767 GB, free: 6.871 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.987e-05/0.607, allocations: 9.25 kB / 0.5767 GB, free: 6.871 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001084/0.6071, allocations: 48.73 kB / 0.5767 GB, free: 6.848 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006229/0.6077, allocations: 389.9 kB / 0.5771 GB, free: 6.531 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.239e-05/0.6078, allocations: 32.86 kB / 0.5771 GB, free: 6.512 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.546e-05/0.6078, allocations: 27.61 kB / 0.5772 GB, free: 6.504 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006923/0.6085, allocations: 340.8 kB / 0.5775 GB, free: 6.312 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.847e-05/0.6086, allocations: 0.7812 kB / 0.5775 GB, free: 6.312 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.103e-05/0.6086, allocations: 19.84 kB / 0.5775 GB, free: 6.297 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.091e-05/0.6087, allocations: 7.531 kB / 0.5775 GB, free: 6.297 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006523/0.6093, allocations: 217.8 kB / 0.5777 GB, free: 6.219 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002131/0.6115, allocations: 1.196 MB / 0.5789 GB, free: 5.344 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007735/0.6122, allocations: 235.4 kB / 0.5791 GB, free: 5.238 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002814/0.6125, allocations: 117.5 kB / 0.5792 GB, free: 5.188 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.101e-05/0.6126, allocations: 2.453 kB / 0.5792 GB, free: 5.188 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.395e-05/0.6126, allocations: 37.41 kB / 0.5793 GB, free: 5.145 MB / 430.1 MB Notification: Performance of pre-optimization done (n=22): time 2.054e-06/0.6126, allocations: 1.406 kB / 0.5793 GB, free: 5.145 MB / 430.1 MB Notification: Performance of matching and sorting (n=22): time 0.0008613/0.6135, allocations: 297.2 kB / 0.5796 GB, free: 5.012 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.18e-05/0.6136, allocations: 110.8 kB / 0.5797 GB, free: 4.883 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004746/0.6141, allocations: 343.2 kB / 0.58 GB, free: 4.703 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 2.738e-05/0.6141, allocations: 31.73 kB / 0.58 GB, free: 4.668 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001777/0.6143, allocations: 226.7 kB / 0.5802 GB, free: 4.48 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.312e-05/0.6144, allocations: 75.48 kB / 0.5803 GB, free: 4.422 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.177e-05/0.6144, allocations: 28.52 kB / 0.5803 GB, free: 4.398 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001075/0.6145, allocations: 350.1 kB / 0.5807 GB, free: 4.066 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002041/0.6148, allocations: 77.97 kB / 0.5807 GB, free: 4.039 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002408/0.615, allocations: 144.5 kB / 0.5809 GB, free: 3.934 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004084/0.6154, allocations: 219.5 kB / 0.5811 GB, free: 3.797 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.6154, allocations: 0.75 kB / 0.5811 GB, free: 3.797 MB / 430.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005829/0.616, allocations: 280.1 kB / 0.5814 GB, free: 3.668 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.074e-05/0.616, allocations: 5.625 kB / 0.5814 GB, free: 3.668 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.146e-06/0.6161, allocations: 6.312 kB / 0.5814 GB, free: 3.664 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.124e-05/0.6161, allocations: 3.672 kB / 0.5814 GB, free: 3.664 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002684/0.6164, allocations: 52.98 kB / 0.5814 GB, free: 3.66 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.315e-05/0.6164, allocations: 2.797 kB / 0.5814 GB, free: 3.66 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002312/0.6166, allocations: 39.36 kB / 0.5815 GB, free: 3.645 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.488e-05/0.6167, allocations: 11.44 kB / 0.5815 GB, free: 3.641 MB / 430.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.0001895/0.6169, allocations: 170.9 kB / 0.5816 GB, free: 3.484 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.223e-05/0.6169, allocations: 36.14 kB / 0.5817 GB, free: 3.465 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001011/0.6171, allocations: 37.81 kB / 0.5817 GB, free: 3.434 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.131e-06/0.6171, allocations: 2.469 kB / 0.5817 GB, free: 3.434 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.057e-05/0.6171, allocations: 0.7188 kB / 0.5817 GB, free: 3.434 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.333e-06/0.6171, allocations: 1.453 kB / 0.5817 GB, free: 3.434 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005531/0.6177, allocations: 390.3 kB / 0.5821 GB, free: 3.152 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.98e-06/0.6177, allocations: 5.266 kB / 0.5821 GB, free: 3.148 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002446/0.6179, allocations: 50.89 kB / 0.5821 GB, free: 3.137 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.031e-06/0.6179, allocations: 1.594 kB / 0.5821 GB, free: 3.137 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.223e-05/0.618, allocations: 7.109 kB / 0.5821 GB, free: 3.133 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.419e-06/0.618, allocations: 1.469 kB / 0.5821 GB, free: 3.133 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.618, allocations: 0 / 0.5821 GB, free: 3.133 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007996/0.6188, allocations: 435.9 kB / 0.5826 GB, free: 2.875 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001233/0.6189, allocations: 130.6 kB / 0.5827 GB, free: 2.746 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.91e-05/0.619, allocations: 6.594 kB / 0.5827 GB, free: 2.742 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001993/0.6192, allocations: 17.61 kB / 0.5827 GB, free: 2.742 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.576e-05/0.6193, allocations: 20.27 kB / 0.5827 GB, free: 2.738 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.821e-05/0.6193, allocations: 5.109 kB / 0.5827 GB, free: 2.738 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0003132/0.6196, allocations: 248.7 kB / 0.583 GB, free: 2.602 MB / 430.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.6196, allocations: 0 / 0.583 GB, free: 2.602 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0003945/0.62, allocations: 74.34 kB / 0.583 GB, free: 2.578 MB / 430.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.0001198/0.6201, allocations: 97.44 kB / 0.5831 GB, free: 2.492 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0005564/0.6207, allocations: 211.2 kB / 0.5833 GB, free: 2.418 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.02e-06/0.6207, allocations: 0.7188 kB / 0.5833 GB, free: 2.418 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002617/0.621, allocations: 102.3 kB / 0.5834 GB, free: 2.387 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007096/0.6217, allocations: 73.36 kB / 0.5835 GB, free: 2.359 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001823/0.6235, allocations: 0.8796 MB / 0.5844 GB, free: 1.781 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003922/0.624, allocations: 0.7907 MB / 0.5851 GB, free: 1.078 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0002305/0.6242, allocations: 38.38 kB / 0.5852 GB, free: 1.07 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.118e-05/0.6243, allocations: 30.84 kB / 0.5852 GB, free: 1.059 MB / 430.1 MB Notification: Performance of SimCode: time 8.01e-07/0.6243, allocations: 0 / 0.5852 GB, free: 1.059 MB / 430.1 MB Notification: Performance of Templates: time 0.0112/0.6355, allocations: 2.938 MB / 0.5881 GB, free: 0.8555 MB / 430.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)