Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.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(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_latest_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_latest_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.001107/0.001106, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001144/0.001144, allocations: 197.9 kB / 16.14 MB, free: 6.711 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: 222.9 MB / 239.8 MB, free: 4.637 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.741/2.741, allocations: 461.9 MB / 0.7342 GB, free: 15.05 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001444/0.001444, allocations: 64.27 kB / 0.8984 GB, free: 37.36 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2899/0.2914, allocations: 157.4 MB / 1.052 GB, free: 8.91 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.005351/0.2968, allocations: 4.153 MB / 1.056 GB, free: 4.734 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002435/0.2992, allocations: 1.293 MB / 1.057 GB, free: 3.434 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006138/0.2999, allocations: 27.88 kB / 1.057 GB, free: 3.406 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0004428/0.3003, allocations: 91.2 kB / 1.058 GB, free: 3.316 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0005538/0.3009, allocations: 150.8 kB / 1.058 GB, free: 3.168 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009147/0.3018, allocations: 382.8 kB / 1.058 GB, free: 2.797 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0009972/0.3028, allocations: 0.8734 MB / 1.059 GB, free: 1.922 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006391/0.3035, allocations: 426.1 kB / 1.059 GB, free: 1.484 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003859/0.3039, allocations: 274.7 kB / 1.06 GB, free: 1.215 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002848/0.3042, allocations: 306.3 kB / 1.06 GB, free: 0.9141 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 7.76e-05/0.3043, allocations: 44 kB / 1.06 GB, free: 0.8711 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 8.373e-05/0.3044, allocations: 40 kB / 1.06 GB, free: 0.832 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001028/0.3045, allocations: 127.5 kB / 1.06 GB, free: 0.707 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0002943/0.3048, allocations: 342 kB / 1.06 GB, free: 380 kB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0007056/0.3055, allocations: 0.9969 MB / 1.061 GB, free: 15.37 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.3055, allocations: 0 / 1.061 GB, free: 15.37 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.012e-06/0.3055, allocations: 0 / 1.061 GB, free: 15.37 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 8.586e-06/0.3055, allocations: 3.938 kB / 1.061 GB, free: 15.37 MB / 0.8262 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.001657/0.3072, allocations: 1.073 MB / 1.062 GB, free: 14.23 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.603e-05/0.3072, allocations: 12.03 kB / 1.062 GB, free: 14.22 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000123/0.3074, allocations: 83.91 kB / 1.062 GB, free: 14.14 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007318/0.3081, allocations: 0.5495 MB / 1.063 GB, free: 13.55 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.94e-05/0.3081, allocations: 41.69 kB / 1.063 GB, free: 13.52 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.337e-05/0.3082, allocations: 64.36 kB / 1.063 GB, free: 13.45 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001026/0.3093, allocations: 0.6078 MB / 1.064 GB, free: 12.82 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.056e-05/0.3093, allocations: 4 kB / 1.064 GB, free: 12.82 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.199e-05/0.3093, allocations: 24 kB / 1.064 GB, free: 12.79 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.196e-05/0.3094, allocations: 12 kB / 1.064 GB, free: 12.78 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009246/0.3103, allocations: 461 kB / 1.064 GB, free: 12.33 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002715/0.313, allocations: 2.012 MB / 1.066 GB, free: 10.25 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008597/0.3139, allocations: 445.6 kB / 1.067 GB, free: 9.805 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00042/0.3143, allocations: 242.1 kB / 1.067 GB, free: 9.566 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.63e-05/0.3144, allocations: 4.438 kB / 1.067 GB, free: 9.562 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005675/0.3149, allocations: 257.3 kB / 1.067 GB, free: 9.301 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=49): time 2.224e-06/0.315, allocations: 4 kB / 1.067 GB, free: 9.297 MB / 0.8262 GB Notification: Performance of matching and sorting (n=49): time 0.001237/0.3162, allocations: 0.585 MB / 1.068 GB, free: 8.707 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.813e-05/0.3163, allocations: 55.84 kB / 1.068 GB, free: 8.637 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004803/0.3167, allocations: 453.9 kB / 1.068 GB, free: 8.184 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.597e-05/0.3168, allocations: 33.7 kB / 1.068 GB, free: 8.145 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002075/0.317, allocations: 332.3 kB / 1.068 GB, free: 7.816 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001264/0.3171, allocations: 161.6 kB / 1.069 GB, free: 7.656 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001426/0.3173, allocations: 98.16 kB / 1.069 GB, free: 7.555 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001272/0.3174, allocations: 362.8 kB / 1.069 GB, free: 7.191 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003865/0.3178, allocations: 165 kB / 1.069 GB, free: 7.031 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004107/0.3182, allocations: 253.8 kB / 1.069 GB, free: 6.758 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007831/0.319, allocations: 452 kB / 1.07 GB, free: 6.285 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.919e-06/0.319, allocations: 4 kB / 1.07 GB, free: 6.281 MB / 0.8262 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001015/0.3201, allocations: 0.5624 MB / 1.07 GB, free: 5.707 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 3.703e-05/0.3201, allocations: 35.2 kB / 1.07 GB, free: 5.668 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.3201, allocations: 4 kB / 1.07 GB, free: 5.664 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.629e-05/0.3201, allocations: 4 kB / 1.07 GB, free: 5.66 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004886/0.3206, allocations: 112.1 kB / 1.071 GB, free: 5.551 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.389e-05/0.3207, allocations: 11.94 kB / 1.071 GB, free: 5.539 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003841/0.3211, allocations: 59.5 kB / 1.071 GB, free: 5.48 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.144e-05/0.3211, allocations: 23.98 kB / 1.071 GB, free: 5.457 MB / 0.8262 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.0002405/0.3213, allocations: 215.3 kB / 1.071 GB, free: 5.238 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.821e-05/0.3214, allocations: 59.28 kB / 1.071 GB, free: 5.18 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000116/0.3216, allocations: 73.45 kB / 1.071 GB, free: 5.109 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.831e-06/0.3216, allocations: 4 kB / 1.071 GB, free: 5.105 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.695e-06/0.3216, allocations: 0 / 1.071 GB, free: 5.105 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.25e-06/0.3216, allocations: 0 / 1.071 GB, free: 5.105 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001752/0.3233, allocations: 1.177 MB / 1.072 GB, free: 3.875 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.3234, allocations: 3.938 kB / 1.072 GB, free: 3.871 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004719/0.3238, allocations: 95.88 kB / 1.072 GB, free: 3.777 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.706e-06/0.3239, allocations: 4 kB / 1.072 GB, free: 3.773 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.007e-05/0.3239, allocations: 15.94 kB / 1.072 GB, free: 3.758 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.106e-06/0.3239, allocations: 0 / 1.072 GB, free: 3.758 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.017e-06/0.3239, allocations: 3.984 kB / 1.072 GB, free: 3.754 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001322/0.3252, allocations: 0.7602 MB / 1.073 GB, free: 2.973 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001796/0.3254, allocations: 164.4 kB / 1.073 GB, free: 2.793 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.06e-05/0.3255, allocations: 8 kB / 1.073 GB, free: 2.785 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003129/0.3258, allocations: 35.91 kB / 1.073 GB, free: 2.75 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.601e-05/0.3259, allocations: 36.39 kB / 1.073 GB, free: 2.715 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.683e-05/0.326, allocations: 12 kB / 1.073 GB, free: 2.703 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0003119/0.3263, allocations: 310.9 kB / 1.074 GB, free: 2.402 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3263, allocations: 0 / 1.074 GB, free: 2.402 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0004358/0.3267, allocations: 147.4 kB / 1.074 GB, free: 2.258 MB / 0.8262 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.000129/0.3269, allocations: 113.6 kB / 1.074 GB, free: 2.137 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0008946/0.3278, allocations: 481 kB / 1.074 GB, free: 1.656 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/0.3278, allocations: 4 kB / 1.074 GB, free: 1.652 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.000409/0.3282, allocations: 218.4 kB / 1.074 GB, free: 1.434 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007672/0.329, allocations: 147.1 kB / 1.075 GB, free: 1.289 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002686/0.3317, allocations: 1.601 MB / 1.076 GB, free: 15.66 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004341/0.3321, allocations: 0.8902 MB / 1.077 GB, free: 14.75 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0002985/0.3324, allocations: 68.58 kB / 1.077 GB, free: 14.68 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001151/0.3326, allocations: 39.44 kB / 1.077 GB, free: 14.64 MB / 0.8419 GB Notification: Performance of SimCode: time 2.7e-07/0.3326, allocations: 0 / 1.077 GB, free: 14.64 MB / 0.8419 GB Notification: Performance of Templates: time 0.01114/0.3437, allocations: 5.58 MB / 1.083 GB, free: 9.137 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.makefile (rm -f Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.sim & ./Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_Continuous_Examples_LimPIDWithReset.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches