Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_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.001315/0.001315, allocations: 105.7 kB / 16.27 MB, free: 6.414 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.001259/0.001258, allocations: 189.7 kB / 17.2 MB, free: 5.953 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.415/1.415, allocations: 222.9 MB / 240.9 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.733/2.733, allocations: 469.8 MB / 0.743 GB, free: 3.383 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001942/0.001942, allocations: 75.34 kB / 0.9092 GB, free: 13.87 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3817/0.3837, allocations: 159.1 MB / 1.065 GB, free: 14.75 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.007526/0.3913, allocations: 4.122 MB / 1.069 GB, free: 10.6 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.003621/0.3949, allocations: 1.332 MB / 1.07 GB, free: 9.262 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009988/0.396, allocations: 23.88 kB / 1.07 GB, free: 9.238 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0006424/0.3966, allocations: 126.7 kB / 1.07 GB, free: 9.113 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0009252/0.3976, allocations: 182.4 kB / 1.07 GB, free: 8.934 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.001367/0.399, allocations: 409.1 kB / 1.071 GB, free: 8.539 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.001626/0.4006, allocations: 0.9516 MB / 1.072 GB, free: 7.586 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009501/0.4016, allocations: 466.1 kB / 1.072 GB, free: 7.109 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006706/0.4023, allocations: 334.7 kB / 1.072 GB, free: 6.781 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006326/0.4029, allocations: 326.4 kB / 1.073 GB, free: 6.461 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.0001708/0.4031, allocations: 95.94 kB / 1.073 GB, free: 6.367 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000141/0.4033, allocations: 92 kB / 1.073 GB, free: 6.277 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.000182/0.4034, allocations: 179.4 kB / 1.073 GB, free: 6.102 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0004159/0.4039, allocations: 386.1 kB / 1.073 GB, free: 5.723 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.001171/0.405, allocations: 1.044 MB / 1.074 GB, free: 4.676 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 6.352e-06/0.4051, allocations: 0 / 1.074 GB, free: 4.676 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.164e-06/0.4051, allocations: 8 kB / 1.074 GB, free: 4.668 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 1.32e-05/0.4051, allocations: 0 / 1.074 GB, free: 4.668 MB / 0.8419 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.00208/0.4072, allocations: 1.065 MB / 1.075 GB, free: 3.543 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.824e-05/0.4072, allocations: 8.031 kB / 1.075 GB, free: 3.535 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001553/0.4074, allocations: 87.91 kB / 1.076 GB, free: 3.449 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009066/0.4083, allocations: 0.5495 MB / 1.076 GB, free: 2.863 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.41e-05/0.4084, allocations: 45.69 kB / 1.076 GB, free: 2.82 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.999e-05/0.4085, allocations: 60.38 kB / 1.076 GB, free: 2.762 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001166/0.4097, allocations: 0.6001 MB / 1.077 GB, free: 2.137 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.09e-05/0.4097, allocations: 3.938 kB / 1.077 GB, free: 2.133 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.073e-05/0.4098, allocations: 32 kB / 1.077 GB, free: 2.102 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.761e-05/0.4098, allocations: 15.98 kB / 1.077 GB, free: 2.086 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001022/0.4108, allocations: 457 kB / 1.077 GB, free: 1.637 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.644/1.055, allocations: 2.003 MB / 1.079 GB, free: 21.1 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001132/1.056, allocations: 451.6 kB / 1.08 GB, free: 21.07 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005087/1.057, allocations: 241 kB / 1.08 GB, free: 21.06 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 4.932e-05/1.057, allocations: 5.625 kB / 1.08 GB, free: 21.06 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006993/1.057, allocations: 262.6 kB / 1.08 GB, free: 21.01 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=49): time 4.329e-06/1.057, allocations: 5.484 kB / 1.08 GB, free: 21.01 MB / 0.8419 GB Notification: Performance of matching and sorting (n=49): time 0.001464/1.059, allocations: 0.5905 MB / 1.081 GB, free: 20.97 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.955e-05/1.059, allocations: 58.28 kB / 1.081 GB, free: 20.91 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005987/1.059, allocations: 448 kB / 1.081 GB, free: 20.79 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 4.278e-05/1.059, allocations: 37.62 kB / 1.081 GB, free: 20.75 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002483/1.06, allocations: 323.2 kB / 1.082 GB, free: 20.55 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001173/1.06, allocations: 162.7 kB / 1.082 GB, free: 20.42 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001549/1.06, allocations: 95.19 kB / 1.082 GB, free: 20.37 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001082/1.06, allocations: 365.8 kB / 1.082 GB, free: 20.03 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003924/1.061, allocations: 164.7 kB / 1.082 GB, free: 19.98 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004163/1.061, allocations: 249.6 kB / 1.083 GB, free: 19.83 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007931/1.062, allocations: 454.6 kB / 1.083 GB, free: 19.57 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.887e-06/1.062, allocations: 1.219 kB / 1.083 GB, free: 19.57 MB / 0.8419 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001161/1.063, allocations: 0.5633 MB / 1.083 GB, free: 19.32 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 3.891e-05/1.063, allocations: 34.88 kB / 1.084 GB, free: 19.29 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.908e-06/1.063, allocations: 2.375 kB / 1.084 GB, free: 19.29 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.394e-05/1.063, allocations: 4.156 kB / 1.084 GB, free: 19.29 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005135/1.064, allocations: 113.7 kB / 1.084 GB, free: 19.27 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.316e-05/1.064, allocations: 8.438 kB / 1.084 GB, free: 19.27 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003568/1.064, allocations: 55.88 kB / 1.084 GB, free: 19.24 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.124e-05/1.064, allocations: 18.58 kB / 1.084 GB, free: 19.24 MB / 0.8419 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.0002799/1.064, allocations: 215.6 kB / 1.084 GB, free: 19.06 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.638e-05/1.064, allocations: 58.25 kB / 1.084 GB, free: 19.03 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001319/1.064, allocations: 67.22 kB / 1.084 GB, free: 18.98 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.017e-06/1.065, allocations: 6.141 kB / 1.084 GB, free: 18.98 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.184e-05/1.065, allocations: 0.9062 kB / 1.084 GB, free: 18.98 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.005e-05/1.065, allocations: 3.047 kB / 1.084 GB, free: 18.98 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0018/1.066, allocations: 1.18 MB / 1.085 GB, free: 18.32 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.067e-06/1.066, allocations: 0.6562 kB / 1.085 GB, free: 18.32 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004674/1.067, allocations: 99.42 kB / 1.085 GB, free: 18.31 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.971e-06/1.067, allocations: 2.312 kB / 1.085 GB, free: 18.31 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.846e-05/1.067, allocations: 11.5 kB / 1.085 GB, free: 18.3 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.548e-06/1.067, allocations: 2.922 kB / 1.085 GB, free: 18.3 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/1.067, allocations: 0 / 1.085 GB, free: 18.3 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001334/1.068, allocations: 0.7652 MB / 1.086 GB, free: 17.9 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001678/1.068, allocations: 168.6 kB / 1.086 GB, free: 17.75 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.643e-05/1.069, allocations: 16.39 kB / 1.086 GB, free: 17.74 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002863/1.069, allocations: 24.67 kB / 1.086 GB, free: 17.73 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001155/1.069, allocations: 37.11 kB / 1.086 GB, free: 17.73 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.916e-05/1.069, allocations: 14.3 kB / 1.086 GB, free: 17.72 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0003748/1.069, allocations: 309.1 kB / 1.087 GB, free: 17.57 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.1e-07/1.069, allocations: 1.344 kB / 1.087 GB, free: 17.57 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0005054/1.07, allocations: 140.6 kB / 1.087 GB, free: 17.53 MB / 0.8419 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.0001455/1.07, allocations: 110.4 kB / 1.087 GB, free: 17.44 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001242/1.071, allocations: 0.5016 MB / 1.087 GB, free: 17.21 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.005e-06/1.071, allocations: 0 / 1.087 GB, free: 17.21 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.000447/1.072, allocations: 220.4 kB / 1.088 GB, free: 17.14 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008269/1.073, allocations: 154.4 kB / 1.088 GB, free: 17.09 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003025/1.076, allocations: 1.388 MB / 1.089 GB, free: 16.3 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005045/1.076, allocations: 0.8922 MB / 1.09 GB, free: 15.59 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001874/1.076, allocations: 43.14 kB / 1.09 GB, free: 15.58 MB / 0.8419 GB Notification: Performance of SimCode: time 1.112e-06/1.076, allocations: 0.8125 kB / 1.09 GB, free: 15.58 MB / 0.8419 GB Notification: Performance of Templates: time 0.02171/1.098, allocations: 7.603 MB / 1.097 GB, free: 14.69 MB / 0.8419 GB make -j1 -f Buildings_11_Buildings.Controls.Continuous.Examples.LimPIDWithReset.makefile (rm -f Buildings_11_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo Buildings_11_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/Buildings_11_Buildings.Controls.Continuous.Examples.LimPIDWithReset.sim & ./Buildings_11_Buildings.Controls.Continuous.Examples.LimPIDWithReset -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.Continuous.Examples.LimPIDWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_Continuous_Examples_LimPIDWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.Continuous.Examples.LimPIDWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches