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: "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="Buildings_10_Buildings_Controls_Continuous_Examples_LimPIDWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="Buildings_10_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.007904/0.007904, allocations: 103.8 kB / 15.74 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.002189/0.002189, allocations: 196.4 kB / 16.67 MB, free: 6.355 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.647/1.647, allocations: 222.9 MB / 240.4 MB, free: 4.34 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.784/2.784, allocations: 437 MB / 0.7105 GB, free: 5.004 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001886/0.001886, allocations: 59.91 kB / 1.018 GB, free: 15.22 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2709/0.2728, allocations: 151.6 MB / 1.166 GB, free: 7.48 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.005487/0.2784, allocations: 4.129 MB / 1.17 GB, free: 3.32 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.00232/0.2807, allocations: 1.325 MB / 1.171 GB, free: 1.988 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003463/0.2811, allocations: 27.88 kB / 1.171 GB, free: 1.961 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0003118/0.2814, allocations: 126.7 kB / 1.172 GB, free: 1.836 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0003524/0.2818, allocations: 182.4 kB / 1.172 GB, free: 1.656 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008355/0.2826, allocations: 410.1 kB / 1.172 GB, free: 1.262 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0009504/0.2836, allocations: 0.9671 MB / 1.173 GB, free: 300 kB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006495/0.2843, allocations: 458.1 kB / 1.174 GB, free: 15.82 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003555/0.2846, allocations: 330.7 kB / 1.174 GB, free: 15.5 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003608/0.285, allocations: 334.4 kB / 1.174 GB, free: 15.17 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 0.0001206/0.2851, allocations: 88 kB / 1.174 GB, free: 15.09 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001259/0.2853, allocations: 92 kB / 1.174 GB, free: 15 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0001568/0.2854, allocations: 179.4 kB / 1.175 GB, free: 14.82 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0003438/0.2858, allocations: 394 kB / 1.175 GB, free: 14.43 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.00104/0.2868, allocations: 1.066 MB / 1.176 GB, free: 13.36 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.2868, allocations: 0 / 1.176 GB, free: 13.36 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.593e-06/0.2868, allocations: 4 kB / 1.176 GB, free: 13.36 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.041e-05/0.2869, allocations: 0 / 1.176 GB, free: 13.36 MB / 0.9356 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.001846/0.2887, allocations: 1.096 MB / 1.177 GB, free: 12.2 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.674e-05/0.2888, allocations: 8.031 kB / 1.177 GB, free: 12.2 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001191/0.2889, allocations: 102.7 kB / 1.177 GB, free: 12.09 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001301/0.289, allocations: 84.42 kB / 1.177 GB, free: 12 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008862/0.2899, allocations: 0.5732 MB / 1.178 GB, free: 11.39 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.252e-05/0.29, allocations: 49.62 kB / 1.178 GB, free: 11.35 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.879e-05/0.2901, allocations: 60.36 kB / 1.178 GB, free: 11.29 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001117/0.2912, allocations: 0.6154 MB / 1.178 GB, free: 10.65 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.248e-05/0.2912, allocations: 3.953 kB / 1.178 GB, free: 10.64 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.259e-05/0.2913, allocations: 24 kB / 1.178 GB, free: 10.62 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.284e-05/0.2913, allocations: 12 kB / 1.178 GB, free: 10.61 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001037/0.2923, allocations: 461 kB / 1.179 GB, free: 10.16 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002827/0.2952, allocations: 1.993 MB / 1.181 GB, free: 8.09 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009598/0.2961, allocations: 442.2 kB / 1.181 GB, free: 7.648 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004742/0.2966, allocations: 242.1 kB / 1.182 GB, free: 7.41 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 3.789e-05/0.2967, allocations: 12.42 kB / 1.182 GB, free: 7.398 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005562/0.2972, allocations: 265.2 kB / 1.182 GB, free: 7.125 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=49): time 2.064e-06/0.2972, allocations: 0 / 1.182 GB, free: 7.125 MB / 0.9356 GB Notification: Performance of matching and sorting (n=49): time 0.001351/0.2986, allocations: 0.5885 MB / 1.182 GB, free: 6.535 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.225e-05/0.2987, allocations: 63.83 kB / 1.182 GB, free: 6.461 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005047/0.2992, allocations: 442 kB / 1.183 GB, free: 6.02 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 3.987e-05/0.2992, allocations: 33.7 kB / 1.183 GB, free: 5.98 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002618/0.2995, allocations: 333.6 kB / 1.183 GB, free: 5.648 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001357/0.2996, allocations: 166.5 kB / 1.183 GB, free: 5.484 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001545/0.2998, allocations: 90.25 kB / 1.183 GB, free: 5.391 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001746/0.3, allocations: 370.8 kB / 1.184 GB, free: 5.02 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004253/0.3004, allocations: 165 kB / 1.184 GB, free: 4.859 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004646/0.3009, allocations: 249.8 kB / 1.184 GB, free: 4.586 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000864/0.3018, allocations: 452 kB / 1.185 GB, free: 4.109 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.3018, allocations: 0 / 1.185 GB, free: 4.109 MB / 0.9356 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001105/0.3029, allocations: 0.5665 MB / 1.185 GB, free: 3.531 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 3.834e-05/0.3029, allocations: 40.34 kB / 1.185 GB, free: 3.488 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.071e-06/0.3029, allocations: 0 / 1.185 GB, free: 3.488 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.697e-05/0.303, allocations: 4 kB / 1.185 GB, free: 3.484 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005044/0.3035, allocations: 115.8 kB / 1.185 GB, free: 3.371 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.371e-05/0.3035, allocations: 7.984 kB / 1.185 GB, free: 3.363 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003297/0.3038, allocations: 63.84 kB / 1.185 GB, free: 3.301 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.176e-05/0.3039, allocations: 31.94 kB / 1.185 GB, free: 3.27 MB / 0.9356 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.0002762/0.3042, allocations: 205.7 kB / 1.186 GB, free: 3.059 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.817e-05/0.3042, allocations: 63.56 kB / 1.186 GB, free: 2.996 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001355/0.3044, allocations: 61.58 kB / 1.186 GB, free: 2.938 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.843e-06/0.3044, allocations: 4 kB / 1.186 GB, free: 2.934 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.984e-06/0.3044, allocations: 3.984 kB / 1.186 GB, free: 2.93 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.3044, allocations: 0 / 1.186 GB, free: 2.93 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00181/0.3062, allocations: 1.182 MB / 1.187 GB, free: 1.691 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.37e-06/0.3063, allocations: 7.984 kB / 1.187 GB, free: 1.684 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004879/0.3068, allocations: 91.89 kB / 1.187 GB, free: 1.594 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.257e-06/0.3068, allocations: 0 / 1.187 GB, free: 1.594 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.507e-05/0.3068, allocations: 11.98 kB / 1.187 GB, free: 1.582 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.855e-06/0.3068, allocations: 0 / 1.187 GB, free: 1.582 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.3068, allocations: 4 kB / 1.187 GB, free: 1.578 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00141/0.3082, allocations: 0.7654 MB / 1.188 GB, free: 0.793 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001904/0.3084, allocations: 176.6 kB / 1.188 GB, free: 0.6016 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.486e-05/0.3085, allocations: 8 kB / 1.188 GB, free: 0.5938 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002907/0.3088, allocations: 27.97 kB / 1.188 GB, free: 0.5664 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.976e-05/0.3089, allocations: 36.39 kB / 1.188 GB, free: 0.5312 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.106e-05/0.3089, allocations: 12 kB / 1.188 GB, free: 0.5195 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0003457/0.3093, allocations: 318.8 kB / 1.188 GB, free: 216 kB / 0.9356 GB Notification: Performance of sort global known variables: time 1.71e-07/0.3093, allocations: 0 / 1.188 GB, free: 216 kB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0004405/0.3098, allocations: 139.6 kB / 1.188 GB, free: 76 kB / 0.9356 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.001728/0.3115, allocations: 1.317 MB / 1.19 GB, free: 14.73 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0009906/0.3125, allocations: 489 kB / 1.19 GB, free: 14.24 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.3125, allocations: 0 / 1.19 GB, free: 14.24 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.000444/0.313, allocations: 214.4 kB / 1.19 GB, free: 14.03 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000761/0.3137, allocations: 154.4 kB / 1.191 GB, free: 13.89 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00755/0.3213, allocations: 4.814 MB / 1.195 GB, free: 8.934 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005092/0.3218, allocations: 0.8897 MB / 1.196 GB, free: 8.016 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.0002848/0.3221, allocations: 60.59 kB / 1.196 GB, free: 7.957 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000317/0.3224, allocations: 219.4 kB / 1.196 GB, free: 7.742 MB / 0.9512 GB Notification: Performance of SimCode: time 6.22e-07/0.3225, allocations: 4 kB / 1.196 GB, free: 7.738 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03643/0.3589, allocations: 11.31 MB / 1.207 GB, free: 12.61 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.604/9.963, allocations: 22.75 kB / 1.207 GB, free: 12.59 MB / 0.9669 GB (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 & python3 -m fmpy simulate --output-file Buildings_10_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_10_Buildings_Controls_Continuous_Examples_LimPIDWithReset.fmu > Buildings_10_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.Continuous.Examples.LimPIDWithReset_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_Continuous_Examples_LimPIDWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.Continuous.Examples.LimPIDWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches