Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset") translateModel(BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009888/0.0009888, allocations: 102.4 kB / 16.35 MB, free: 5.875 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.0009966/0.0009966, allocations: 191 kB / 17.29 MB, free: 5.516 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.263/1.263, allocations: 222.9 MB / 241 MB, free: 14.97 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002146/0.002146, allocations: 288.2 kB / 291.4 MB, free: 14.44 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9291/0.9291, allocations: 169.3 MB / 0.4989 GB, free: 4.457 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001737/0.001737, allocations: 90.48 kB / 0.5966 GB, free: 14.45 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1324/0.1341, allocations: 86.98 MB / 0.6816 GB, free: 7.469 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset): time 0.004753/0.1389, allocations: 4.127 MB / 0.6856 GB, free: 3.316 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001849/0.1408, allocations: 1.321 MB / 0.6869 GB, free: 1.988 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002402/0.141, allocations: 19.94 kB / 0.6869 GB, free: 1.969 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002833/0.1413, allocations: 126.7 kB / 0.687 GB, free: 1.844 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002876/0.1416, allocations: 178.4 kB / 0.6872 GB, free: 1.668 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007316/0.1424, allocations: 417.5 kB / 0.6876 GB, free: 1.266 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007767/0.1432, allocations: 0.9632 MB / 0.6885 GB, free: 308 kB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2276/0.3707, allocations: 459.4 kB / 0.689 GB, free: 12.85 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004987/0.3713, allocations: 321.7 kB / 0.6893 GB, free: 12.82 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002983/0.3716, allocations: 339.3 kB / 0.6896 GB, free: 12.74 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001132/0.3717, allocations: 90.31 kB / 0.6897 GB, free: 12.74 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001116/0.3718, allocations: 90.78 kB / 0.6898 GB, free: 12.74 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001174/0.3719, allocations: 183.5 kB / 0.69 GB, free: 12.71 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000287/0.3722, allocations: 388.4 kB / 0.6903 GB, free: 12.59 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009142/0.3731, allocations: 1.058 MB / 0.6914 GB, free: 12.46 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.546e-06/0.3732, allocations: 1.812 kB / 0.6914 GB, free: 12.46 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.3732, allocations: 0 / 0.6914 GB, free: 12.46 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.103e-05/0.3732, allocations: 0 / 0.6914 GB, free: 12.46 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.001611/0.3748, allocations: 1.075 MB / 0.6924 GB, free: 11.84 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.277e-05/0.3748, allocations: 12.16 kB / 0.6924 GB, free: 11.84 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001253/0.375, allocations: 85.72 kB / 0.6925 GB, free: 11.79 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008187/0.3758, allocations: 0.5632 MB / 0.6931 GB, free: 11.52 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.405e-05/0.3758, allocations: 50.5 kB / 0.6931 GB, free: 11.51 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.498e-05/0.3759, allocations: 60.47 kB / 0.6932 GB, free: 11.51 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001017/0.377, allocations: 0.6048 MB / 0.6938 GB, free: 11.42 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.02e-05/0.377, allocations: 5.625 kB / 0.6938 GB, free: 11.41 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.344e-05/0.3771, allocations: 24.97 kB / 0.6938 GB, free: 11.41 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.33e-05/0.3771, allocations: 13.81 kB / 0.6938 GB, free: 11.41 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009406/0.378, allocations: 463.7 kB / 0.6942 GB, free: 11.41 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002494/0.3805, allocations: 1.991 MB / 0.6962 GB, free: 10.48 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008537/0.3814, allocations: 446.1 kB / 0.6966 GB, free: 10.3 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004182/0.3818, allocations: 243.4 kB / 0.6968 GB, free: 10.2 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.994e-05/0.3819, allocations: 5.734 kB / 0.6969 GB, free: 10.2 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004905/0.3824, allocations: 258.3 kB / 0.6971 GB, free: 10.08 MB / 494.1 MB Notification: Performance of pre-optimization done (n=49): time 2.104e-06/0.3824, allocations: 1.125 kB / 0.6971 GB, free: 10.08 MB / 494.1 MB Notification: Performance of matching and sorting (n=49): time 0.001212/0.3836, allocations: 0.5858 MB / 0.6977 GB, free: 9.844 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.622e-05/0.3836, allocations: 58.81 kB / 0.6977 GB, free: 9.781 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004654/0.3841, allocations: 450 kB / 0.6982 GB, free: 9.559 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.335e-05/0.3842, allocations: 36.64 kB / 0.6982 GB, free: 9.52 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001678/0.3843, allocations: 322.1 kB / 0.6985 GB, free: 9.266 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.14e-05/0.3844, allocations: 163.1 kB / 0.6987 GB, free: 9.141 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001389/0.3846, allocations: 97.03 kB / 0.6987 GB, free: 9.082 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.09e-05/0.3847, allocations: 364.3 kB / 0.6991 GB, free: 8.746 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003815/0.385, allocations: 161.6 kB / 0.6992 GB, free: 8.691 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004066/0.3855, allocations: 256.1 kB / 0.6995 GB, free: 8.543 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007268/0.3862, allocations: 454.9 kB / 0.6999 GB, free: 8.281 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.367e-06/0.3862, allocations: 4.781 kB / 0.6999 GB, free: 8.277 MB / 494.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009744/0.3872, allocations: 0.5549 MB / 0.7005 GB, free: 8.023 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.658e-05/0.3872, allocations: 37.28 kB / 0.7005 GB, free: 7.988 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.304e-06/0.3872, allocations: 6.938 kB / 0.7005 GB, free: 7.984 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.854e-05/0.3873, allocations: 9.234 kB / 0.7005 GB, free: 7.984 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004922/0.3878, allocations: 112.3 kB / 0.7006 GB, free: 7.98 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.023e-05/0.3878, allocations: 3.844 kB / 0.7006 GB, free: 7.98 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003121/0.3881, allocations: 60.66 kB / 0.7007 GB, free: 7.949 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.056e-05/0.3881, allocations: 23.25 kB / 0.7007 GB, free: 7.941 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 9 (TSet.count,$PRE.TSet.count,TSet.T_start,$PRE.TSet.T_start,conNoRes.trigger.y,conWitRes.trigger.y,$whenCondition1,$whenCondition2,conNoRes.conPID.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 1 * 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.0001948/0.3883, allocations: 206.7 kB / 0.7009 GB, free: 7.773 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.543e-05/0.3884, allocations: 62.47 kB / 0.701 GB, free: 7.738 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001157/0.3885, allocations: 65.08 kB / 0.701 GB, free: 7.691 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.959e-06/0.3885, allocations: 5.094 kB / 0.701 GB, free: 7.691 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.64e-06/0.3886, allocations: 0 / 0.701 GB, free: 7.691 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.802e-06/0.3886, allocations: 3.578 kB / 0.701 GB, free: 7.691 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001541/0.3901, allocations: 1.18 MB / 0.7022 GB, free: 7.027 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.3901, allocations: 0 / 0.7022 GB, free: 7.027 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004764/0.3906, allocations: 93.39 kB / 0.7023 GB, free: 7.023 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.627e-06/0.3906, allocations: 2.219 kB / 0.7023 GB, free: 7.023 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.237e-05/0.3907, allocations: 12.86 kB / 0.7023 GB, free: 7.016 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.025e-06/0.3907, allocations: 2.094 kB / 0.7023 GB, free: 7.016 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.163e-06/0.3907, allocations: 0.875 kB / 0.7023 GB, free: 7.016 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001212/0.3919, allocations: 0.766 MB / 0.703 GB, free: 6.621 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001629/0.3921, allocations: 169 kB / 0.7032 GB, free: 6.469 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.325e-05/0.3921, allocations: 11.2 kB / 0.7032 GB, free: 6.461 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000291/0.3924, allocations: 24.91 kB / 0.7032 GB, free: 6.453 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.592e-05/0.3925, allocations: 33.22 kB / 0.7033 GB, free: 6.449 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.084e-05/0.3926, allocations: 18.53 kB / 0.7033 GB, free: 6.441 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0003073/0.3929, allocations: 309.4 kB / 0.7036 GB, free: 6.289 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3929, allocations: 0 / 0.7036 GB, free: 6.289 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0004083/0.3933, allocations: 146.6 kB / 0.7037 GB, free: 6.246 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (plaWitRes.cap.T,plaWitRes.cap1.T,conWitRes.conPID.I.y,plaNoRes.cap.T,plaNoRes.cap1.T,conNoRes.conPID.I.y) * Number of discrete variables: 6 (conWitRes.trigger.y,$whenCondition2,$whenCondition1,conNoRes.trigger.y,TSet.T_start,TSet.count) * Number of discrete states: 1 (TSet.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 9.941e-05/0.3934, allocations: 119 kB / 0.7038 GB, free: 6.148 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0008477/0.3943, allocations: 485.2 kB / 0.7043 GB, free: 5.949 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.3943, allocations: 0.8438 kB / 0.7043 GB, free: 5.949 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000405/0.3947, allocations: 214.1 kB / 0.7045 GB, free: 5.887 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000711/0.3954, allocations: 159.8 kB / 0.7047 GB, free: 5.836 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002237/0.3977, allocations: 1.332 MB / 0.706 GB, free: 5.078 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003185/0.398, allocations: 0.8867 MB / 0.7068 GB, free: 4.371 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.000247/0.3982, allocations: 68.34 kB / 0.7069 GB, free: 4.348 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000119/0.3984, allocations: 43.59 kB / 0.7069 GB, free: 4.336 MB / 494.1 MB Notification: Performance of SimCode: time 2.31e-07/0.3984, allocations: 0 / 0.7069 GB, free: 4.336 MB / 494.1 MB Notification: Performance of Templates: time 0.01103/0.4094, allocations: 5.918 MB / 0.7127 GB, free: 3.973 MB / 494.1 MB make -j1 -f BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.makefile (rm -f BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.sim & ./BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1)