Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.001429/0.001429, allocations: 108.9 kB / 16.41 MB, free: 6.449 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.001442/0.001442, allocations: 185.5 kB / 17.34 MB, free: 5.723 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.388/1.388, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.294/2.294, allocations: 390.3 MB / 0.6655 GB, free: 0.6484 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001494/0.001494, allocations: 67.91 kB / 0.9515 GB, free: 7.668 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.084/1.085, allocations: 140.4 MB / 1.089 GB, free: 5.512 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.005295/1.091, allocations: 4.129 MB / 1.093 GB, free: 2.566 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002843/1.093, allocations: 1.316 MB / 1.094 GB, free: 1.598 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006007/1.094, allocations: 25.06 kB / 1.094 GB, free: 1.59 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0004003/1.094, allocations: 128 kB / 1.094 GB, free: 1.5 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0004238/1.095, allocations: 178.8 kB / 1.094 GB, free: 1.363 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.001068/1.096, allocations: 424.9 kB / 1.095 GB, free: 1.105 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.001137/1.097, allocations: 0.9538 MB / 1.096 GB, free: 0.5938 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007193/1.098, allocations: 462.4 kB / 1.096 GB, free: 352 kB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004297/1.098, allocations: 333.3 kB / 1.096 GB, free: 168 kB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004479/1.099, allocations: 336.3 kB / 1.097 GB, free: 15.97 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.0001774/1.099, allocations: 91.53 kB / 1.097 GB, free: 15.97 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001723/1.099, allocations: 90.16 kB / 1.097 GB, free: 15.97 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0001835/1.099, allocations: 180.4 kB / 1.097 GB, free: 15.84 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.0004165/1.1, allocations: 387.2 kB / 1.097 GB, free: 15.57 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.001417/1.101, allocations: 1.068 MB / 1.098 GB, free: 15.12 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/1.101, allocations: 0 / 1.098 GB, free: 15.12 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.463e-06/1.101, allocations: 0 / 1.098 GB, free: 15.12 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 1.73e-05/1.101, allocations: 1.125 kB / 1.098 GB, free: 15.12 MB / 0.8731 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.002275/1.104, allocations: 1.075 MB / 1.099 GB, free: 14.35 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 5.819e-05/1.104, allocations: 9.25 kB / 1.099 GB, free: 14.35 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001895/1.104, allocations: 86.88 kB / 1.1 GB, free: 14.31 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001106/1.105, allocations: 0.5651 MB / 1.1 GB, free: 13.9 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.655e-05/1.105, allocations: 46.05 kB / 1.1 GB, free: 13.88 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001189/1.105, allocations: 59.73 kB / 1.1 GB, free: 13.86 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001318/1.106, allocations: 0.6117 MB / 1.101 GB, free: 13.56 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.599e-05/1.106, allocations: 1.969 kB / 1.101 GB, free: 13.56 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.922e-05/1.107, allocations: 21.47 kB / 1.101 GB, free: 13.54 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.009e-05/1.107, allocations: 13.84 kB / 1.101 GB, free: 13.54 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001119/1.108, allocations: 462.5 kB / 1.101 GB, free: 13.38 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003444/1.111, allocations: 1.995 MB / 1.103 GB, free: 12.13 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001041/1.112, allocations: 448 kB / 1.104 GB, free: 11.95 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005776/1.113, allocations: 249 kB / 1.104 GB, free: 11.84 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 5.3e-05/1.113, allocations: 6.141 kB / 1.104 GB, free: 11.84 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006942/1.114, allocations: 261.6 kB / 1.104 GB, free: 11.71 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=49): time 2.515e-06/1.114, allocations: 0 / 1.104 GB, free: 11.71 MB / 0.8731 GB Notification: Performance of matching and sorting (n=49): time 0.00141/1.115, allocations: 0.5861 MB / 1.105 GB, free: 11.46 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.388e-05/1.115, allocations: 58.53 kB / 1.105 GB, free: 11.4 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005959/1.116, allocations: 445.9 kB / 1.105 GB, free: 11.18 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 4.647e-05/1.116, allocations: 36.73 kB / 1.105 GB, free: 11.14 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003313/1.116, allocations: 326.1 kB / 1.106 GB, free: 10.89 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001541/1.116, allocations: 159.5 kB / 1.106 GB, free: 10.76 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001646/1.116, allocations: 95.77 kB / 1.106 GB, free: 10.71 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001752/1.117, allocations: 369.5 kB / 1.106 GB, free: 10.37 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004836/1.117, allocations: 166 kB / 1.106 GB, free: 10.31 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004639/1.117, allocations: 252.3 kB / 1.107 GB, free: 10.16 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008216/1.118, allocations: 448.2 kB / 1.107 GB, free: 9.891 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.358e-06/1.118, allocations: 1.344 kB / 1.107 GB, free: 9.891 MB / 0.8731 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001109/1.119, allocations: 0.5597 MB / 1.107 GB, free: 9.625 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 4.565e-05/1.12, allocations: 37.25 kB / 1.108 GB, free: 9.59 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.937e-06/1.12, allocations: 2.375 kB / 1.108 GB, free: 9.59 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.163e-05/1.12, allocations: 5.688 kB / 1.108 GB, free: 9.59 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005059/1.12, allocations: 117 kB / 1.108 GB, free: 9.574 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.224e-05/1.12, allocations: 4.828 kB / 1.108 GB, free: 9.574 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003725/1.12, allocations: 60.89 kB / 1.108 GB, free: 9.539 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.164e-05/1.121, allocations: 18.23 kB / 1.108 GB, free: 9.535 MB / 0.8731 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.0002904/1.121, allocations: 214 kB / 1.108 GB, free: 9.355 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.34e-05/1.121, allocations: 58.09 kB / 1.108 GB, free: 9.324 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001461/1.121, allocations: 60.69 kB / 1.108 GB, free: 9.285 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.753e-06/1.121, allocations: 5.156 kB / 1.108 GB, free: 9.285 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.152e-05/1.121, allocations: 1.062 kB / 1.108 GB, free: 9.285 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.498e-06/1.121, allocations: 2.625 kB / 1.108 GB, free: 9.285 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002072/1.123, allocations: 1.186 MB / 1.109 GB, free: 8.598 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/1.123, allocations: 1.531 kB / 1.109 GB, free: 8.598 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004999/1.124, allocations: 93.22 kB / 1.109 GB, free: 8.59 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.206e-06/1.124, allocations: 2.234 kB / 1.109 GB, free: 8.59 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.67e-05/1.124, allocations: 16.83 kB / 1.109 GB, free: 8.578 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.36e-06/1.124, allocations: 5.797 kB / 1.109 GB, free: 8.574 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.669e-06/1.124, allocations: 5.562 kB / 1.109 GB, free: 8.57 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001464/1.125, allocations: 0.7544 MB / 1.11 GB, free: 8.176 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002175/1.125, allocations: 172.2 kB / 1.11 GB, free: 8.02 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.828e-05/1.126, allocations: 16.23 kB / 1.11 GB, free: 8.008 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002938/1.126, allocations: 28.69 kB / 1.11 GB, free: 7.996 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000117/1.126, allocations: 36.44 kB / 1.11 GB, free: 7.988 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.131e-05/1.126, allocations: 15.5 kB / 1.11 GB, free: 7.984 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0004059/1.126, allocations: 308.3 kB / 1.111 GB, free: 7.832 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.1e-07/1.126, allocations: 0 / 1.111 GB, free: 7.832 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0005208/1.127, allocations: 142.3 kB / 1.111 GB, free: 7.793 MB / 0.8731 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.0001522/1.127, allocations: 117.2 kB / 1.111 GB, free: 7.688 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001014/1.128, allocations: 482.1 kB / 1.111 GB, free: 7.488 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/1.128, allocations: 0 / 1.111 GB, free: 7.488 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.000441/1.129, allocations: 220.2 kB / 1.112 GB, free: 7.406 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008398/1.129, allocations: 154.1 kB / 1.112 GB, free: 7.355 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003055/1.133, allocations: 1.357 MB / 1.113 GB, free: 6.559 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005907/1.133, allocations: 0.8911 MB / 1.114 GB, free: 5.848 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001671/1.133, allocations: 43.92 kB / 1.114 GB, free: 5.84 MB / 0.8731 GB Notification: Performance of SimCode: time 2.41e-07/1.133, allocations: 4 kB / 1.114 GB, free: 5.836 MB / 0.8731 GB Notification: Performance of Templates: time 0.01678/1.15, allocations: 7.66 MB / 1.121 GB, free: 4.914 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset.makefile (rm -f Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset.sim & ./Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_Continuous_Examples_LimPIDWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches