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: "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="Buildings_11_Buildings_Controls_Continuous_Examples_LimPIDWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="Buildings_11_Buildings_Controls_Continuous_Examples_LimPIDWithReset",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008504/0.008504, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.002324/0.002324, allocations: 202.6 kB / 16.68 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.495/2.495, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 3.102/3.102, allocations: 469.8 MB / 0.7425 GB, free: 7.332 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001927/0.001928, allocations: 64.12 kB / 1.065 GB, free: 13.62 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2929/0.2948, allocations: 159.1 MB / 1.22 GB, free: 14.36 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.00543/0.3003, allocations: 4.13 MB / 1.224 GB, free: 10.2 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.002333/0.3026, allocations: 1.321 MB / 1.225 GB, free: 8.871 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003213/0.303, allocations: 19.94 kB / 1.225 GB, free: 8.852 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0003321/0.3033, allocations: 138.6 kB / 1.226 GB, free: 8.715 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0003579/0.3037, allocations: 174.4 kB / 1.226 GB, free: 8.543 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009014/0.3046, allocations: 426.9 kB / 1.226 GB, free: 8.129 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.001005/0.3056, allocations: 0.9592 MB / 1.227 GB, free: 7.164 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006482/0.3063, allocations: 458.1 kB / 1.228 GB, free: 6.695 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000373/0.3067, allocations: 330.7 kB / 1.228 GB, free: 6.371 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003776/0.307, allocations: 330.4 kB / 1.228 GB, free: 6.047 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.0001237/0.3072, allocations: 92 kB / 1.228 GB, free: 5.957 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001256/0.3073, allocations: 92 kB / 1.228 GB, free: 5.867 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0001611/0.3075, allocations: 183.4 kB / 1.229 GB, free: 5.688 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.000365/0.3078, allocations: 394 kB / 1.229 GB, free: 5.301 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.001086/0.3089, allocations: 1.066 MB / 1.23 GB, free: 4.23 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.3089, allocations: 0 / 1.23 GB, free: 4.23 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.333e-06/0.309, allocations: 0 / 1.23 GB, free: 4.23 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.098e-05/0.309, allocations: 0 / 1.23 GB, free: 4.23 MB / 0.9825 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.001891/0.3109, allocations: 1.1 MB / 1.231 GB, free: 3.07 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.986e-05/0.3109, allocations: 12.03 kB / 1.231 GB, free: 3.059 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001282/0.3111, allocations: 106.7 kB / 1.231 GB, free: 2.945 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001334/0.3112, allocations: 84.42 kB / 1.231 GB, free: 2.863 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009513/0.3122, allocations: 0.5616 MB / 1.232 GB, free: 2.27 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.391e-05/0.3122, allocations: 49.62 kB / 1.232 GB, free: 2.223 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.653e-05/0.3123, allocations: 64.33 kB / 1.232 GB, free: 2.16 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001143/0.3135, allocations: 0.5999 MB / 1.232 GB, free: 1.535 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.403e-05/0.3135, allocations: 3.984 kB / 1.232 GB, free: 1.531 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.753e-05/0.3136, allocations: 28 kB / 1.232 GB, free: 1.504 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.801e-05/0.3136, allocations: 16 kB / 1.233 GB, free: 1.488 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001049/0.3146, allocations: 457 kB / 1.233 GB, free: 1.043 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002955/0.3176, allocations: 1.997 MB / 1.235 GB, free: 14.97 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009874/0.3186, allocations: 446.1 kB / 1.235 GB, free: 14.53 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000495/0.3191, allocations: 246.6 kB / 1.236 GB, free: 14.28 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 4.078e-05/0.3192, allocations: 8.422 kB / 1.236 GB, free: 14.27 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005934/0.3198, allocations: 261.2 kB / 1.236 GB, free: 14.01 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=49): time 2.715e-06/0.3198, allocations: 0 / 1.236 GB, free: 14.01 MB / 0.9981 GB Notification: Performance of matching and sorting (n=49): time 0.001422/0.3212, allocations: 0.5885 MB / 1.236 GB, free: 13.41 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.051e-05/0.3213, allocations: 55.84 kB / 1.236 GB, free: 13.34 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005305/0.3218, allocations: 450 kB / 1.237 GB, free: 12.89 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 4.366e-05/0.3219, allocations: 29.7 kB / 1.237 GB, free: 12.86 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002702/0.3221, allocations: 333.6 kB / 1.237 GB, free: 12.53 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001454/0.3223, allocations: 178.5 kB / 1.237 GB, free: 12.35 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001599/0.3225, allocations: 98.2 kB / 1.237 GB, free: 12.25 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001819/0.3226, allocations: 366.8 kB / 1.238 GB, free: 11.88 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000407/0.3231, allocations: 165 kB / 1.238 GB, free: 11.72 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004719/0.3235, allocations: 253.8 kB / 1.238 GB, free: 11.45 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009068/0.3245, allocations: 452 kB / 1.239 GB, free: 10.98 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.009e-06/0.3245, allocations: 4 kB / 1.239 GB, free: 10.97 MB / 0.9981 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001152/0.3256, allocations: 0.5665 MB / 1.239 GB, free: 10.39 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 4.563e-05/0.3257, allocations: 31.42 kB / 1.239 GB, free: 10.36 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.055e-05/0.3257, allocations: 4 kB / 1.239 GB, free: 10.36 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.385e-05/0.3257, allocations: 7.984 kB / 1.239 GB, free: 10.35 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000533/0.3263, allocations: 112.1 kB / 1.239 GB, free: 10.24 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.787e-05/0.3263, allocations: 11.98 kB / 1.239 GB, free: 10.23 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003477/0.3266, allocations: 51.66 kB / 1.239 GB, free: 10.18 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.147e-05/0.3267, allocations: 20 kB / 1.239 GB, free: 10.16 MB / 0.9981 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.000289/0.327, allocations: 210.5 kB / 1.24 GB, free: 9.941 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.086e-05/0.3271, allocations: 59.56 kB / 1.24 GB, free: 9.883 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001437/0.3272, allocations: 69.59 kB / 1.24 GB, free: 9.816 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.643e-06/0.3272, allocations: 8 kB / 1.24 GB, free: 9.809 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.135e-06/0.3273, allocations: 3.984 kB / 1.24 GB, free: 9.805 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.152e-06/0.3273, allocations: 0 / 1.24 GB, free: 9.805 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001895/0.3292, allocations: 1.178 MB / 1.241 GB, free: 8.57 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/0.3292, allocations: 0 / 1.241 GB, free: 8.57 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005006/0.3297, allocations: 103.9 kB / 1.241 GB, free: 8.469 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.324e-06/0.3297, allocations: 4 kB / 1.241 GB, free: 8.465 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.22e-05/0.3297, allocations: 8 kB / 1.241 GB, free: 8.457 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.846e-06/0.3298, allocations: 0 / 1.241 GB, free: 8.457 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.3298, allocations: 0 / 1.241 GB, free: 8.457 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001438/0.3312, allocations: 0.7694 MB / 1.242 GB, free: 7.668 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001984/0.3314, allocations: 172.6 kB / 1.242 GB, free: 7.48 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.892e-05/0.3315, allocations: 15.98 kB / 1.242 GB, free: 7.465 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000291/0.3318, allocations: 19.98 kB / 1.242 GB, free: 7.445 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.862e-05/0.3319, allocations: 40.33 kB / 1.242 GB, free: 7.406 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.107e-05/0.3319, allocations: 15.98 kB / 1.242 GB, free: 7.391 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0003959/0.3323, allocations: 306.9 kB / 1.242 GB, free: 7.094 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3323, allocations: 0 / 1.242 GB, free: 7.094 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0004862/0.3328, allocations: 147.6 kB / 1.242 GB, free: 6.949 MB / 0.9981 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.001793/0.3346, allocations: 1.321 MB / 1.244 GB, free: 5.602 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.001017/0.3357, allocations: 485 kB / 1.244 GB, free: 5.121 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.3357, allocations: 3.938 kB / 1.244 GB, free: 5.117 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0004747/0.3362, allocations: 222.8 kB / 1.244 GB, free: 4.902 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007999/0.337, allocations: 143.9 kB / 1.245 GB, free: 4.77 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6132/0.9502, allocations: 4.8 MB / 1.249 GB, free: 28.75 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003847/0.9506, allocations: 0.8906 MB / 1.25 GB, free: 28.05 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0003519/0.951, allocations: 61.23 kB / 1.25 GB, free: 28.05 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002863/0.9513, allocations: 221 kB / 1.25 GB, free: 28.05 MB / 0.9981 GB Notification: Performance of SimCode: time 6.21e-07/0.9513, allocations: 0 / 1.25 GB, free: 28.05 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04008/0.9914, allocations: 11.32 MB / 1.261 GB, free: 27.16 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.72/18.71, allocations: 5.75 kB / 1.261 GB, free: 27.16 MB / 0.9981 GB (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 & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Controls.Continuous.Examples.LimPIDWithReset_res.csv --start-time 0 --stop-time 600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.24 Buildings_11_Buildings_Controls_Continuous_Examples_LimPIDWithReset.fmu > Buildings_11_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.Continuous.Examples.LimPIDWithReset_res.csv","/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