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.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-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: "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="Buildings_latest_Buildings_Controls_Continuous_Examples_LimPIDWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="Buildings_latest_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.008005/0.008005, allocations: 99.16 kB / 15.73 MB, free: 6.008 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.002012/0.002012, allocations: 196.3 kB / 16.67 MB, free: 5.934 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.367/1.367, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.737/2.737, allocations: 469.4 MB / 0.7422 GB, free: 7.551 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001271/0.001271, allocations: 68.11 kB / 1.064 GB, free: 13.86 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2832/0.2844, allocations: 159.1 MB / 1.22 GB, free: 14.63 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.005334/0.2898, allocations: 4.14 MB / 1.224 GB, free: 10.46 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.002487/0.2923, allocations: 1.317 MB / 1.225 GB, free: 9.141 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005211/0.2929, allocations: 23.94 kB / 1.225 GB, free: 9.117 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0004001/0.2933, allocations: 130.6 kB / 1.225 GB, free: 8.988 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0005152/0.2938, allocations: 182.4 kB / 1.225 GB, free: 8.809 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009355/0.2948, allocations: 422.8 kB / 1.226 GB, free: 8.398 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.001048/0.2958, allocations: 0.9592 MB / 1.227 GB, free: 7.434 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006547/0.2965, allocations: 458 kB / 1.227 GB, free: 6.965 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004081/0.2969, allocations: 338.7 kB / 1.227 GB, free: 6.633 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004148/0.2973, allocations: 330.4 kB / 1.228 GB, free: 6.309 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.0001402/0.2975, allocations: 92 kB / 1.228 GB, free: 6.219 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001304/0.2976, allocations: 92 kB / 1.228 GB, free: 6.129 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0001524/0.2978, allocations: 183.4 kB / 1.228 GB, free: 5.949 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0003656/0.2982, allocations: 390 kB / 1.229 GB, free: 5.566 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0009886/0.2992, allocations: 1.07 MB / 1.23 GB, free: 4.492 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.2992, allocations: 0 / 1.23 GB, free: 4.492 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.052e-06/0.2992, allocations: 0 / 1.23 GB, free: 4.492 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 2.822e-05/0.2992, allocations: 0 / 1.23 GB, free: 4.492 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.002054/0.3013, allocations: 1.1 MB / 1.231 GB, free: 3.332 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.254e-05/0.3013, allocations: 8.031 kB / 1.231 GB, free: 3.324 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001216/0.3014, allocations: 102.7 kB / 1.231 GB, free: 3.215 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001478/0.3016, allocations: 88.42 kB / 1.231 GB, free: 3.129 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009172/0.3025, allocations: 0.5733 MB / 1.231 GB, free: 2.523 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.283e-05/0.3026, allocations: 37.69 kB / 1.231 GB, free: 2.488 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001018/0.3027, allocations: 72.27 kB / 1.231 GB, free: 2.418 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001096/0.3038, allocations: 0.6077 MB / 1.232 GB, free: 1.785 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.039e-05/0.3038, allocations: 0 / 1.232 GB, free: 1.785 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.373e-05/0.3039, allocations: 24 kB / 1.232 GB, free: 1.762 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.844e-05/0.3039, allocations: 16 kB / 1.232 GB, free: 1.746 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001015/0.3049, allocations: 461 kB / 1.233 GB, free: 1.297 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002838/0.3078, allocations: 1.993 MB / 1.234 GB, free: 15.23 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009202/0.3087, allocations: 440.9 kB / 1.235 GB, free: 14.79 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004706/0.3092, allocations: 250.6 kB / 1.235 GB, free: 14.54 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.332e-05/0.3092, allocations: 8.438 kB / 1.235 GB, free: 14.54 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005471/0.3098, allocations: 265.2 kB / 1.235 GB, free: 14.26 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=49): time 2.074e-06/0.3098, allocations: 0 / 1.235 GB, free: 14.26 MB / 0.9981 GB Notification: Performance of matching and sorting (n=49): time 0.001302/0.3111, allocations: 0.5847 MB / 1.236 GB, free: 13.67 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.385e-05/0.3112, allocations: 59.83 kB / 1.236 GB, free: 13.6 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004837/0.3116, allocations: 446 kB / 1.236 GB, free: 13.16 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 3.937e-05/0.3117, allocations: 33.7 kB / 1.236 GB, free: 13.12 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002218/0.3119, allocations: 333.6 kB / 1.237 GB, free: 12.79 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001306/0.3121, allocations: 162.5 kB / 1.237 GB, free: 12.62 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001435/0.3122, allocations: 106.2 kB / 1.237 GB, free: 12.52 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001485/0.3124, allocations: 362.8 kB / 1.237 GB, free: 12.15 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004064/0.3128, allocations: 165 kB / 1.238 GB, free: 11.99 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000448/0.3132, allocations: 257.8 kB / 1.238 GB, free: 11.71 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008477/0.3141, allocations: 452 kB / 1.238 GB, free: 11.24 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.689e-06/0.3141, allocations: 7.938 kB / 1.238 GB, free: 11.23 MB / 0.9981 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001064/0.3152, allocations: 0.5665 MB / 1.239 GB, free: 10.66 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 4.112e-05/0.3152, allocations: 33.7 kB / 1.239 GB, free: 10.62 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.814e-06/0.3152, allocations: 4 kB / 1.239 GB, free: 10.61 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.708e-05/0.3153, allocations: 4 kB / 1.239 GB, free: 10.61 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005135/0.3158, allocations: 111.8 kB / 1.239 GB, free: 10.5 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.042e-05/0.3158, allocations: 8.25 kB / 1.239 GB, free: 10.49 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003391/0.3162, allocations: 59.64 kB / 1.239 GB, free: 10.43 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.524e-05/0.3162, allocations: 20 kB / 1.239 GB, free: 10.41 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.0002294/0.3164, allocations: 206.6 kB / 1.239 GB, free: 10.2 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.294e-05/0.3165, allocations: 63.55 kB / 1.239 GB, free: 10.14 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001212/0.3167, allocations: 65.58 kB / 1.239 GB, free: 10.08 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.829e-06/0.3167, allocations: 4 kB / 1.239 GB, free: 10.07 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.3167, allocations: 4 kB / 1.239 GB, free: 10.07 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.019e-06/0.3167, allocations: 0 / 1.239 GB, free: 10.07 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001745/0.3184, allocations: 1.182 MB / 1.241 GB, free: 8.828 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/0.3185, allocations: 0 / 1.241 GB, free: 8.828 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005067/0.319, allocations: 91.89 kB / 1.241 GB, free: 8.738 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.404e-06/0.319, allocations: 4 kB / 1.241 GB, free: 8.734 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.548e-05/0.319, allocations: 19.98 kB / 1.241 GB, free: 8.715 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.725e-06/0.319, allocations: 0 / 1.241 GB, free: 8.715 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.319, allocations: 0 / 1.241 GB, free: 8.715 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001354/0.3204, allocations: 0.7616 MB / 1.241 GB, free: 7.934 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001859/0.3206, allocations: 176.6 kB / 1.242 GB, free: 7.742 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.551e-05/0.3207, allocations: 12 kB / 1.242 GB, free: 7.73 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003171/0.321, allocations: 27.97 kB / 1.242 GB, free: 7.703 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.609e-05/0.3211, allocations: 32.39 kB / 1.242 GB, free: 7.672 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.35e-05/0.3211, allocations: 16.06 kB / 1.242 GB, free: 7.656 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0003423/0.3215, allocations: 310.9 kB / 1.242 GB, free: 7.355 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.31e-07/0.3215, allocations: 0 / 1.242 GB, free: 7.355 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0004276/0.3219, allocations: 143.6 kB / 1.242 GB, free: 7.215 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.001657/0.3236, allocations: 1.322 MB / 1.243 GB, free: 5.867 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0009326/0.3245, allocations: 489 kB / 1.244 GB, free: 5.375 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.3245, allocations: 0 / 1.244 GB, free: 5.375 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0004284/0.325, allocations: 218.9 kB / 1.244 GB, free: 5.164 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007841/0.3258, allocations: 163.2 kB / 1.244 GB, free: 5.016 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007105/0.3329, allocations: 4.806 MB / 1.249 GB, free: 72 kB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.5086/0.8415, allocations: 0.8831 MB / 1.25 GB, free: 29.21 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0003327/0.8419, allocations: 65.69 kB / 1.25 GB, free: 29.21 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002772/0.8421, allocations: 216.6 kB / 1.25 GB, free: 29.21 MB / 0.9981 GB Notification: Performance of SimCode: time 6.41e-07/0.8421, allocations: 0 / 1.25 GB, free: 29.21 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03016/0.8723, allocations: 11.32 MB / 1.261 GB, free: 28.33 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.196/9.068, allocations: 13.81 kB / 1.261 GB, free: 28.32 MB / 0.9981 GB (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 & python3 -m fmpy simulate --output-file Buildings_latest_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_latest_Buildings_Controls_Continuous_Examples_LimPIDWithReset.fmu > Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_Continuous_Examples_LimPIDWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches