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.001346/0.001346, allocations: 104.2 kB / 16.4 MB, free: 6.465 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.001343/0.001343, allocations: 192.2 kB / 17.34 MB, free: 5.719 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.308/1.308, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002131/0.002131, allocations: 287.5 kB / 291.5 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9024/0.9024, allocations: 169.3 MB / 0.499 GB, free: 4.43 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001745/0.001745, allocations: 99.84 kB / 0.6821 GB, free: 6.996 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3936/0.3953, allocations: 86.98 MB / 0.767 GB, free: 3.93 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset): time 0.005397/0.4008, allocations: 4.115 MB / 0.771 GB, free: 15.79 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.002306/0.4031, allocations: 1.325 MB / 0.7723 GB, free: 14.46 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003176/0.4034, allocations: 19.94 kB / 0.7723 GB, free: 14.44 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0003148/0.4038, allocations: 126.7 kB / 0.7725 GB, free: 14.31 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0003176/0.4041, allocations: 182.4 kB / 0.7726 GB, free: 14.13 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007962/0.4049, allocations: 425.4 kB / 0.773 GB, free: 13.72 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0008122/0.4057, allocations: 0.9593 MB / 0.774 GB, free: 12.76 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005909/0.4063, allocations: 469.7 kB / 0.7744 GB, free: 12.29 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003225/0.4067, allocations: 330.8 kB / 0.7747 GB, free: 11.96 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003144/0.407, allocations: 338.3 kB / 0.7751 GB, free: 11.63 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0001188/0.4071, allocations: 92 kB / 0.7752 GB, free: 11.54 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001101/0.4072, allocations: 92 kB / 0.7752 GB, free: 11.45 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001367/0.4074, allocations: 171.5 kB / 0.7754 GB, free: 11.29 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0002999/0.4077, allocations: 394 kB / 0.7758 GB, free: 10.9 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0008935/0.4086, allocations: 1.061 MB / 0.7768 GB, free: 9.836 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.4086, allocations: 0 / 0.7768 GB, free: 9.836 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.293e-06/0.4086, allocations: 0 / 0.7768 GB, free: 9.836 MB / 0.545 GB Notification: Performance of Transformations before backend: time 9.718e-06/0.4086, allocations: 0 / 0.7768 GB, free: 9.836 MB / 0.545 GB 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.001685/0.4103, allocations: 1.085 MB / 0.7779 GB, free: 8.691 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.635e-05/0.4103, allocations: 12.03 kB / 0.7779 GB, free: 8.68 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001263/0.4105, allocations: 80 kB / 0.778 GB, free: 8.602 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008596/0.4113, allocations: 0.5651 MB / 0.7785 GB, free: 8 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.969e-05/0.4114, allocations: 41.69 kB / 0.7786 GB, free: 7.961 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.826e-05/0.4115, allocations: 60.38 kB / 0.7786 GB, free: 7.902 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001014/0.4125, allocations: 0.6156 MB / 0.7792 GB, free: 7.266 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.172e-05/0.4125, allocations: 3.906 kB / 0.7792 GB, free: 7.262 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.127e-05/0.4126, allocations: 20 kB / 0.7792 GB, free: 7.242 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.17e-05/0.4126, allocations: 16 kB / 0.7793 GB, free: 7.227 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009577/0.4136, allocations: 464.9 kB / 0.7797 GB, free: 6.77 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00262/0.4162, allocations: 1.989 MB / 0.7816 GB, free: 4.711 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008857/0.4171, allocations: 441 kB / 0.7821 GB, free: 4.27 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004354/0.4175, allocations: 242.1 kB / 0.7823 GB, free: 4.031 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 3.746e-05/0.4176, allocations: 4.438 kB / 0.7823 GB, free: 4.027 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004959/0.4181, allocations: 265.2 kB / 0.7825 GB, free: 3.758 MB / 0.545 GB Notification: Performance of pre-optimization done (n=49): time 2.124e-06/0.4181, allocations: 0 / 0.7825 GB, free: 3.758 MB / 0.545 GB Notification: Performance of matching and sorting (n=49): time 0.001211/0.4193, allocations: 0.5843 MB / 0.7831 GB, free: 3.172 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.916e-05/0.4194, allocations: 59.84 kB / 0.7832 GB, free: 3.102 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004587/0.4198, allocations: 442.8 kB / 0.7836 GB, free: 2.66 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 4.475e-05/0.4199, allocations: 33.7 kB / 0.7836 GB, free: 2.621 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.000217/0.4201, allocations: 328.2 kB / 0.7839 GB, free: 2.293 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.000123/0.4202, allocations: 169.5 kB / 0.7841 GB, free: 2.125 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001488/0.4204, allocations: 98.23 kB / 0.7842 GB, free: 2.02 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001496/0.4205, allocations: 362.8 kB / 0.7845 GB, free: 1.656 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003636/0.4209, allocations: 161 kB / 0.7847 GB, free: 1.5 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004207/0.4213, allocations: 253.8 kB / 0.7849 GB, free: 1.227 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007705/0.4221, allocations: 459.9 kB / 0.7854 GB, free: 0.75 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.148e-06/0.4221, allocations: 4 kB / 0.7854 GB, free: 0.7461 MB / 0.545 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009806/0.4231, allocations: 0.5623 MB / 0.7859 GB, free: 172 kB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 3.328e-05/0.4232, allocations: 33.89 kB / 0.786 GB, free: 132 kB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.504e-06/0.4232, allocations: 8 kB / 0.786 GB, free: 124 kB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.569e-05/0.4232, allocations: 4 kB / 0.786 GB, free: 120 kB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004821/0.4237, allocations: 107.9 kB / 0.7861 GB, free: 12 kB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.266e-05/0.4237, allocations: 11.94 kB / 0.7861 GB, free: 0 / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003186/0.424, allocations: 51.73 kB / 0.7861 GB, free: 15.95 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.529e-05/0.4241, allocations: 20 kB / 0.7862 GB, free: 15.93 MB / 0.5606 GB 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.0002345/0.4243, allocations: 214.2 kB / 0.7864 GB, free: 15.71 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.472e-05/0.4244, allocations: 55.28 kB / 0.7864 GB, free: 15.65 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000127/0.4245, allocations: 69.58 kB / 0.7865 GB, free: 15.59 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.2e-06/0.4246, allocations: 4 kB / 0.7865 GB, free: 15.58 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.484e-06/0.4246, allocations: 4 kB / 0.7865 GB, free: 15.58 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.668e-06/0.4246, allocations: 3.984 kB / 0.7865 GB, free: 15.57 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001642/0.4262, allocations: 1.174 MB / 0.7876 GB, free: 14.35 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.364e-06/0.4262, allocations: 0 / 0.7876 GB, free: 14.35 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004778/0.4267, allocations: 95.83 kB / 0.7877 GB, free: 14.25 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.14e-06/0.4267, allocations: 4 kB / 0.7877 GB, free: 14.25 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.173e-05/0.4268, allocations: 15.98 kB / 0.7878 GB, free: 14.23 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.525e-06/0.4268, allocations: 0 / 0.7878 GB, free: 14.23 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.4268, allocations: 0 / 0.7878 GB, free: 14.23 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001288/0.4281, allocations: 0.7651 MB / 0.7885 GB, free: 13.45 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001803/0.4283, allocations: 168.3 kB / 0.7887 GB, free: 13.27 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.944e-05/0.4283, allocations: 12 kB / 0.7887 GB, free: 13.26 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002919/0.4286, allocations: 27.97 kB / 0.7887 GB, free: 13.23 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.731e-05/0.4287, allocations: 36.39 kB / 0.7887 GB, free: 13.2 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.419e-05/0.4288, allocations: 12 kB / 0.7887 GB, free: 13.18 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.000321/0.4291, allocations: 310.9 kB / 0.789 GB, free: 12.88 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4291, allocations: 0 / 0.789 GB, free: 12.88 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0004168/0.4295, allocations: 143.5 kB / 0.7892 GB, free: 12.74 MB / 0.5606 GB 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 0.0001313/0.4297, allocations: 113 kB / 0.7893 GB, free: 12.62 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0009052/0.4306, allocations: 485 kB / 0.7897 GB, free: 12.13 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.4306, allocations: 4 kB / 0.7898 GB, free: 12.12 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0004013/0.431, allocations: 214.4 kB / 0.79 GB, free: 11.91 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007274/0.4317, allocations: 157.8 kB / 0.7901 GB, free: 11.77 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00245/0.4342, allocations: 1.37 MB / 0.7914 GB, free: 10.36 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004188/0.4346, allocations: 0.8821 MB / 0.7923 GB, free: 9.449 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001464/0.4348, allocations: 51.42 kB / 0.7924 GB, free: 9.402 MB / 0.5606 GB Notification: Performance of SimCode: time 3.51e-07/0.4348, allocations: 0 / 0.7924 GB, free: 9.402 MB / 0.5606 GB Notification: Performance of Templates: time 0.01002/0.4448, allocations: 7.664 MB / 0.7998 GB, free: 1.785 MB / 0.5606 GB 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 -lv LOG_STATS > BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1)