Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.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-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/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.OBC.CDL.Discrete.Validation.TriggeredMax,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|triggeredMax.u|triggeredMax.y|triggeredMax.trigger",fileNamePrefix="Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|triggeredMax.u|triggeredMax.y|triggeredMax.trigger",fileNamePrefix="Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001488/0.001488, allocations: 104.8 kB / 15.99 MB, free: 6.348 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.001459/0.001459, allocations: 198.1 kB / 16.91 MB, free: 6.188 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.361/1.361, allocations: 222.9 MB / 240.6 MB, free: 13.75 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.578/2.578, allocations: 469.8 MB / 0.7427 GB, free: 3.691 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001801/0.001801, allocations: 66.17 kB / 0.9087 GB, free: 14.25 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3013/0.3032, allocations: 159.1 MB / 1.064 GB, free: 15.12 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax): time 0.002086/0.3053, allocations: 0.7793 MB / 1.065 GB, free: 14.34 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001639/0.307, allocations: 1.194 MB / 1.066 GB, free: 13.13 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.455e-05/0.307, allocations: 0 / 1.066 GB, free: 13.13 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 3.916e-05/0.3071, allocations: 3.938 kB / 1.066 GB, free: 13.13 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 6.584e-05/0.3072, allocations: 11.92 kB / 1.066 GB, free: 13.12 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004963/0.3077, allocations: 131.4 kB / 1.066 GB, free: 12.99 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0001549/0.3078, allocations: 119.8 kB / 1.066 GB, free: 12.88 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 8.758e-05/0.3079, allocations: 15.97 kB / 1.066 GB, free: 12.86 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 8.774e-05/0.308, allocations: 47.91 kB / 1.066 GB, free: 12.81 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 7.55e-05/0.3081, allocations: 39.83 kB / 1.066 GB, free: 12.77 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 2.414e-05/0.3081, allocations: 16 kB / 1.066 GB, free: 12.76 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 6.509e-05/0.3082, allocations: 27.97 kB / 1.066 GB, free: 12.73 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 2.143e-05/0.3082, allocations: 11.94 kB / 1.066 GB, free: 12.72 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 6.064e-05/0.3083, allocations: 43.84 kB / 1.067 GB, free: 12.68 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0001292/0.3084, allocations: 75.83 kB / 1.067 GB, free: 12.6 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.3084, allocations: 0 / 1.067 GB, free: 12.6 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.292e-06/0.3085, allocations: 0 / 1.067 GB, free: 12.6 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 5.119e-06/0.3085, allocations: 0 / 1.067 GB, free: 12.6 MB / 0.8419 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0006328/0.3091, allocations: 409.3 kB / 1.067 GB, free: 12.14 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.658e-05/0.3091, allocations: 16.62 kB / 1.067 GB, free: 12.13 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.746e-05/0.3092, allocations: 8.844 kB / 1.067 GB, free: 12.12 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001279/0.3093, allocations: 168.3 kB / 1.067 GB, free: 11.92 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.446e-05/0.3094, allocations: 384 / 1.067 GB, free: 11.92 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.491e-05/0.3094, allocations: 8.375 kB / 1.067 GB, free: 11.91 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001976/0.3096, allocations: 66.22 kB / 1.067 GB, free: 11.84 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.075e-06/0.3096, allocations: 192 / 1.067 GB, free: 11.84 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.123e-05/0.3096, allocations: 3.938 kB / 1.067 GB, free: 11.84 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.847e-06/0.3096, allocations: 0 / 1.067 GB, free: 11.84 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001712/0.3098, allocations: 47.95 kB / 1.067 GB, free: 11.79 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004877/0.3103, allocations: 332.6 kB / 1.068 GB, free: 11.41 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001565/0.3105, allocations: 46.56 kB / 1.068 GB, free: 11.36 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.623e-05/0.3106, allocations: 40.86 kB / 1.068 GB, free: 11.32 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 1.871e-05/0.3106, allocations: 0 / 1.068 GB, free: 11.32 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002217/0.3108, allocations: 83.36 kB / 1.068 GB, free: 11.22 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=7): time 1.202e-06/0.3108, allocations: 0 / 1.068 GB, free: 11.22 MB / 0.8419 GB Notification: Performance of matching and sorting (n=7): time 0.0004315/0.3113, allocations: 141.5 kB / 1.068 GB, free: 11.08 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.843e-05/0.3113, allocations: 55.41 kB / 1.068 GB, free: 11.01 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001005/0.3114, allocations: 121.8 kB / 1.068 GB, free: 10.88 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.591e-05/0.3115, allocations: 25.7 kB / 1.068 GB, free: 10.85 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 6.22e-05/0.3115, allocations: 92.05 kB / 1.068 GB, free: 10.76 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 1.939e-05/0.3116, allocations: 16.19 kB / 1.068 GB, free: 10.74 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.153e-05/0.3116, allocations: 37.69 kB / 1.068 GB, free: 10.7 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001334/0.3118, allocations: 322.8 kB / 1.069 GB, free: 10.38 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001483/0.3119, allocations: 47.95 kB / 1.069 GB, free: 10.33 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001598/0.3121, allocations: 83.28 kB / 1.069 GB, free: 10.23 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000259/0.3124, allocations: 129.1 kB / 1.069 GB, free: 10.09 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.12e-06/0.3124, allocations: 4 kB / 1.069 GB, free: 10.09 MB / 0.8419 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004135/0.3128, allocations: 199.2 kB / 1.069 GB, free: 9.879 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 3.987e-05/0.3128, allocations: 35.89 kB / 1.069 GB, free: 9.84 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.94e-06/0.3129, allocations: 0 / 1.069 GB, free: 9.84 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.356e-05/0.3129, allocations: 0 / 1.069 GB, free: 9.84 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.009e-05/0.313, allocations: 12.05 kB / 1.069 GB, free: 9.828 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.496e-06/0.313, allocations: 8.312 kB / 1.069 GB, free: 9.82 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002119/0.3132, allocations: 39.86 kB / 1.069 GB, free: 9.781 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.038e-05/0.3132, allocations: 7.984 kB / 1.069 GB, free: 9.773 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: 7 ($whenCondition2,$whenCondition3,booPul.y,$PRE.booPul.y,$whenCondition1,triggeredMax.y,$PRE.triggeredMax.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 8 * 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.0001081/0.3133, allocations: 131.8 kB / 1.069 GB, free: 9.637 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.132e-05/0.3134, allocations: 0 / 1.069 GB, free: 9.637 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000291/0.3137, allocations: 118.1 kB / 1.069 GB, free: 9.516 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.698e-06/0.3137, allocations: 3.984 kB / 1.069 GB, free: 9.512 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/0.3137, allocations: 0 / 1.069 GB, free: 9.512 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.3137, allocations: 3.984 kB / 1.069 GB, free: 9.508 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004611/0.3142, allocations: 370.3 kB / 1.07 GB, free: 9.09 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.3142, allocations: 0 / 1.07 GB, free: 9.09 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.084e-05/0.3142, allocations: 11.94 kB / 1.07 GB, free: 9.078 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.404e-06/0.3142, allocations: 4 kB / 1.07 GB, free: 9.074 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.131e-05/0.3143, allocations: 3.984 kB / 1.07 GB, free: 9.07 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.492e-06/0.3143, allocations: 0 / 1.07 GB, free: 9.07 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.3143, allocations: 0 / 1.07 GB, free: 9.07 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002973/0.3146, allocations: 207.4 kB / 1.07 GB, free: 8.852 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 5.391e-05/0.3146, allocations: 85.02 kB / 1.07 GB, free: 8.75 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.017e-05/0.3147, allocations: 8 kB / 1.07 GB, free: 8.742 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.797e-05/0.3148, allocations: 7.984 kB / 1.07 GB, free: 8.734 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.289e-05/0.3148, allocations: 7.938 kB / 1.07 GB, free: 8.727 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.235e-06/0.3148, allocations: 3.984 kB / 1.07 GB, free: 8.723 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 5.245e-05/0.3149, allocations: 91.31 kB / 1.07 GB, free: 8.633 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3149, allocations: 0 / 1.07 GB, free: 8.633 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002549/0.3151, allocations: 24 kB / 1.07 GB, free: 8.609 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition2,$whenCondition3,$whenCondition1,triggeredMax.y,booPul.y) * Number of discrete states: 1 (triggeredMax.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * 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.0001605/0.3153, allocations: 103.2 kB / 1.07 GB, free: 8.5 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0003877/0.3157, allocations: 175.3 kB / 1.07 GB, free: 8.316 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.3157, allocations: 0 / 1.07 GB, free: 8.316 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001193/0.3158, allocations: 39.91 kB / 1.07 GB, free: 8.277 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002649/0.3161, allocations: 9.688 kB / 1.07 GB, free: 8.27 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003801/0.3165, allocations: 196.4 kB / 1.071 GB, free: 8.047 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003077/0.3168, allocations: 0.6885 MB / 1.071 GB, free: 7.332 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.736e-05/0.3169, allocations: 11.44 kB / 1.071 GB, free: 7.32 MB / 0.8419 GB Notification: Performance of SimCode: time 2.1e-07/0.3169, allocations: 0 / 1.071 GB, free: 7.32 MB / 0.8419 GB Notification: Performance of Templates: time 0.002957/0.3198, allocations: 1.206 MB / 1.072 GB, free: 6.125 MB / 0.8419 GB make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.makefile (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.sim & ./Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredMax.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches