Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithReset.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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.OBC.CDL.Reals.Validation.PIDWithReset,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_PIDWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithReset,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_PIDWithReset",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.0009035/0.0009035, allocations: 97.95 kB / 15.36 MB, free: 0.7344 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.006072/0.006072, allocations: 170.9 kB / 16.27 MB, free: 6.648 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.266/1.266, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.53/2.53, allocations: 462.7 MB / 0.7364 GB, free: 15.58 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003507/0.0003507, allocations: 13.41 kB / 0.9029 GB, free: 36.52 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2953/0.2957, allocations: 159.6 MB / 1.059 GB, free: 4.867 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithReset): time 0.003298/0.299, allocations: 2.853 MB / 1.062 GB, free: 2.008 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002502/0.3015, allocations: 1.668 MB / 1.063 GB, free: 332 kB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005633/0.3021, allocations: 19.94 kB / 1.063 GB, free: 312 kB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0004015/0.3025, allocations: 122.8 kB / 1.063 GB, free: 188 kB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0004613/0.303, allocations: 75.44 kB / 1.063 GB, free: 112 kB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007135/0.3037, allocations: 303.8 kB / 1.064 GB, free: 15.81 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.001075/0.3048, allocations: 0.9828 MB / 1.065 GB, free: 14.83 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009721/0.3058, allocations: 0.5959 MB / 1.065 GB, free: 14.21 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003911/0.3062, allocations: 258.3 kB / 1.065 GB, free: 13.96 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003647/0.3066, allocations: 309.7 kB / 1.066 GB, free: 13.66 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.000108/0.3067, allocations: 28 kB / 1.066 GB, free: 13.63 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 6.965e-05/0.3068, allocations: 24 kB / 1.066 GB, free: 13.61 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001307/0.3069, allocations: 135.2 kB / 1.066 GB, free: 13.47 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0003168/0.3072, allocations: 379 kB / 1.066 GB, free: 13.09 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.001024/0.3083, allocations: 1.16 MB / 1.067 GB, free: 11.93 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.3083, allocations: 0 / 1.067 GB, free: 11.93 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.483e-06/0.3083, allocations: 0 / 1.067 GB, free: 11.93 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 3.378e-05/0.3083, allocations: 4 kB / 1.067 GB, free: 11.93 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: 229 * Number of variables: 229 Notification: Performance of Generate backend data structure: time 0.00226/0.3106, allocations: 1.138 MB / 1.069 GB, free: 10.73 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.155e-05/0.3106, allocations: 15.97 kB / 1.069 GB, free: 10.71 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003113/0.311, allocations: 139.8 kB / 1.069 GB, free: 10.57 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002372/0.3112, allocations: 111.6 kB / 1.069 GB, free: 10.46 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008039/0.312, allocations: 0.5558 MB / 1.069 GB, free: 9.867 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.04e-05/0.3121, allocations: 74.38 kB / 1.069 GB, free: 9.793 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001505/0.3122, allocations: 100.3 kB / 1.07 GB, free: 9.695 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001647/0.3139, allocations: 0.8983 MB / 1.07 GB, free: 8.777 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.972e-05/0.3139, allocations: 7.938 kB / 1.07 GB, free: 8.77 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.786e-05/0.314, allocations: 39.98 kB / 1.07 GB, free: 8.73 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.318e-05/0.314, allocations: 20 kB / 1.07 GB, free: 8.711 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00123/0.3153, allocations: 0.6559 MB / 1.071 GB, free: 8.051 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004159/0.3194, allocations: 2.857 MB / 1.074 GB, free: 5.113 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001601/0.3211, allocations: 1.338 MB / 1.075 GB, free: 3.621 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006636/0.3217, allocations: 422 kB / 1.076 GB, free: 3.207 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.768e-05/0.3218, allocations: 8.656 kB / 1.076 GB, free: 3.199 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006954/0.3225, allocations: 372.3 kB / 1.076 GB, free: 2.824 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=74): time 1.994e-06/0.3225, allocations: 0 / 1.076 GB, free: 2.824 MB / 0.8262 GB Notification: Performance of matching and sorting (n=74): time 0.001646/0.3241, allocations: 0.8602 MB / 1.077 GB, free: 1.961 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001143/0.3243, allocations: 166.8 kB / 1.077 GB, free: 1.762 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008118/0.3251, allocations: 0.5616 MB / 1.078 GB, free: 1.191 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 5.301e-05/0.3252, allocations: 45.7 kB / 1.078 GB, free: 1.141 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002763/0.3254, allocations: 396.2 kB / 1.078 GB, free: 0.7461 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.000195/0.3256, allocations: 248.3 kB / 1.078 GB, free: 0.5 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.07e-05/0.3257, allocations: 73.61 kB / 1.078 GB, free: 432 kB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001863/0.3259, allocations: 382.8 kB / 1.079 GB, free: 40 kB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006122/0.3266, allocations: 257.9 kB / 1.079 GB, free: 15.79 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006906/0.3273, allocations: 377.1 kB / 1.079 GB, free: 15.38 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001089/0.3284, allocations: 0.5721 MB / 1.08 GB, free: 14.8 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.3284, allocations: 4 kB / 1.08 GB, free: 14.79 MB / 0.8419 GB Notification: Performance of matching and sorting (n=87) (initialization): time 0.001414/0.3298, allocations: 0.7348 MB / 1.081 GB, free: 14.05 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 8.79e-05/0.3299, allocations: 123.6 kB / 1.081 GB, free: 13.91 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.692e-06/0.3299, allocations: 0 / 1.081 GB, free: 13.91 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.575e-05/0.3299, allocations: 4 kB / 1.081 GB, free: 13.91 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005883/0.3305, allocations: 171.7 kB / 1.081 GB, free: 13.74 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.424e-05/0.3305, allocations: 4 kB / 1.081 GB, free: 13.74 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004291/0.331, allocations: 119.3 kB / 1.081 GB, free: 13.62 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.354e-05/0.331, allocations: 31.92 kB / 1.081 GB, free: 13.59 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 7.955e-06/0.331, allocations: 4 kB / 1.081 GB, free: 13.59 MB / 0.8419 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008917/0.3319, allocations: 0.5194 MB / 1.081 GB, free: 13.07 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.426e-06/0.3319, allocations: 0 / 1.081 GB, free: 13.07 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.252e-06/0.332, allocations: 4 kB / 1.081 GB, free: 13.06 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004627/0.3324, allocations: 135.8 kB / 1.082 GB, free: 12.93 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.408e-06/0.3324, allocations: 8.031 kB / 1.082 GB, free: 12.92 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003342/0.3328, allocations: 87.34 kB / 1.082 GB, free: 12.84 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.316e-05/0.3328, allocations: 20 kB / 1.082 GB, free: 12.82 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 3 (limPIDInp.trigger,$whenCondition1,con.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (87): * Single equations (assignments): 87 * 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.0004086/0.3332, allocations: 300.9 kB / 1.082 GB, free: 12.51 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.771e-05/0.3333, allocations: 71.16 kB / 1.082 GB, free: 12.44 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001316/0.3347, allocations: 0.6807 MB / 1.083 GB, free: 11.75 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.227e-06/0.3347, allocations: 8 kB / 1.083 GB, free: 11.74 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.582e-06/0.3347, allocations: 0 / 1.083 GB, free: 11.74 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.361e-05/0.3347, allocations: 11.91 kB / 1.083 GB, free: 11.73 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002759/0.3375, allocations: 1.727 MB / 1.084 GB, free: 9.926 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.558e-06/0.3375, allocations: 0 / 1.084 GB, free: 9.926 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005609/0.3381, allocations: 151.9 kB / 1.085 GB, free: 9.777 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.217e-06/0.3381, allocations: 4 kB / 1.085 GB, free: 9.773 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.299e-05/0.3381, allocations: 23.98 kB / 1.085 GB, free: 9.75 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.33e-06/0.3381, allocations: 4 kB / 1.085 GB, free: 9.746 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/0.3382, allocations: 3.938 kB / 1.085 GB, free: 9.742 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00187/0.34, allocations: 1.108 MB / 1.086 GB, free: 8.602 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001321/0.3402, allocations: 172 kB / 1.086 GB, free: 8.414 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.222e-05/0.3402, allocations: 19.94 kB / 1.086 GB, free: 8.395 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003535/0.3406, allocations: 55.95 kB / 1.086 GB, free: 8.34 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.303e-05/0.3407, allocations: 44.45 kB / 1.086 GB, free: 8.293 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.247e-05/0.3407, allocations: 27.98 kB / 1.086 GB, free: 8.266 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0004898/0.3412, allocations: 398.8 kB / 1.086 GB, free: 7.879 MB / 0.8419 GB Notification: Performance of sort global known variables: time 3.61e-07/0.3412, allocations: 0 / 1.086 GB, free: 7.879 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0007866/0.342, allocations: 302.5 kB / 1.087 GB, free: 7.582 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 10 (limPIDPar.I.y,limPIDPar.D.x,intWitRes1.y,limPIDInp.I.y,limPIDInp.D.x,intWitRes2.y,limPIPar.I.y,intWitRes3.y,limPIInp.I.y,intWitRes4.y) * Number of discrete variables: 2 (limPIDInp.trigger,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (74): * Single equations (assignments): 74 * 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 Backend phase and start with SimCode phase: time 0.002145/0.3442, allocations: 1.686 MB / 1.088 GB, free: 5.852 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001764/0.346, allocations: 0.9187 MB / 1.089 GB, free: 4.93 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 6.712e-06/0.346, allocations: 0 / 1.089 GB, free: 4.93 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0006065/0.3466, allocations: 335.4 kB / 1.09 GB, free: 4.602 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009133/0.3475, allocations: 138.5 kB / 1.09 GB, free: 4.469 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009889/0.3574, allocations: 6.641 MB / 1.096 GB, free: 13.67 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006099/0.358, allocations: 0.9781 MB / 1.097 GB, free: 12.67 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0003106/0.3584, allocations: 85.19 kB / 1.097 GB, free: 12.58 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004181/0.3588, allocations: 335.3 kB / 1.098 GB, free: 12.25 MB / 0.8575 GB Notification: Performance of SimCode: time 9.22e-07/0.3588, allocations: 4 kB / 1.098 GB, free: 12.25 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05496/0.4138, allocations: 13 MB / 1.11 GB, free: 15.47 MB / 0.8731 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002805/0.4141, allocations: 215.7 kB / 1.11 GB, free: 15.21 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.1/2.514, allocations: 0 / 1.11 GB, free: 15.21 MB / 0.8731 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithReset.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithReset.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithReset.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithReset_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_PIDWithReset_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_PIDWithReset.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithReset.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_PIDWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches