Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.Examples.TriggeredMax,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|triggeredMax.u|triggeredMax.y|triggeredMax.trigger",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|triggeredMax.u|triggeredMax.y|triggeredMax.trigger",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001481/0.001481, allocations: 104.5 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.001472/0.001472, allocations: 191.6 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.378/1.378, allocations: 222.9 MB / 240.6 MB, free: 13.74 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.58/2.58, allocations: 437 MB / 0.7107 GB, free: 4.684 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001225/0.001225, allocations: 64.81 kB / 0.8694 GB, free: 2.57 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2972/0.2985, allocations: 151.6 MB / 1.017 GB, free: 11.02 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.002105/0.3006, allocations: 0.7878 MB / 1.018 GB, free: 10.23 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001495/0.3021, allocations: 1.192 MB / 1.019 GB, free: 9.023 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.584e-05/0.3022, allocations: 0 / 1.019 GB, free: 9.023 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 3.445e-05/0.3022, allocations: 0 / 1.019 GB, free: 9.023 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 7.38e-05/0.3023, allocations: 11.92 kB / 1.019 GB, free: 9.012 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005254/0.3029, allocations: 124.9 kB / 1.02 GB, free: 8.895 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0001571/0.303, allocations: 123.8 kB / 1.02 GB, free: 8.773 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 9.406e-05/0.3031, allocations: 11.98 kB / 1.02 GB, free: 8.762 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001654/0.3033, allocations: 43.91 kB / 1.02 GB, free: 8.719 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 8.116e-05/0.3034, allocations: 51.75 kB / 1.02 GB, free: 8.668 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 2.445e-05/0.3034, allocations: 12 kB / 1.02 GB, free: 8.656 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 6.656e-05/0.3035, allocations: 19.98 kB / 1.02 GB, free: 8.637 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 2.077e-05/0.3035, allocations: 12 kB / 1.02 GB, free: 8.625 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 6.977e-05/0.3036, allocations: 47.83 kB / 1.02 GB, free: 8.578 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0001788/0.3038, allocations: 75.83 kB / 1.02 GB, free: 8.504 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 3.477e-06/0.3038, allocations: 0 / 1.02 GB, free: 8.504 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.132e-06/0.3038, allocations: 0 / 1.02 GB, free: 8.504 MB / 0.795 GB Notification: Performance of Transformations before backend: time 5.149e-06/0.3038, allocations: 0 / 1.02 GB, free: 8.504 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0006506/0.3045, allocations: 413.1 kB / 1.02 GB, free: 8.043 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.042e-05/0.3045, allocations: 8.031 kB / 1.02 GB, free: 8.035 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.159e-05/0.3046, allocations: 12.84 kB / 1.02 GB, free: 8.023 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001284/0.3047, allocations: 164.4 kB / 1.02 GB, free: 7.824 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.46e-05/0.3047, allocations: 4.375 kB / 1.02 GB, free: 7.82 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.973e-05/0.3048, allocations: 16.38 kB / 1.021 GB, free: 7.805 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000212/0.305, allocations: 66.16 kB / 1.021 GB, free: 7.734 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.963e-06/0.305, allocations: 4.188 kB / 1.021 GB, free: 7.73 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.459e-05/0.305, allocations: 3.938 kB / 1.021 GB, free: 7.727 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.985e-06/0.305, allocations: 7.969 kB / 1.021 GB, free: 7.719 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001767/0.3052, allocations: 39.97 kB / 1.021 GB, free: 7.68 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005097/0.3057, allocations: 324.6 kB / 1.021 GB, free: 7.312 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001553/0.3059, allocations: 50.5 kB / 1.021 GB, free: 7.254 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000121/0.306, allocations: 28.92 kB / 1.021 GB, free: 7.223 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 2.182e-05/0.3061, allocations: 11.94 kB / 1.021 GB, free: 7.211 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002006/0.3063, allocations: 83.42 kB / 1.021 GB, free: 7.117 MB / 0.795 GB Notification: Performance of pre-optimization done (n=7): time 1.623e-06/0.3063, allocations: 4 kB / 1.021 GB, free: 7.113 MB / 0.795 GB Notification: Performance of matching and sorting (n=7): time 0.0004308/0.3067, allocations: 133.5 kB / 1.021 GB, free: 6.977 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.05e-05/0.3068, allocations: 59.41 kB / 1.021 GB, free: 6.906 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001127/0.3069, allocations: 121.8 kB / 1.021 GB, free: 6.777 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 2.47e-05/0.3069, allocations: 25.7 kB / 1.021 GB, free: 6.746 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 5.416e-05/0.307, allocations: 88.14 kB / 1.022 GB, free: 6.656 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 2.181e-05/0.307, allocations: 23.7 kB / 1.022 GB, free: 6.633 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.25e-05/0.3071, allocations: 37.69 kB / 1.022 GB, free: 6.59 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001046/0.3072, allocations: 318.8 kB / 1.022 GB, free: 6.27 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001716/0.3074, allocations: 51.95 kB / 1.022 GB, free: 6.219 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001707/0.3075, allocations: 79.72 kB / 1.022 GB, free: 6.129 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00025/0.3078, allocations: 137 kB / 1.022 GB, free: 5.977 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.3078, allocations: 0 / 1.022 GB, free: 5.977 MB / 0.795 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004/0.3082, allocations: 191.2 kB / 1.022 GB, free: 5.777 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 4.338e-05/0.3083, allocations: 33.8 kB / 1.022 GB, free: 5.738 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.114e-06/0.3083, allocations: 7.938 kB / 1.022 GB, free: 5.73 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.165e-05/0.3083, allocations: 0 / 1.022 GB, free: 5.73 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.278e-05/0.3084, allocations: 11.98 kB / 1.022 GB, free: 5.719 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.254e-06/0.3084, allocations: 4 kB / 1.022 GB, free: 5.715 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002155/0.3086, allocations: 39.92 kB / 1.022 GB, free: 5.676 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.116e-05/0.3087, allocations: 11.98 kB / 1.022 GB, free: 5.664 MB / 0.795 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 9.035e-05/0.3088, allocations: 121.7 kB / 1.023 GB, free: 5.535 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.204e-05/0.3088, allocations: 4 kB / 1.023 GB, free: 5.531 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002869/0.3091, allocations: 118.2 kB / 1.023 GB, free: 5.406 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.611e-06/0.3091, allocations: 8 kB / 1.023 GB, free: 5.398 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.713e-06/0.3091, allocations: 3.984 kB / 1.023 GB, free: 5.395 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.427e-06/0.3091, allocations: 0 / 1.023 GB, free: 5.395 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004489/0.3096, allocations: 362.4 kB / 1.023 GB, free: 4.984 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.996e-06/0.3096, allocations: 4 kB / 1.023 GB, free: 4.98 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.255e-05/0.3096, allocations: 8 kB / 1.023 GB, free: 4.973 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.854e-06/0.3097, allocations: 3.938 kB / 1.023 GB, free: 4.969 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.112e-05/0.3097, allocations: 7.984 kB / 1.023 GB, free: 4.961 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.3097, allocations: 0 / 1.023 GB, free: 4.961 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.3097, allocations: 0 / 1.023 GB, free: 4.961 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002853/0.31, allocations: 207.3 kB / 1.023 GB, free: 4.742 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 4.05e-05/0.31, allocations: 85.02 kB / 1.023 GB, free: 4.641 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.81e-05/0.31, allocations: 0 / 1.023 GB, free: 4.641 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.196e-05/0.3101, allocations: 11.98 kB / 1.023 GB, free: 4.629 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.175e-05/0.3102, allocations: 7.938 kB / 1.023 GB, free: 4.621 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.828e-06/0.3102, allocations: 3.984 kB / 1.023 GB, free: 4.617 MB / 0.795 GB Notification: Performance of sorting global known variables: time 4.568e-05/0.3103, allocations: 91.22 kB / 1.023 GB, free: 4.527 MB / 0.795 GB Notification: Performance of sort global known variables: time 1e-07/0.3103, allocations: 0 / 1.023 GB, free: 4.527 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0003446/0.3106, allocations: 28 kB / 1.023 GB, free: 4.5 MB / 0.795 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.0001481/0.3108, allocations: 107.6 kB / 1.024 GB, free: 4.387 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0003868/0.3112, allocations: 179.2 kB / 1.024 GB, free: 4.199 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.3112, allocations: 3.938 kB / 1.024 GB, free: 4.195 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0001169/0.3113, allocations: 35.97 kB / 1.024 GB, free: 4.16 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002676/0.3116, allocations: 10.5 kB / 1.024 GB, free: 4.152 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003536/0.3119, allocations: 204.5 kB / 1.024 GB, free: 3.918 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002775/0.3122, allocations: 0.6899 MB / 1.025 GB, free: 3.203 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.872e-05/0.3123, allocations: 11.44 kB / 1.025 GB, free: 3.195 MB / 0.795 GB Notification: Performance of SimCode: time 2.5e-07/0.3123, allocations: 0 / 1.025 GB, free: 3.195 MB / 0.795 GB Notification: Performance of Templates: time 0.002777/0.3151, allocations: 1.189 MB / 1.026 GB, free: 2.02 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches