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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002029/0.002029, allocations: 120 kB / 17.08 MB, free: 5.789 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002099/0.002099, allocations: 191.7 kB / 20.03 MB, free: 2.91 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.529/1.529, allocations: 222.9 MB / 245.7 MB, free: 4.207 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.933/2.933, allocations: 437.1 MB / 0.7177 GB, free: 4.508 MB / 0.5606 GB " [Timeout remaining time 177] 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=2500,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=2500,variableFilter="time|triggeredMax.u|triggeredMax.y|triggeredMax.trigger",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001995/0.001995, allocations: 67.89 kB / 1.028 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3174/0.3194, allocations: 151.6 MB / 1.176 GB, free: 5.922 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.002109/0.3215, allocations: 0.7399 MB / 1.177 GB, free: 5.172 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001889/0.3234, allocations: 1.183 MB / 1.178 GB, free: 3.973 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.185e-05/0.3235, allocations: 0 / 1.178 GB, free: 3.973 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 3.901e-05/0.3236, allocations: 11.92 kB / 1.178 GB, free: 3.961 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 7.665e-05/0.3237, allocations: 3.938 kB / 1.178 GB, free: 3.957 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006057/0.3243, allocations: 147.5 kB / 1.178 GB, free: 3.816 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0002144/0.3245, allocations: 123.8 kB / 1.178 GB, free: 3.695 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001267/0.3246, allocations: 15.98 kB / 1.178 GB, free: 3.68 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001057/0.3247, allocations: 47.89 kB / 1.178 GB, free: 3.633 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001118/0.3249, allocations: 39.89 kB / 1.178 GB, free: 3.594 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 2.815e-05/0.3249, allocations: 8 kB / 1.178 GB, free: 3.586 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 7.731e-05/0.325, allocations: 23.98 kB / 1.178 GB, free: 3.562 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 3.201e-05/0.325, allocations: 19.91 kB / 1.178 GB, free: 3.543 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 7.805e-05/0.3251, allocations: 43.84 kB / 1.178 GB, free: 3.5 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0002079/0.3253, allocations: 107.7 kB / 1.178 GB, free: 3.395 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 7.123e-06/0.3253, allocations: 4 kB / 1.178 GB, free: 3.391 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.382e-06/0.3253, allocations: 0 / 1.178 GB, free: 3.391 MB / 0.92 GB Notification: Performance of Transformations before backend: time 5.691e-06/0.3253, allocations: 0 / 1.178 GB, free: 3.391 MB / 0.92 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.0007399/0.3261, allocations: 411.3 kB / 1.179 GB, free: 2.934 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.828e-05/0.3261, allocations: 8.031 kB / 1.179 GB, free: 2.926 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.446e-05/0.3262, allocations: 8.891 kB / 1.179 GB, free: 2.918 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001642/0.3264, allocations: 176.2 kB / 1.179 GB, free: 2.707 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.117e-05/0.3264, allocations: 16.34 kB / 1.179 GB, free: 2.691 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.755e-05/0.3264, allocations: 8.375 kB / 1.179 GB, free: 2.684 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002307/0.3267, allocations: 66.22 kB / 1.179 GB, free: 2.613 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.939e-06/0.3267, allocations: 192 / 1.179 GB, free: 2.613 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.531e-05/0.3267, allocations: 3.938 kB / 1.179 GB, free: 2.609 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.033e-06/0.3267, allocations: 0 / 1.179 GB, free: 2.609 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001938/0.3269, allocations: 47.89 kB / 1.179 GB, free: 2.562 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005511/0.3275, allocations: 332.6 kB / 1.179 GB, free: 2.188 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001758/0.3277, allocations: 50.55 kB / 1.179 GB, free: 2.129 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001077/0.3278, allocations: 28.94 kB / 1.179 GB, free: 2.098 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 2.07e-05/0.3278, allocations: 0 / 1.179 GB, free: 2.098 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002847/0.3281, allocations: 95.36 kB / 1.179 GB, free: 1.992 MB / 0.92 GB Notification: Performance of pre-optimization done (n=7): time 1.423e-06/0.3281, allocations: 0 / 1.179 GB, free: 1.992 MB / 0.92 GB Notification: Performance of matching and sorting (n=7): time 0.0004836/0.3286, allocations: 137.6 kB / 1.18 GB, free: 1.852 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001615/0.3288, allocations: 51.41 kB / 1.18 GB, free: 1.789 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001202/0.3289, allocations: 109.8 kB / 1.18 GB, free: 1.672 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 3.013e-05/0.3289, allocations: 29.7 kB / 1.18 GB, free: 1.637 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 7.841e-05/0.329, allocations: 96.09 kB / 1.18 GB, free: 1.539 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.654e-05/0.329, allocations: 15.89 kB / 1.18 GB, free: 1.523 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.352e-05/0.3291, allocations: 37.7 kB / 1.18 GB, free: 1.48 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001734/0.3293, allocations: 322.8 kB / 1.18 GB, free: 1.156 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001686/0.3295, allocations: 51.91 kB / 1.18 GB, free: 1.105 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002149/0.3297, allocations: 75.39 kB / 1.18 GB, free: 1.02 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002841/0.33, allocations: 129 kB / 1.18 GB, free: 0.875 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.33, allocations: 0 / 1.18 GB, free: 0.875 MB / 0.92 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004592/0.3305, allocations: 203.2 kB / 1.181 GB, free: 0.6641 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 4.804e-05/0.3305, allocations: 42.16 kB / 1.181 GB, free: 0.6172 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.3305, allocations: 320 / 1.181 GB, free: 0.6172 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.334e-05/0.3306, allocations: 0 / 1.181 GB, free: 0.6172 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001007/0.3307, allocations: 11.98 kB / 1.181 GB, free: 0.6055 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.007e-06/0.3307, allocations: 7.938 kB / 1.181 GB, free: 0.5977 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002033/0.3309, allocations: 31.91 kB / 1.181 GB, free: 0.5664 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.617e-05/0.3309, allocations: 11.97 kB / 1.181 GB, free: 0.5547 MB / 0.92 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.000117/0.3311, allocations: 133.8 kB / 1.181 GB, free: 424 kB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.546e-05/0.3311, allocations: 7.953 kB / 1.181 GB, free: 416 kB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003593/0.3314, allocations: 114 kB / 1.181 GB, free: 296 kB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.414e-06/0.3315, allocations: 0 / 1.181 GB, free: 296 kB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.656e-06/0.3315, allocations: 0 / 1.181 GB, free: 296 kB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.957e-06/0.3315, allocations: 7.875 kB / 1.181 GB, free: 288 kB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005879/0.3321, allocations: 362.5 kB / 1.181 GB, free: 15.87 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.3321, allocations: 0 / 1.181 GB, free: 15.87 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.406e-05/0.3322, allocations: 11.98 kB / 1.181 GB, free: 15.86 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.974e-06/0.3322, allocations: 0 / 1.181 GB, free: 15.86 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.247e-05/0.3322, allocations: 4 kB / 1.181 GB, free: 15.86 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.3322, allocations: 0 / 1.181 GB, free: 15.86 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.3322, allocations: 4 kB / 1.181 GB, free: 15.85 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003407/0.3325, allocations: 207.4 kB / 1.182 GB, free: 15.63 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 5.633e-05/0.3326, allocations: 89.05 kB / 1.182 GB, free: 15.53 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.944e-05/0.3326, allocations: 0 / 1.182 GB, free: 15.53 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.928e-05/0.3327, allocations: 7.984 kB / 1.182 GB, free: 15.52 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.022e-05/0.3328, allocations: 15.92 kB / 1.182 GB, free: 15.5 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.284e-06/0.3328, allocations: 0 / 1.182 GB, free: 15.5 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 5.913e-05/0.3329, allocations: 87.28 kB / 1.182 GB, free: 15.42 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3329, allocations: 4 kB / 1.182 GB, free: 15.41 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002621/0.3331, allocations: 23.98 kB / 1.182 GB, free: 15.39 MB / 0.9356 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.0001668/0.3333, allocations: 103.2 kB / 1.182 GB, free: 15.28 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0004309/0.3337, allocations: 171.2 kB / 1.182 GB, free: 15.1 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.494e-06/0.3338, allocations: 0 / 1.182 GB, free: 15.1 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001374/0.3339, allocations: 48.03 kB / 1.182 GB, free: 15.05 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000284/0.3342, allocations: 8.219 kB / 1.182 GB, free: 15.05 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004333/0.3346, allocations: 196.1 kB / 1.182 GB, free: 14.82 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003876/0.335, allocations: 0.6846 MB / 1.183 GB, free: 14.11 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.183e-05/0.3351, allocations: 11.44 kB / 1.183 GB, free: 14.1 MB / 0.9356 GB Notification: Performance of SimCode: time 2.3e-07/0.3351, allocations: 0 / 1.183 GB, free: 14.1 MB / 0.9356 GB Notification: Performance of Templates: time 0.00331/0.3384, allocations: 1.198 MB / 1.184 GB, free: 12.91 MB / 0.9356 GB " [Timeout remaining time 300] make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.makefile [Timeout 300] (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=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe 2>&1) [Timeout 400] 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_2/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 10.806942250928842]