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.001686/0.001686, allocations: 117.8 kB / 17.13 MB, free: 5.758 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.001346/0.001346, allocations: 194.1 kB / 20.08 MB, free: 2.848 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.471/1.471, allocations: 225.6 MB / 248.5 MB, free: 3.633 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.629/2.629, allocations: 443.5 MB / 0.7293 GB, free: 14.73 MB / 0.5763 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.001986/0.001986, allocations: 67.84 kB / 1.057 GB, free: 2.199 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3147/0.3167, allocations: 160.7 MB / 1.214 GB, free: 1.164 MB / 0.9513 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.001964/0.3186, allocations: 0.729 MB / 1.215 GB, free: 432 kB / 0.9513 GB Notification: Performance of NFInst.instExpressions: time 0.001832/0.3205, allocations: 1.191 MB / 1.216 GB, free: 15.21 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.299e-05/0.3206, allocations: 0 / 1.216 GB, free: 15.21 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 4.693e-05/0.3206, allocations: 3.938 kB / 1.216 GB, free: 15.21 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0001191/0.3207, allocations: 15.86 kB / 1.216 GB, free: 15.2 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008265/0.3216, allocations: 138.8 kB / 1.216 GB, free: 15.06 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0002662/0.3218, allocations: 123.7 kB / 1.216 GB, free: 14.94 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001486/0.322, allocations: 12 kB / 1.216 GB, free: 14.93 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001191/0.3221, allocations: 43.91 kB / 1.216 GB, free: 14.89 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001255/0.3222, allocations: 47.86 kB / 1.216 GB, free: 14.84 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 3.464e-05/0.3222, allocations: 12 kB / 1.216 GB, free: 14.83 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 8.915e-05/0.3223, allocations: 23.98 kB / 1.216 GB, free: 14.8 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.466e-05/0.3224, allocations: 4 kB / 1.216 GB, free: 14.8 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 7.94e-05/0.3224, allocations: 47.83 kB / 1.216 GB, free: 14.75 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002718/0.3227, allocations: 115.6 kB / 1.216 GB, free: 14.64 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.3227, allocations: 0 / 1.216 GB, free: 14.64 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.683e-06/0.3227, allocations: 0 / 1.216 GB, free: 14.64 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 1.372e-05/0.3227, allocations: 0 / 1.216 GB, free: 14.64 MB / 0.9669 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.0008177/0.3235, allocations: 416.9 kB / 1.217 GB, free: 14.18 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.114e-05/0.3236, allocations: 8.031 kB / 1.217 GB, free: 14.17 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.696e-05/0.3236, allocations: 8.891 kB / 1.217 GB, free: 14.16 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001731/0.3238, allocations: 172.3 kB / 1.217 GB, free: 13.95 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.107e-05/0.3238, allocations: 8.375 kB / 1.217 GB, free: 13.95 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.937e-05/0.3239, allocations: 4.375 kB / 1.217 GB, free: 13.94 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002237/0.3241, allocations: 78.12 kB / 1.217 GB, free: 13.86 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.089e-05/0.3241, allocations: 192 / 1.217 GB, free: 13.86 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.325e-05/0.3241, allocations: 3.938 kB / 1.217 GB, free: 13.86 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.863e-06/0.3241, allocations: 4 kB / 1.217 GB, free: 13.85 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001898/0.3243, allocations: 39.95 kB / 1.217 GB, free: 13.81 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005687/0.3249, allocations: 332.6 kB / 1.218 GB, free: 13.44 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001749/0.3251, allocations: 50.48 kB / 1.218 GB, free: 13.38 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001025/0.3252, allocations: 32.91 kB / 1.218 GB, free: 13.34 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.159e-05/0.3252, allocations: 0 / 1.218 GB, free: 13.34 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002831/0.3255, allocations: 87.36 kB / 1.218 GB, free: 13.25 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 1.242e-06/0.3255, allocations: 0 / 1.218 GB, free: 13.25 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7): time 0.0004631/0.3259, allocations: 137.6 kB / 1.218 GB, free: 13.11 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.325e-05/0.326, allocations: 63.28 kB / 1.218 GB, free: 13.03 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001023/0.3261, allocations: 109.8 kB / 1.218 GB, free: 12.91 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.732e-05/0.3261, allocations: 33.7 kB / 1.218 GB, free: 12.88 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 7.437e-05/0.3262, allocations: 96.08 kB / 1.218 GB, free: 12.78 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.32e-05/0.3262, allocations: 15.91 kB / 1.218 GB, free: 12.76 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.309e-05/0.3263, allocations: 29.7 kB / 1.218 GB, free: 12.73 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001743/0.3265, allocations: 326.8 kB / 1.218 GB, free: 12.4 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001619/0.3266, allocations: 43.97 kB / 1.218 GB, free: 12.36 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001909/0.3268, allocations: 83.41 kB / 1.219 GB, free: 12.26 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000285/0.3271, allocations: 121 kB / 1.219 GB, free: 12.12 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.232e-06/0.3271, allocations: 8 kB / 1.219 GB, free: 12.12 MB / 0.9669 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004561/0.3276, allocations: 203.2 kB / 1.219 GB, free: 11.91 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 5.803e-05/0.3276, allocations: 38.17 kB / 1.219 GB, free: 11.86 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.3276, allocations: 0 / 1.219 GB, free: 11.86 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.569e-05/0.3276, allocations: 3.938 kB / 1.219 GB, free: 11.86 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001018/0.3277, allocations: 11.98 kB / 1.219 GB, free: 11.85 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.115e-06/0.3277, allocations: 4 kB / 1.219 GB, free: 11.84 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000208/0.328, allocations: 39.95 kB / 1.219 GB, free: 11.8 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.183e-05/0.328, allocations: 8 kB / 1.219 GB, free: 11.8 MB / 0.9669 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.0001124/0.3281, allocations: 129.3 kB / 1.219 GB, free: 11.66 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.429e-05/0.3281, allocations: 3.953 kB / 1.219 GB, free: 11.66 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003295/0.3284, allocations: 121.9 kB / 1.219 GB, free: 11.54 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.3284, allocations: 0 / 1.219 GB, free: 11.54 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.097e-06/0.3284, allocations: 0 / 1.219 GB, free: 11.54 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.596e-06/0.3284, allocations: 4 kB / 1.219 GB, free: 11.53 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004738/0.3289, allocations: 358.5 kB / 1.22 GB, free: 11.12 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.3289, allocations: 0 / 1.22 GB, free: 11.12 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.552e-05/0.329, allocations: 15.92 kB / 1.22 GB, free: 11.11 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.295e-06/0.329, allocations: 0 / 1.22 GB, free: 11.11 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.508e-06/0.329, allocations: 0 / 1.22 GB, free: 11.11 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.329, allocations: 0 / 1.22 GB, free: 11.11 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.329, allocations: 0 / 1.22 GB, free: 11.11 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003338/0.3293, allocations: 219.3 kB / 1.22 GB, free: 10.88 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.332e-05/0.3294, allocations: 85.06 kB / 1.22 GB, free: 10.78 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.079e-05/0.3294, allocations: 3.984 kB / 1.22 GB, free: 10.77 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.938e-05/0.3295, allocations: 8 kB / 1.22 GB, free: 10.77 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.665e-05/0.3296, allocations: 11.92 kB / 1.22 GB, free: 10.75 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.705e-06/0.3296, allocations: 0 / 1.22 GB, free: 10.75 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 7.099e-05/0.3296, allocations: 95.27 kB / 1.22 GB, free: 10.66 MB / 0.9669 GB Notification: Performance of sort global known variables: time 7e-08/0.3296, allocations: 0 / 1.22 GB, free: 10.66 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002769/0.3299, allocations: 27.94 kB / 1.22 GB, free: 10.63 MB / 0.9669 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.0001785/0.3301, allocations: 99.25 kB / 1.22 GB, free: 10.53 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0004443/0.3305, allocations: 155.3 kB / 1.22 GB, free: 10.36 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.3305, allocations: 0 / 1.22 GB, free: 10.36 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001258/0.3307, allocations: 36.09 kB / 1.22 GB, free: 10.33 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002955/0.331, allocations: 22.94 kB / 1.22 GB, free: 10.31 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004572/0.3314, allocations: 188.1 kB / 1.221 GB, free: 10.09 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003772/0.3318, allocations: 0.6846 MB / 1.221 GB, free: 9.379 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.077e-05/0.3318, allocations: 19.42 kB / 1.221 GB, free: 9.359 MB / 0.9669 GB Notification: Performance of SimCode: time 4.81e-07/0.3318, allocations: 4 kB / 1.221 GB, free: 9.355 MB / 0.9669 GB Notification: Performance of Templates: time 0.00336/0.3352, allocations: 1.191 MB / 1.222 GB, free: 8.168 MB / 0.9669 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.325822656974196]