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.0008881/0.0008879, allocations: 92.78 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001112/0.001112, allocations: 179.4 kB / 16.92 MB, free: 6.652 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.373/1.373, allocations: 223.3 MB / 241 MB, free: 5.262 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.754/2.754, allocations: 462.7 MB / 0.7371 GB, free: 15.55 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003983/0.000399, allocations: 9.969 kB / 0.9034 GB, free: 36.38 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3577/0.3581, allocations: 159.6 MB / 1.059 GB, free: 4.977 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Validation.LimPIDReset): time 0.005053/0.3632, allocations: 3.893 MB / 1.063 GB, free: 1.062 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.003622/0.3669, allocations: 1.535 MB / 1.065 GB, free: 15.52 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001093/0.368, allocations: 35.81 kB / 1.065 GB, free: 15.48 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0005911/0.3686, allocations: 114.9 kB / 1.065 GB, free: 15.37 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.00123/0.3699, allocations: 182.8 kB / 1.065 GB, free: 15.19 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.001763/0.3716, allocations: 0.6118 MB / 1.066 GB, free: 14.59 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.001818/0.3735, allocations: 1.144 MB / 1.067 GB, free: 13.44 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001028/0.3745, allocations: 480.2 kB / 1.067 GB, free: 12.95 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007354/0.3752, allocations: 349.8 kB / 1.067 GB, free: 12.6 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006012/0.3759, allocations: 353.6 kB / 1.068 GB, free: 12.25 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.0001914/0.3761, allocations: 28 kB / 1.068 GB, free: 12.23 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001349/0.3762, allocations: 31.94 kB / 1.068 GB, free: 12.2 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001557/0.3764, allocations: 135.2 kB / 1.068 GB, free: 12.06 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.000484/0.3769, allocations: 418.7 kB / 1.068 GB, free: 11.64 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0007958/0.3777, allocations: 0.8029 MB / 1.069 GB, free: 10.84 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 7.945e-06/0.3777, allocations: 4 kB / 1.069 GB, free: 10.84 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.453e-06/0.3777, allocations: 7.875 kB / 1.069 GB, free: 10.83 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.605e-05/0.3777, allocations: 0 / 1.069 GB, free: 10.83 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: 168 * Number of variables: 168 Notification: Performance of Generate backend data structure: time 0.002671/0.3804, allocations: 1.232 MB / 1.07 GB, free: 9.547 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.79e-05/0.3805, allocations: 11.97 kB / 1.07 GB, free: 9.535 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003662/0.3809, allocations: 123.4 kB / 1.07 GB, free: 9.414 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001328/0.3822, allocations: 0.7391 MB / 1.071 GB, free: 8.633 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001054/0.3823, allocations: 84.25 kB / 1.071 GB, free: 8.543 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001137/0.3824, allocations: 68.38 kB / 1.071 GB, free: 8.477 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001351/0.3838, allocations: 0.7408 MB / 1.072 GB, free: 7.699 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.769e-05/0.3838, allocations: 8 kB / 1.072 GB, free: 7.691 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.582e-05/0.3839, allocations: 31.94 kB / 1.072 GB, free: 7.66 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.643e-05/0.3839, allocations: 19.98 kB / 1.072 GB, free: 7.641 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001107/0.385, allocations: 0.5322 MB / 1.073 GB, free: 7.109 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003594/0.3886, allocations: 2.29 MB / 1.075 GB, free: 4.75 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001577/0.3902, allocations: 0.6365 MB / 1.076 GB, free: 4.109 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005611/0.3908, allocations: 280 kB / 1.076 GB, free: 3.832 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 4.808e-05/0.3909, allocations: 8.562 kB / 1.076 GB, free: 3.824 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007587/0.3916, allocations: 331 kB / 1.076 GB, free: 3.492 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=60): time 3.727e-06/0.3916, allocations: 4 kB / 1.076 GB, free: 3.488 MB / 0.8262 GB Notification: Performance of matching and sorting (n=60): time 0.001847/0.3935, allocations: 0.7673 MB / 1.077 GB, free: 2.715 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.289e-05/0.3936, allocations: 85.67 kB / 1.077 GB, free: 2.613 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009821/0.3946, allocations: 0.7633 MB / 1.078 GB, free: 1.836 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 5.84e-05/0.3946, allocations: 37.7 kB / 1.078 GB, free: 1.793 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004284/0.3951, allocations: 440.5 kB / 1.078 GB, free: 1.359 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001879/0.3953, allocations: 201 kB / 1.078 GB, free: 1.16 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.011e-05/0.3954, allocations: 61.67 kB / 1.078 GB, free: 1.094 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001955/0.3956, allocations: 334 kB / 1.079 GB, free: 0.7617 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005027/0.3961, allocations: 209.2 kB / 1.079 GB, free: 0.5586 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005658/0.3967, allocations: 304.5 kB / 1.079 GB, free: 228 kB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001071/0.3977, allocations: 0.5192 MB / 1.08 GB, free: 15.67 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.029e-06/0.3978, allocations: 0 / 1.08 GB, free: 15.67 MB / 0.8419 GB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001357/0.3991, allocations: 0.6657 MB / 1.08 GB, free: 15 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001133/0.3992, allocations: 155.2 kB / 1.08 GB, free: 14.81 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.383e-05/0.3993, allocations: 7.938 kB / 1.081 GB, free: 14.8 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.087e-05/0.3993, allocations: 11.94 kB / 1.081 GB, free: 14.79 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000695/0.4, allocations: 147.8 kB / 1.081 GB, free: 14.65 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.961e-05/0.4, allocations: 7.938 kB / 1.081 GB, free: 14.64 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004759/0.4005, allocations: 75.34 kB / 1.081 GB, free: 14.57 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.616e-05/0.4006, allocations: 23.98 kB / 1.081 GB, free: 14.54 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.021e-05/0.4006, allocations: 13.34 kB / 1.081 GB, free: 14.53 MB / 0.8419 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001089/0.4017, allocations: 0.517 MB / 1.081 GB, free: 14.02 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/0.4017, allocations: 8.078 kB / 1.081 GB, free: 14.01 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.628e-06/0.4017, allocations: 7.984 kB / 1.081 GB, free: 14 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005912/0.4023, allocations: 143.8 kB / 1.081 GB, free: 13.86 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.43e-05/0.4023, allocations: 7.938 kB / 1.081 GB, free: 13.85 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000461/0.4028, allocations: 67.41 kB / 1.081 GB, free: 13.79 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.623e-05/0.4029, allocations: 20 kB / 1.082 GB, free: 13.77 MB / 0.8419 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.0004136/0.4033, allocations: 300.9 kB / 1.082 GB, free: 13.46 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001514/0.4034, allocations: 90.88 kB / 1.082 GB, free: 13.37 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002436/0.4037, allocations: 105.2 kB / 1.082 GB, free: 13.26 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.847e-06/0.4037, allocations: 8 kB / 1.082 GB, free: 13.25 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.646e-06/0.4037, allocations: 0 / 1.082 GB, free: 13.25 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.971e-06/0.4037, allocations: 0 / 1.082 GB, free: 13.25 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002463/0.4062, allocations: 1.462 MB / 1.083 GB, free: 11.73 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.386e-06/0.4062, allocations: 3.938 kB / 1.083 GB, free: 11.73 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005522/0.4068, allocations: 103.9 kB / 1.084 GB, free: 11.63 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.268e-06/0.4068, allocations: 4 kB / 1.084 GB, free: 11.62 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.617e-05/0.4068, allocations: 19.94 kB / 1.084 GB, free: 11.61 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.879e-06/0.4069, allocations: 4 kB / 1.084 GB, free: 11.6 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.4069, allocations: 0 / 1.084 GB, free: 11.6 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001782/0.4087, allocations: 0.9782 MB / 1.085 GB, free: 10.61 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003018/0.409, allocations: 223.7 kB / 1.085 GB, free: 10.37 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000103/0.4091, allocations: 16 kB / 1.085 GB, free: 10.36 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004814/0.4096, allocations: 47.95 kB / 1.085 GB, free: 10.31 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.178e-05/0.4097, allocations: 32.52 kB / 1.085 GB, free: 10.28 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.612e-05/0.4097, allocations: 19.98 kB / 1.085 GB, free: 10.26 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0007657/0.4105, allocations: 0.5185 MB / 1.085 GB, free: 9.746 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4105, allocations: 0 / 1.085 GB, free: 9.746 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.000876/0.4114, allocations: 279 kB / 1.086 GB, free: 9.473 MB / 0.8419 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.0001808/0.4116, allocations: 115.2 kB / 1.086 GB, free: 9.348 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001893/0.4135, allocations: 0.8036 MB / 1.087 GB, free: 8.543 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 5.821e-06/0.4135, allocations: 0 / 1.087 GB, free: 8.543 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0005706/0.4141, allocations: 279.7 kB / 1.087 GB, free: 8.273 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001344/0.4154, allocations: 240.1 kB / 1.087 GB, free: 8.043 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003302/0.4187, allocations: 1.977 MB / 1.089 GB, free: 6.027 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007014/0.4194, allocations: 0.9901 MB / 1.09 GB, free: 5.012 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002621/0.4197, allocations: 67.42 kB / 1.09 GB, free: 4.945 MB / 0.8419 GB Notification: Performance of SimCode: time 6.01e-07/0.4197, allocations: 4 kB / 1.09 GB, free: 4.941 MB / 0.8419 GB Notification: Performance of Templates: time 0.02086/0.4406, allocations: 10.78 MB / 1.1 GB, free: 10.21 MB / 0.8575 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/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