Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.Continuous.Validation.LimPIDReset.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.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.Validation.LimPIDReset,fileNamePrefix="Buildings_latest_Buildings_Controls_Continuous_Validation_LimPIDReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Validation.LimPIDReset,fileNamePrefix="Buildings_latest_Buildings_Controls_Continuous_Validation_LimPIDReset",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.006182/0.006182, allocations: 101.9 kB / 15.73 MB, free: 6.02 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.001592/0.001592, allocations: 194.3 kB / 16.67 MB, free: 5.93 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.41/1.41, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.841/2.841, allocations: 482.4 MB / 0.7548 GB, free: 6.883 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001931/0.001931, allocations: 59.3 kB / 1.083 GB, free: 13.94 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2782/0.2802, allocations: 162.2 MB / 1.241 GB, free: 9.355 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Validation.LimPIDReset): time 0.006194/0.2864, allocations: 4.339 MB / 1.246 GB, free: 4.992 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.003/0.2894, allocations: 1.582 MB / 1.247 GB, free: 3.406 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003509/0.2898, allocations: 35.81 kB / 1.247 GB, free: 3.371 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0003889/0.2902, allocations: 162.2 kB / 1.247 GB, free: 3.211 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0006015/0.2908, allocations: 238.1 kB / 1.248 GB, free: 2.977 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.001303/0.2921, allocations: 0.6718 MB / 1.248 GB, free: 2.316 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.001323/0.2935, allocations: 1.222 MB / 1.249 GB, free: 1.09 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007887/0.2943, allocations: 0.4926 MB / 1.25 GB, free: 0.5742 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005282/0.2948, allocations: 465.9 kB / 1.25 GB, free: 120 kB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005124/0.2953, allocations: 461.5 kB / 1.251 GB, free: 15.66 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.0001547/0.2955, allocations: 104 kB / 1.251 GB, free: 15.56 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001452/0.2956, allocations: 100 kB / 1.251 GB, free: 15.46 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.000217/0.2959, allocations: 231.1 kB / 1.251 GB, free: 15.23 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0004209/0.2963, allocations: 493 kB / 1.252 GB, free: 14.75 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.001171/0.2975, allocations: 1.159 MB / 1.253 GB, free: 13.59 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.2975, allocations: 3.938 kB / 1.253 GB, free: 13.58 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.302e-06/0.2975, allocations: 0 / 1.253 GB, free: 13.58 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.13e-05/0.2975, allocations: 0 / 1.253 GB, free: 13.58 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: 168 * Number of variables: 168 Notification: Performance of Generate backend data structure: time 0.002723/0.3002, allocations: 1.441 MB / 1.254 GB, free: 12.09 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.508e-05/0.3003, allocations: 15.97 kB / 1.254 GB, free: 12.07 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000221/0.3005, allocations: 110.7 kB / 1.254 GB, free: 11.95 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001808/0.3007, allocations: 128.1 kB / 1.254 GB, free: 11.83 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001331/0.302, allocations: 0.7673 MB / 1.255 GB, free: 11.02 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001005/0.3021, allocations: 80.27 kB / 1.255 GB, free: 10.94 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001081/0.3023, allocations: 76.12 kB / 1.255 GB, free: 10.86 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001418/0.3037, allocations: 0.7289 MB / 1.256 GB, free: 10.09 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.724e-05/0.3037, allocations: 0 / 1.256 GB, free: 10.09 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.19e-05/0.3038, allocations: 32 kB / 1.256 GB, free: 10.06 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.595e-05/0.3038, allocations: 16 kB / 1.256 GB, free: 10.05 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001319/0.3051, allocations: 0.5204 MB / 1.257 GB, free: 9.523 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003574/0.3087, allocations: 2.248 MB / 1.259 GB, free: 7.207 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001557/0.3103, allocations: 0.631 MB / 1.259 GB, free: 6.57 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005832/0.3109, allocations: 269.9 kB / 1.26 GB, free: 6.309 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 4.862e-05/0.3109, allocations: 16.56 kB / 1.26 GB, free: 6.293 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007229/0.3117, allocations: 315.1 kB / 1.26 GB, free: 5.973 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=60): time 2.083e-06/0.3117, allocations: 0 / 1.26 GB, free: 5.973 MB / 0.9825 GB Notification: Performance of matching and sorting (n=60): time 0.001825/0.3135, allocations: 0.7601 MB / 1.261 GB, free: 5.207 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.987e-05/0.3136, allocations: 89.61 kB / 1.261 GB, free: 5.102 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009535/0.3146, allocations: 0.7595 MB / 1.262 GB, free: 4.332 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 5.076e-05/0.3146, allocations: 33.7 kB / 1.262 GB, free: 4.293 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.000425/0.315, allocations: 449 kB / 1.262 GB, free: 3.848 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 0.000223/0.3153, allocations: 218.1 kB / 1.262 GB, free: 3.633 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002036/0.3155, allocations: 114.3 kB / 1.262 GB, free: 3.516 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.000211/0.3157, allocations: 326 kB / 1.263 GB, free: 3.191 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005245/0.3162, allocations: 207.4 kB / 1.263 GB, free: 2.984 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00062/0.3169, allocations: 312.3 kB / 1.263 GB, free: 2.645 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001086/0.318, allocations: 0.5075 MB / 1.264 GB, free: 2.105 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.849e-06/0.318, allocations: 3.984 kB / 1.264 GB, free: 2.102 MB / 0.9825 GB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001368/0.3194, allocations: 0.6584 MB / 1.264 GB, free: 1.438 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.659e-05/0.3194, allocations: 8 kB / 1.264 GB, free: 1.43 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.692e-06/0.3194, allocations: 0 / 1.264 GB, free: 1.43 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.669e-05/0.3194, allocations: 4 kB / 1.264 GB, free: 1.426 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007595/0.3202, allocations: 147.7 kB / 1.264 GB, free: 1.281 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.412e-05/0.3202, allocations: 7.984 kB / 1.265 GB, free: 1.273 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004351/0.3206, allocations: 67.8 kB / 1.265 GB, free: 1.207 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.74e-05/0.3207, allocations: 27.92 kB / 1.265 GB, free: 1.18 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006564/0.3214, allocations: 349.4 kB / 1.265 GB, free: 0.8359 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005323/0.3219, allocations: 296.5 kB / 1.265 GB, free: 0.5117 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001014/0.3229, allocations: 491.7 kB / 1.266 GB, free: 16 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.964e-06/0.3229, allocations: 0 / 1.266 GB, free: 16 MB / 0.9981 GB Notification: Performance of matching and sorting (n=76) (initialization_lambda0): time 0.001297/0.3242, allocations: 0.6349 MB / 1.266 GB, free: 15.36 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.367e-05/0.3243, allocations: 8 kB / 1.266 GB, free: 15.35 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.139e-06/0.3243, allocations: 7.938 kB / 1.266 GB, free: 15.34 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.572e-06/0.3243, allocations: 4.25 kB / 1.266 GB, free: 15.34 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000647/0.3249, allocations: 143.8 kB / 1.266 GB, free: 15.2 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.407e-06/0.325, allocations: 7.938 kB / 1.266 GB, free: 15.19 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000408/0.3254, allocations: 55.64 kB / 1.267 GB, free: 15.13 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.581e-05/0.3254, allocations: 28 kB / 1.267 GB, free: 15.11 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,trigger.pulseStart,$PRE.trigger.pulseStart,trigger.y,$whenCondition2,limPIDOri.I.local_reset,limPIDDef.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (76): * Single equations (assignments): 76 * Array equations: 0 * Algorithm blocks: 0 * 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.0001914/0.3256, allocations: 210.2 kB / 1.267 GB, free: 14.89 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000127/0.3258, allocations: 99.34 kB / 1.267 GB, free: 14.8 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002132/0.326, allocations: 113.2 kB / 1.267 GB, free: 14.68 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.403e-06/0.326, allocations: 7.938 kB / 1.267 GB, free: 14.68 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.326, allocations: 0 / 1.267 GB, free: 14.68 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.584e-06/0.326, allocations: 3.984 kB / 1.267 GB, free: 14.67 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002395/0.3284, allocations: 1.45 MB / 1.268 GB, free: 13.17 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.628e-06/0.3284, allocations: 4 kB / 1.268 GB, free: 13.16 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005859/0.329, allocations: 99.88 kB / 1.268 GB, free: 13.07 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.33e-06/0.329, allocations: 4 kB / 1.268 GB, free: 13.06 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.248e-05/0.3291, allocations: 15.94 kB / 1.268 GB, free: 13.05 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.228e-06/0.3291, allocations: 0 / 1.268 GB, free: 13.05 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.3291, allocations: 0 / 1.268 GB, free: 13.05 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001992/0.3311, allocations: 0.9678 MB / 1.269 GB, free: 12.07 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002842/0.3314, allocations: 228.2 kB / 1.27 GB, free: 11.82 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.699e-05/0.3315, allocations: 16 kB / 1.27 GB, free: 11.81 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004595/0.332, allocations: 31.97 kB / 1.27 GB, free: 11.78 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.024e-05/0.3321, allocations: 36.5 kB / 1.27 GB, free: 11.74 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.197e-05/0.3321, allocations: 16 kB / 1.27 GB, free: 11.72 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0006964/0.3328, allocations: 0.5185 MB / 1.27 GB, free: 11.21 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3328, allocations: 0 / 1.27 GB, free: 11.21 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0007295/0.3336, allocations: 279.3 kB / 1.271 GB, free: 10.93 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (limPIDPar.I.y,limPIDPar.D.x,limPIDDef.I.y,limPIDDef.D.x,limPIDInp.I.y,limPIDInp.D.x,limPIDOri.I.y,limPIDOri.D.x) * Number of discrete variables: 4 (trigger.y,$whenCondition2,$whenCondition1,trigger.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (60): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.002405/0.336, allocations: 1.531 MB / 1.272 GB, free: 9.371 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.001736/0.3377, allocations: 0.7881 MB / 1.273 GB, free: 8.582 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 5.049e-06/0.3378, allocations: 4 kB / 1.273 GB, free: 8.578 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0005685/0.3383, allocations: 263.1 kB / 1.273 GB, free: 8.324 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001302/0.3396, allocations: 270.9 kB / 1.273 GB, free: 8.07 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01021/0.3499, allocations: 6.571 MB / 1.28 GB, free: 1.309 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007452/0.3506, allocations: 0.9898 MB / 1.281 GB, free: 300 kB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0005146/0.3512, allocations: 114.7 kB / 1.281 GB, free: 180 kB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005338/0.3517, allocations: 355.4 kB / 1.281 GB, free: 15.82 MB / 1.014 GB Notification: Performance of SimCode: time 4.41e-07/0.3517, allocations: 0 / 1.281 GB, free: 15.82 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04721/0.3989, allocations: 17.46 MB / 1.298 GB, free: 14.58 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.409/9.808, allocations: 27.62 kB / 1.298 GB, free: 14.55 MB / 1.029 GB (rm -f Buildings_latest_Buildings.Controls.Continuous.Validation.LimPIDReset.pipe ; mkfifo Buildings_latest_Buildings.Controls.Continuous.Validation.LimPIDReset.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.Continuous.Validation.LimPIDReset.pipe >> ../files/Buildings_latest_Buildings.Controls.Continuous.Validation.LimPIDReset.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.Continuous.Validation.LimPIDReset_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Controls_Continuous_Validation_LimPIDReset.fmu > Buildings_latest_Buildings.Controls.Continuous.Validation.LimPIDReset.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.Continuous.Validation.LimPIDReset_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_Continuous_Validation_LimPIDReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.Continuous.Validation.LimPIDReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches