Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001427/0.001427, allocations: 80.88 kB / 19.94 MB, free: 4.551 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001701/0.001701, allocations: 177.3 kB / 23.36 MB, free: 1.137 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.025/1.025, allocations: 177.1 MB / 203.8 MB, free: 5.445 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.493/2.493, allocations: 438.8 MB / 0.6826 GB, free: 13.6 MB / 0.6511 GB " [Timeout remaining time 177] Using package Buildings with version 14.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|booPul.y|sin1.y|triSam.y|triSam1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|booPul.y|sin1.y|triSam.y|triSam1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.154e-06/2.154e-06, allocations: 0 / 0.8386 GB, free: 14.2 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.317e-05/2.533e-05, allocations: 2.312 kB / 0.8386 GB, free: 14.2 MB / 0.8073 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.00499/0.005015, allocations: 0.8062 MB / 0.8394 GB, free: 13.39 MB / 0.8073 GB Notification: Performance of NFInst.instExpressions: time 0.001539/0.006554, allocations: 1.224 MB / 0.8406 GB, free: 12.16 MB / 0.8073 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.049e-05/0.006605, allocations: 0 / 0.8406 GB, free: 12.16 MB / 0.8073 GB Notification: Performance of NFTyping.typeComponents: time 3.234e-05/0.006637, allocations: 3.938 kB / 0.8406 GB, free: 12.15 MB / 0.8073 GB Notification: Performance of NFTyping.typeBindings: time 8.35e-05/0.00672, allocations: 15.86 kB / 0.8406 GB, free: 12.14 MB / 0.8073 GB Notification: Performance of NFTyping.typeClassSections: time 0.003466/0.01019, allocations: 139.6 kB / 0.8407 GB, free: 12 MB / 0.8073 GB Notification: Performance of NFFlatten.flatten: time 0.0001817/0.01037, allocations: 131.7 kB / 0.8409 GB, free: 11.87 MB / 0.8073 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001/0.01047, allocations: 12.17 kB / 0.8409 GB, free: 11.86 MB / 0.8073 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001263/0.01059, allocations: 71.94 kB / 0.8409 GB, free: 11.79 MB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 9.09e-05/0.01068, allocations: 43.86 kB / 0.841 GB, free: 11.74 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 2.458e-05/0.01071, allocations: 8 kB / 0.841 GB, free: 11.73 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 8.306e-05/0.01079, allocations: 27.94 kB / 0.841 GB, free: 11.71 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 2.349e-05/0.01082, allocations: 15.92 kB / 0.841 GB, free: 11.69 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 4.923e-05/0.01087, allocations: 39.95 kB / 0.8411 GB, free: 11.65 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 0.0001733/0.01104, allocations: 99.69 kB / 0.8412 GB, free: 11.55 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 2.845e-06/0.01104, allocations: 8 kB / 0.8412 GB, free: 11.55 MB / 0.8073 GB Notification: Performance of FrontEnd: time 1.042e-06/0.01104, allocations: 0 / 0.8412 GB, free: 11.55 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 4.047e-06/0.01105, allocations: 0 / 0.8412 GB, free: 11.55 MB / 0.8073 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0004194/0.01147, allocations: 314.3 kB / 0.8415 GB, free: 11.21 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.598e-05/0.0115, allocations: 12.03 kB / 0.8415 GB, free: 11.2 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001106/0.01161, allocations: 20.86 kB / 0.8415 GB, free: 11.18 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.49e-05/0.01171, allocations: 117.7 kB / 0.8416 GB, free: 11.04 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.539e-05/0.01172, allocations: 8.312 kB / 0.8416 GB, free: 11.03 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.883e-05/0.01174, allocations: 12.36 kB / 0.8416 GB, free: 11.02 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001261/0.01187, allocations: 66.94 kB / 0.8417 GB, free: 10.95 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.328e-06/0.01188, allocations: 8.188 kB / 0.8417 GB, free: 10.94 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.122e-05/0.01189, allocations: 8.359 kB / 0.8417 GB, free: 10.93 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.043e-06/0.0119, allocations: 4.125 kB / 0.8417 GB, free: 10.93 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.409e-05/0.01193, allocations: 12 kB / 0.8417 GB, free: 10.91 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003345/0.01226, allocations: 184.1 kB / 0.8419 GB, free: 10.72 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 7.822e-05/0.01234, allocations: 38.56 kB / 0.8419 GB, free: 10.67 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.767e-05/0.01236, allocations: 8.859 kB / 0.842 GB, free: 10.66 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.404e-05/0.01237, allocations: 96 / 0.842 GB, free: 10.66 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001142/0.01249, allocations: 91.16 kB / 0.842 GB, free: 10.56 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=8): time 1.273e-06/0.01249, allocations: 0 / 0.842 GB, free: 10.56 MB / 0.8073 GB Notification: Performance of matching and sorting (n=8): time 0.0001518/0.01264, allocations: 69.8 kB / 0.8421 GB, free: 10.48 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.831e-05/0.01268, allocations: 67.31 kB / 0.8422 GB, free: 10.41 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.161e-05/0.01275, allocations: 114.7 kB / 0.8423 GB, free: 10.28 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 2.257e-05/0.01277, allocations: 33.7 kB / 0.8423 GB, free: 10.24 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 4.358e-05/0.01282, allocations: 96.06 kB / 0.8424 GB, free: 10.14 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 2.17e-05/0.01284, allocations: 19.83 kB / 0.8424 GB, free: 10.12 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003079/0.01592, allocations: 33.7 kB / 0.8425 GB, free: 10.09 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 9.539e-05/0.01601, allocations: 322.8 kB / 0.8428 GB, free: 9.762 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.777e-05/0.01608, allocations: 49.69 kB / 0.8428 GB, free: 9.707 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003279/0.01641, allocations: 98.81 kB / 0.8429 GB, free: 9.586 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001078/0.01652, allocations: 106.8 kB / 0.843 GB, free: 9.457 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.01652, allocations: 3.938 kB / 0.843 GB, free: 9.453 MB / 0.8073 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001914/0.01671, allocations: 172.8 kB / 0.8432 GB, free: 9.266 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 3.378e-05/0.01674, allocations: 45.8 kB / 0.8432 GB, free: 9.215 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.01675, allocations: 0 / 0.8432 GB, free: 9.215 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.481e-05/0.01676, allocations: 4 kB / 0.8432 GB, free: 9.211 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.879e-05/0.01685, allocations: 15.98 kB / 0.8432 GB, free: 9.195 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.126e-06/0.01686, allocations: 0 / 0.8432 GB, free: 9.195 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001093/0.01697, allocations: 27.92 kB / 0.8433 GB, free: 9.168 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.833e-05/0.01698, allocations: 8 kB / 0.8433 GB, free: 9.16 MB / 0.8073 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 9 (triSam1.y,$PRE.triSam1.y,triSam.y,$PRE.triSam.y,booPul.y,$PRE.booPul.y,$whenCondition3,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 10 * 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 7.647e-05/0.01706, allocations: 117.8 kB / 0.8434 GB, free: 9.035 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.705e-05/0.01708, allocations: 19.92 kB / 0.8434 GB, free: 9.016 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.847e-05/0.01718, allocations: 62.11 kB / 0.8435 GB, free: 8.953 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.046e-06/0.01718, allocations: 4 kB / 0.8435 GB, free: 8.949 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.413e-06/0.01718, allocations: 0 / 0.8435 GB, free: 8.949 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.387e-06/0.01718, allocations: 0 / 0.8435 GB, free: 8.949 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001714/0.01736, allocations: 214.8 kB / 0.8437 GB, free: 8.715 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-06/0.01736, allocations: 4 kB / 0.8437 GB, free: 8.711 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.714e-05/0.01739, allocations: 7.938 kB / 0.8437 GB, free: 8.703 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.854e-06/0.0174, allocations: 0 / 0.8437 GB, free: 8.703 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.174e-06/0.0174, allocations: 3.984 kB / 0.8437 GB, free: 8.699 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.075e-06/0.01741, allocations: 4 kB / 0.8437 GB, free: 8.695 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.01741, allocations: 4 kB / 0.8437 GB, free: 8.691 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.793e-05/0.01751, allocations: 155.5 kB / 0.8438 GB, free: 8.523 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 1.288e-05/0.01752, allocations: 15.83 kB / 0.8439 GB, free: 8.508 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.121e-05/0.01753, allocations: 3.938 kB / 0.8439 GB, free: 8.504 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.833e-05/0.01759, allocations: 7.984 kB / 0.8439 GB, free: 8.496 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.081e-05/0.01762, allocations: 4 kB / 0.8439 GB, free: 8.492 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.424e-06/0.01763, allocations: 7.984 kB / 0.8439 GB, free: 8.484 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 1.799e-05/0.01764, allocations: 12.86 kB / 0.8439 GB, free: 8.469 MB / 0.8073 GB Notification: Performance of sort global known variables: time 7e-08/0.01764, allocations: 0 / 0.8439 GB, free: 8.469 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0002408/0.01789, allocations: 24 kB / 0.8439 GB, free: 8.445 MB / 0.8073 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition3,$whenCondition1,$whenCondition2,booPul.y,triSam.y,triSam1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0001164/0.018, allocations: 84.41 kB / 0.844 GB, free: 8.352 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0001724/0.01817, allocations: 157.8 kB / 0.8441 GB, free: 8.176 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.01818, allocations: 4 kB / 0.8441 GB, free: 8.172 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 3.667e-05/0.01821, allocations: 24.8 kB / 0.8442 GB, free: 8.145 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000195/0.01841, allocations: 14.33 kB / 0.8442 GB, free: 8.133 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001491/0.0199, allocations: 181.8 kB / 0.8444 GB, free: 7.93 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.287e-05/0.01994, allocations: 59.36 kB / 0.8444 GB, free: 7.852 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 3.665e-05/0.01998, allocations: 11.84 kB / 0.8444 GB, free: 7.84 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.621e-05/0.02008, allocations: 63.36 kB / 0.8445 GB, free: 7.777 MB / 0.8073 GB Notification: Performance of SimCode: time 9.22e-07/0.02008, allocations: 4 kB / 0.8445 GB, free: 7.773 MB / 0.8073 GB Notification: Performance of Templates: time 0.004367/0.02444, allocations: 1.654 MB / 0.8461 GB, free: 6.152 MB / 0.8073 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.437919889111072]