Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.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/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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(Buildings.Controls.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TSet.y|plaWitRes.temSen.T|plaNoRes.temSen.T|conWitRes.conPID.trigger|conWitRes.conPID.controlError|conNoRes.conPID.controlError",fileNamePrefix="Buildings_10_Buildings.Controls.Continuous.Examples.LimPIDWithReset") translateModel(Buildings.Controls.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TSet.y|plaWitRes.temSen.T|plaNoRes.temSen.T|conWitRes.conPID.trigger|conWitRes.conPID.controlError|conNoRes.conPID.controlError",fileNamePrefix="Buildings_10_Buildings.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.001236/0.001236, allocations: 97.56 kB / 15.36 MB, free: 0.7344 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.01013/0.01013, allocations: 169.6 kB / 16.27 MB, free: 6.652 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.399/1.399, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.709/2.709, allocations: 437.8 MB / 0.7121 GB, free: 6.953 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003631/0.0003631, allocations: 8 kB / 0.8728 GB, free: 3.293 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7839/0.7843, allocations: 153.8 MB / 1.023 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.004658/0.789, allocations: 3.728 MB / 1.027 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.00277/0.7918, allocations: 1.266 MB / 1.028 GB, free: 10.81 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007584/0.7926, allocations: 27.88 kB / 1.028 GB, free: 10.79 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0004245/0.793, allocations: 87.22 kB / 1.028 GB, free: 10.7 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0006651/0.7937, allocations: 154.8 kB / 1.028 GB, free: 10.55 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.001083/0.7948, allocations: 375.4 kB / 1.029 GB, free: 10.18 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.001105/0.7959, allocations: 0.8888 MB / 1.029 GB, free: 9.293 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000599/0.7965, allocations: 426.1 kB / 1.03 GB, free: 8.855 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003002/0.7968, allocations: 230.7 kB / 1.03 GB, free: 8.629 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003027/0.7972, allocations: 254.4 kB / 1.03 GB, free: 8.379 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 6.122e-05/0.7972, allocations: 24 kB / 1.03 GB, free: 8.355 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 6.083e-05/0.7973, allocations: 24 kB / 1.03 GB, free: 8.332 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 9.518e-05/0.7974, allocations: 111.3 kB / 1.03 GB, free: 8.223 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0002753/0.7977, allocations: 323.8 kB / 1.031 GB, free: 7.898 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0007988/0.7985, allocations: 0.9631 MB / 1.032 GB, free: 6.934 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.7985, allocations: 0 / 1.032 GB, free: 6.934 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.434e-06/0.7985, allocations: 0 / 1.032 GB, free: 6.934 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 8.496e-06/0.7985, allocations: 0 / 1.032 GB, free: 6.934 MB / 0.7794 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.001646/0.8002, allocations: 0.9408 MB / 1.033 GB, free: 5.938 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.726e-05/0.8002, allocations: 15.97 kB / 1.033 GB, free: 5.922 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001569/0.8004, allocations: 87.91 kB / 1.033 GB, free: 5.836 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008262/0.8012, allocations: 0.5533 MB / 1.033 GB, free: 5.238 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.196e-05/0.8013, allocations: 45.69 kB / 1.033 GB, free: 5.195 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001036/0.8014, allocations: 56.38 kB / 1.033 GB, free: 5.141 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001117/0.8025, allocations: 0.6156 MB / 1.034 GB, free: 4.5 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.921e-05/0.8025, allocations: 8 kB / 1.034 GB, free: 4.492 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.351e-05/0.8026, allocations: 20 kB / 1.034 GB, free: 4.473 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.433e-05/0.8026, allocations: 16 kB / 1.034 GB, free: 4.457 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009672/0.8036, allocations: 469 kB / 1.034 GB, free: 4 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002813/0.8064, allocations: 2.02 MB / 1.036 GB, free: 1.906 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000924/0.8074, allocations: 460.5 kB / 1.037 GB, free: 1.453 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004565/0.8078, allocations: 250.6 kB / 1.037 GB, free: 1.207 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 3.797e-05/0.8079, allocations: 8.422 kB / 1.037 GB, free: 1.199 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006497/0.8085, allocations: 277.2 kB / 1.037 GB, free: 0.9141 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=49): time 2.645e-06/0.8085, allocations: 0 / 1.037 GB, free: 0.9141 MB / 0.7794 GB Notification: Performance of matching and sorting (n=49): time 0.001306/0.8098, allocations: 0.5922 MB / 1.038 GB, free: 324 kB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.454e-05/0.8099, allocations: 63.78 kB / 1.038 GB, free: 248 kB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005119/0.8104, allocations: 450 kB / 1.038 GB, free: 15.79 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 3.97e-05/0.8105, allocations: 33.7 kB / 1.038 GB, free: 15.75 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002396/0.8107, allocations: 321 kB / 1.039 GB, free: 15.43 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001263/0.8109, allocations: 173.4 kB / 1.039 GB, free: 15.27 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.641e-05/0.8109, allocations: 53.69 kB / 1.039 GB, free: 15.21 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001419/0.8111, allocations: 362.8 kB / 1.039 GB, free: 14.84 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003832/0.8115, allocations: 173 kB / 1.039 GB, free: 14.68 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004449/0.8119, allocations: 257.8 kB / 1.04 GB, free: 14.4 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008399/0.8128, allocations: 460 kB / 1.04 GB, free: 13.92 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.8128, allocations: 4 kB / 1.04 GB, free: 13.91 MB / 0.795 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.00107/0.8139, allocations: 0.5743 MB / 1.041 GB, free: 13.33 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 4.711e-05/0.8139, allocations: 33.64 kB / 1.041 GB, free: 13.29 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.838e-06/0.8139, allocations: 4 kB / 1.041 GB, free: 13.29 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.733e-05/0.814, allocations: 4 kB / 1.041 GB, free: 13.28 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004965/0.8145, allocations: 115.8 kB / 1.041 GB, free: 13.17 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.188e-05/0.8145, allocations: 4 kB / 1.041 GB, free: 13.16 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003726/0.8149, allocations: 71.56 kB / 1.041 GB, free: 13.09 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.937e-05/0.8149, allocations: 23.98 kB / 1.041 GB, free: 13.07 MB / 0.795 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.00029/0.8152, allocations: 208 kB / 1.041 GB, free: 12.86 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.176e-05/0.8153, allocations: 55.28 kB / 1.041 GB, free: 12.8 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00014/0.8154, allocations: 69.58 kB / 1.041 GB, free: 12.74 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.661e-06/0.8154, allocations: 4 kB / 1.041 GB, free: 12.73 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.416e-06/0.8155, allocations: 4 kB / 1.041 GB, free: 12.73 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.813e-06/0.8155, allocations: 0 / 1.041 GB, free: 12.73 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00179/0.8173, allocations: 1.189 MB / 1.042 GB, free: 11.48 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.8173, allocations: 0 / 1.042 GB, free: 11.48 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004501/0.8177, allocations: 99.88 kB / 1.043 GB, free: 11.38 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.238e-06/0.8177, allocations: 0 / 1.043 GB, free: 11.38 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.501e-05/0.8178, allocations: 12 kB / 1.043 GB, free: 11.37 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.021e-06/0.8178, allocations: 7.984 kB / 1.043 GB, free: 11.36 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.8178, allocations: 4 kB / 1.043 GB, free: 11.36 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001385/0.8192, allocations: 0.7835 MB / 1.043 GB, free: 10.56 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000195/0.8194, allocations: 168.3 kB / 1.043 GB, free: 10.38 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.5e-05/0.8195, allocations: 12 kB / 1.043 GB, free: 10.37 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003116/0.8198, allocations: 31.97 kB / 1.044 GB, free: 10.34 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000104/0.8199, allocations: 32.39 kB / 1.044 GB, free: 10.3 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.61e-05/0.8199, allocations: 12 kB / 1.044 GB, free: 10.29 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0003548/0.8203, allocations: 314.9 kB / 1.044 GB, free: 9.988 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.5e-07/0.8203, allocations: 3.938 kB / 1.044 GB, free: 9.984 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0004696/0.8208, allocations: 143.4 kB / 1.044 GB, free: 9.844 MB / 0.795 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.000149/0.8209, allocations: 119.1 kB / 1.044 GB, free: 9.719 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.001051/0.822, allocations: 497 kB / 1.045 GB, free: 9.215 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 4.709e-06/0.822, allocations: 4 kB / 1.045 GB, free: 9.211 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0004581/0.8225, allocations: 218.9 kB / 1.045 GB, free: 9 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008262/0.8233, allocations: 148.4 kB / 1.045 GB, free: 8.859 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002935/0.8263, allocations: 1.684 MB / 1.047 GB, free: 7.141 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005092/0.8268, allocations: 0.8863 MB / 1.047 GB, free: 6.23 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0003098/0.8271, allocations: 68.58 kB / 1.048 GB, free: 6.16 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001203/0.8272, allocations: 39.44 kB / 1.048 GB, free: 6.125 MB / 0.795 GB Notification: Performance of SimCode: time 5.51e-07/0.8273, allocations: 0 / 1.048 GB, free: 6.125 MB / 0.795 GB Notification: Performance of Templates: time 0.01163/0.8389, allocations: 5.529 MB / 1.053 GB, free: 0.668 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Controls.Continuous.Examples.LimPIDWithReset.makefile (rm -f Buildings_10_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo Buildings_10_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/Buildings_10_Buildings.Controls.Continuous.Examples.LimPIDWithReset.sim & ./Buildings_10_Buildings.Controls.Continuous.Examples.LimPIDWithReset -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.Continuous.Examples.LimPIDWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_Continuous_Examples_LimPIDWithReset.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.Continuous.Examples.LimPIDWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches