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 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: translateModel(Buildings.Controls.Continuous.Validation.LimPIDReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|setPoi.y|mea.y|trigger.y|limPIDDef.y|limPIDDef.controlError|limPIDPar.y|limPIDPar.y_reset|limPIDInp.y|limPIDInp.y_reset_in",fileNamePrefix="Buildings_latest_Buildings.Controls.Continuous.Validation.LimPIDReset") translateModel(Buildings.Controls.Continuous.Validation.LimPIDReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|setPoi.y|mea.y|trigger.y|limPIDDef.y|limPIDDef.controlError|limPIDPar.y|limPIDPar.y_reset|limPIDInp.y|limPIDInp.y_reset_in",fileNamePrefix="Buildings_latest_Buildings.Controls.Continuous.Validation.LimPIDReset") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001131/0.001131, allocations: 98.03 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.009308/0.009308, allocations: 168.9 kB / 16.26 MB, free: 6.656 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.393/1.393, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/Experimental/DHC/UsersGuide/package.mo:2:1-389:15:writable] Warning: UsersGuide was referenced in the package.order file, but was not found in package.mo, UsersGuide/package.mo or UsersGuide.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.6/2.6, allocations: 443.3 MB / 0.7175 GB, free: 1.398 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003443/0.0003444, allocations: 12 kB / 0.8796 GB, free: 41.52 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3/0.3004, allocations: 155.2 MB / 1.031 GB, free: 4.324 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Validation.LimPIDReset): time 0.004269/0.3047, allocations: 3.89 MB / 1.035 GB, free: 420 kB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002752/0.3074, allocations: 1.538 MB / 1.036 GB, free: 14.86 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004725/0.3079, allocations: 31.81 kB / 1.036 GB, free: 14.83 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0003479/0.3083, allocations: 126.8 kB / 1.037 GB, free: 14.71 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0005888/0.3089, allocations: 186.8 kB / 1.037 GB, free: 14.52 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.001181/0.3101, allocations: 0.6149 MB / 1.037 GB, free: 13.92 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.001072/0.3112, allocations: 1.14 MB / 1.038 GB, free: 12.78 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007046/0.3119, allocations: 480.5 kB / 1.039 GB, free: 12.28 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004438/0.3123, allocations: 345.9 kB / 1.039 GB, free: 11.94 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003955/0.3127, allocations: 353.5 kB / 1.04 GB, free: 11.59 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 7.612e-05/0.3128, allocations: 28 kB / 1.04 GB, free: 11.57 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 6.506e-05/0.3129, allocations: 24 kB / 1.04 GB, free: 11.54 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0001259/0.313, allocations: 151 kB / 1.04 GB, free: 11.39 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0002937/0.3133, allocations: 410.8 kB / 1.04 GB, free: 10.98 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0007842/0.3141, allocations: 1.015 MB / 1.041 GB, free: 9.965 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.3141, allocations: 0 / 1.041 GB, free: 9.965 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.523e-06/0.3141, allocations: 0 / 1.041 GB, free: 9.965 MB / 0.795 GB Notification: Performance of Transformations before backend: time 1.325e-05/0.3141, allocations: 0 / 1.041 GB, free: 9.965 MB / 0.795 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.002082/0.3162, allocations: 1.243 MB / 1.042 GB, free: 8.668 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.01e-05/0.3163, allocations: 11.98 kB / 1.042 GB, free: 8.656 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001734/0.3165, allocations: 123.4 kB / 1.042 GB, free: 8.535 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001122/0.3176, allocations: 0.7314 MB / 1.043 GB, free: 7.762 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.473e-05/0.3177, allocations: 88.27 kB / 1.043 GB, free: 7.668 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001014/0.3178, allocations: 72.36 kB / 1.043 GB, free: 7.598 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00127/0.3191, allocations: 0.7407 MB / 1.044 GB, free: 6.824 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.385e-05/0.3191, allocations: 0 / 1.044 GB, free: 6.824 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.258e-05/0.3192, allocations: 28 kB / 1.044 GB, free: 6.797 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.425e-05/0.3192, allocations: 16 kB / 1.044 GB, free: 6.781 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001136/0.3203, allocations: 0.536 MB / 1.045 GB, free: 6.242 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00335/0.3237, allocations: 2.29 MB / 1.047 GB, free: 3.879 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001472/0.3252, allocations: 0.631 MB / 1.047 GB, free: 3.242 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008632/0.3261, allocations: 280 kB / 1.048 GB, free: 2.969 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 5.737e-05/0.3261, allocations: 8.562 kB / 1.048 GB, free: 2.957 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009886/0.3271, allocations: 334.9 kB / 1.048 GB, free: 2.621 MB / 0.795 GB Notification: Performance of pre-optimization done (n=60): time 3.557e-06/0.3272, allocations: 4 kB / 1.048 GB, free: 2.617 MB / 0.795 GB Notification: Performance of matching and sorting (n=60): time 0.002649/0.3298, allocations: 0.7751 MB / 1.049 GB, free: 1.836 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.813e-05/0.3299, allocations: 81.67 kB / 1.049 GB, free: 1.738 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001574/0.3315, allocations: 0.7594 MB / 1.05 GB, free: 0.9648 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 0.0001152/0.3316, allocations: 41.7 kB / 1.05 GB, free: 0.918 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005173/0.3322, allocations: 440.5 kB / 1.05 GB, free: 496 kB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002573/0.3324, allocations: 205 kB / 1.05 GB, free: 288 kB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001255/0.3326, allocations: 61.67 kB / 1.05 GB, free: 220 kB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.000176/0.3328, allocations: 326 kB / 1.051 GB, free: 15.89 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007351/0.3335, allocations: 205.2 kB / 1.051 GB, free: 15.69 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008389/0.3344, allocations: 312.4 kB / 1.051 GB, free: 15.35 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001593/0.336, allocations: 0.5231 MB / 1.052 GB, free: 14.79 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.959e-06/0.336, allocations: 4 kB / 1.052 GB, free: 14.79 MB / 0.8106 GB Notification: Performance of matching and sorting (n=76) (initialization): time 0.002105/0.3381, allocations: 0.6619 MB / 1.052 GB, free: 14.12 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001386/0.3383, allocations: 155.2 kB / 1.052 GB, free: 13.93 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.387e-05/0.3383, allocations: 7.875 kB / 1.052 GB, free: 13.93 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.36e-05/0.3383, allocations: 8 kB / 1.052 GB, free: 13.92 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001061/0.3394, allocations: 147.8 kB / 1.053 GB, free: 13.77 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.629e-05/0.3394, allocations: 4 kB / 1.053 GB, free: 13.77 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008176/0.3403, allocations: 83.25 kB / 1.053 GB, free: 13.69 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.489e-05/0.3403, allocations: 20 kB / 1.053 GB, free: 13.67 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.443e-05/0.3404, allocations: 5.875 kB / 1.053 GB, free: 13.66 MB / 0.8106 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00178/0.3422, allocations: 0.5284 MB / 1.053 GB, free: 13.14 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.866e-06/0.3422, allocations: 7.938 kB / 1.053 GB, free: 13.13 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.218e-05/0.3422, allocations: 4 kB / 1.053 GB, free: 13.13 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001079/0.3433, allocations: 144 kB / 1.053 GB, free: 12.99 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.505e-05/0.3433, allocations: 4 kB / 1.053 GB, free: 12.98 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008361/0.3442, allocations: 71.44 kB / 1.053 GB, free: 12.91 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.406e-05/0.3443, allocations: 20 kB / 1.054 GB, free: 12.89 MB / 0.8106 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.000615/0.3449, allocations: 296.9 kB / 1.054 GB, free: 12.59 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002353/0.3452, allocations: 94.78 kB / 1.054 GB, free: 12.5 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003275/0.3455, allocations: 105.2 kB / 1.054 GB, free: 12.39 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.615e-05/0.3455, allocations: 8 kB / 1.054 GB, free: 12.39 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.368e-05/0.3456, allocations: 7.922 kB / 1.054 GB, free: 12.38 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.977e-06/0.3456, allocations: 0 / 1.054 GB, free: 12.38 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004008/0.3496, allocations: 1.462 MB / 1.055 GB, free: 10.86 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.671e-06/0.3496, allocations: 0 / 1.055 GB, free: 10.86 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001028/0.3507, allocations: 107.9 kB / 1.056 GB, free: 10.75 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.192e-05/0.3507, allocations: 4 kB / 1.056 GB, free: 10.75 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.834e-05/0.3508, allocations: 19.94 kB / 1.056 GB, free: 10.73 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.102e-06/0.3508, allocations: 0 / 1.056 GB, free: 10.73 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.953e-06/0.3508, allocations: 0 / 1.056 GB, free: 10.73 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003338/0.3541, allocations: 0.9821 MB / 1.057 GB, free: 9.73 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005177/0.3547, allocations: 227.7 kB / 1.057 GB, free: 9.488 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000145/0.3549, allocations: 12 kB / 1.057 GB, free: 9.477 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007971/0.3557, allocations: 39.95 kB / 1.057 GB, free: 9.438 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001364/0.3558, allocations: 36.52 kB / 1.057 GB, free: 9.402 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.21e-05/0.3559, allocations: 23.98 kB / 1.057 GB, free: 9.379 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.001289/0.3572, allocations: 0.5146 MB / 1.057 GB, free: 8.871 MB / 0.8106 GB Notification: Performance of sort global known variables: time 5.21e-07/0.3572, allocations: 0 / 1.057 GB, free: 8.871 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.001334/0.3586, allocations: 279 kB / 1.058 GB, free: 8.598 MB / 0.8106 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.0002274/0.3588, allocations: 118.8 kB / 1.058 GB, free: 8.477 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.003154/0.362, allocations: 0.808 MB / 1.059 GB, free: 7.668 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 5.16e-06/0.362, allocations: 0 / 1.059 GB, free: 7.668 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0009617/0.363, allocations: 271.1 kB / 1.059 GB, free: 7.406 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002126/0.3651, allocations: 249.3 kB / 1.059 GB, free: 7.164 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005046/0.3702, allocations: 1.932 MB / 1.061 GB, free: 5.191 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009523/0.3712, allocations: 0.9901 MB / 1.062 GB, free: 4.176 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0009591/0.3722, allocations: 118.7 kB / 1.062 GB, free: 4.055 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003241/0.3725, allocations: 63.44 kB / 1.062 GB, free: 3.992 MB / 0.8106 GB Notification: Performance of SimCode: time 1.413e-06/0.3725, allocations: 0 / 1.062 GB, free: 3.992 MB / 0.8106 GB Notification: Performance of Templates: time 0.0325/0.405, allocations: 8.693 MB / 1.071 GB, free: 11.39 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Controls.Continuous.Validation.LimPIDReset.makefile (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 & ./Buildings_latest_Buildings.Controls.Continuous.Validation.LimPIDReset -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.Continuous.Validation.LimPIDReset.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.Continuous.Validation.LimPIDReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_Continuous_Validation_LimPIDReset.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.Continuous.Validation.LimPIDReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches