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.001996/0.001996, allocations: 79.73 kB / 19.76 MB, free: 1.871 MB / 14.72 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.001971/0.001971, allocations: 157.8 kB / 23.01 MB, free: 4.605 MB / 14.72 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.5/1.5, allocations: 177.2 MB / 203.4 MB, free: 8.98 MB / 190.1 MB " [Timeout remaining time 178] 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.893/2.893, allocations: 394.2 MB / 0.6386 GB, free: 11.93 MB / 0.6075 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.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: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002409/0.002409, allocations: 71.89 kB / 1.009 GB, free: 14.52 MB / 0.9669 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.123/1.125, allocations: 181.8 MB / 1.187 GB, free: 16.22 MB / 1.076 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.003126/1.129, allocations: 0.7419 MB / 1.187 GB, free: 15.76 MB / 1.076 GB Notification: Performance of NFInst.instExpressions: time 0.001916/1.131, allocations: 1.184 MB / 1.188 GB, free: 14.9 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.508e-05/1.131, allocations: 1.469 kB / 1.188 GB, free: 14.9 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 2.955e-05/1.131, allocations: 5.391 kB / 1.188 GB, free: 14.9 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 7.328e-05/1.131, allocations: 10.69 kB / 1.188 GB, free: 14.89 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006013/1.131, allocations: 147.7 kB / 1.189 GB, free: 14.81 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 0.0002733/1.132, allocations: 125.5 kB / 1.189 GB, free: 14.76 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001151/1.132, allocations: 17.17 kB / 1.189 GB, free: 14.75 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001402/1.132, allocations: 57.34 kB / 1.189 GB, free: 14.72 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001301/1.132, allocations: 38.83 kB / 1.189 GB, free: 14.71 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 3.874e-05/1.132, allocations: 15.06 kB / 1.189 GB, free: 14.71 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001007/1.132, allocations: 25.59 kB / 1.189 GB, free: 14.7 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 3.05e-05/1.132, allocations: 18.73 kB / 1.189 GB, free: 14.69 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 8.311e-05/1.132, allocations: 43.23 kB / 1.189 GB, free: 14.67 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.0002777/1.133, allocations: 123.5 kB / 1.189 GB, free: 14.63 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/1.133, allocations: 4 kB / 1.189 GB, free: 14.62 MB / 1.076 GB Notification: Performance of FrontEnd: time 2.926e-06/1.133, allocations: 0.6094 kB / 1.189 GB, free: 14.62 MB / 1.076 GB Notification: Performance of Transformations before backend: time 9.628e-06/1.133, allocations: 0 / 1.189 GB, free: 14.62 MB / 1.076 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.0005954/1.133, allocations: 344.3 kB / 1.189 GB, free: 14.3 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 4.558e-05/1.133, allocations: 10.41 kB / 1.189 GB, free: 14.3 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001284/1.133, allocations: 12.23 kB / 1.189 GB, free: 14.3 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.943e-05/1.133, allocations: 120.5 kB / 1.19 GB, free: 14.16 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.28e-05/1.133, allocations: 8.188 kB / 1.19 GB, free: 14.16 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.245e-05/1.133, allocations: 12.23 kB / 1.19 GB, free: 14.16 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002319/1.134, allocations: 73.22 kB / 1.19 GB, free: 14.11 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.467e-05/1.134, allocations: 7.875 kB / 1.19 GB, free: 14.11 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.253e-05/1.134, allocations: 1.75 kB / 1.19 GB, free: 14.11 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.021e-06/1.134, allocations: 1.156 kB / 1.19 GB, free: 14.11 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002044/1.134, allocations: 49.27 kB / 1.19 GB, free: 14.09 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004993/1.134, allocations: 262.8 kB / 1.19 GB, free: 13.87 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001939/1.135, allocations: 57.02 kB / 1.19 GB, free: 13.83 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000104/1.135, allocations: 32.83 kB / 1.19 GB, free: 13.82 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 2.319e-05/1.135, allocations: 1.125 kB / 1.19 GB, free: 13.82 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002743/1.135, allocations: 92.53 kB / 1.19 GB, free: 13.75 MB / 1.076 GB Notification: Performance of pre-optimization done (n=8): time 1.573e-06/1.135, allocations: 0 / 1.19 GB, free: 13.75 MB / 1.076 GB Notification: Performance of matching and sorting (n=8): time 0.0004996/1.136, allocations: 154.5 kB / 1.19 GB, free: 13.69 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.994e-05/1.136, allocations: 58.34 kB / 1.19 GB, free: 13.62 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.772e-05/1.136, allocations: 121.7 kB / 1.19 GB, free: 13.51 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 2.251e-05/1.136, allocations: 29.08 kB / 1.19 GB, free: 13.48 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 4.976e-05/1.136, allocations: 98.08 kB / 1.191 GB, free: 13.39 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 2.275e-05/1.136, allocations: 12.62 kB / 1.191 GB, free: 13.38 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.993e-05/1.136, allocations: 38.62 kB / 1.191 GB, free: 13.36 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 5.507e-05/1.136, allocations: 323.5 kB / 1.191 GB, free: 13.04 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001805/1.136, allocations: 82 kB / 1.191 GB, free: 12.99 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001852/1.136, allocations: 126.7 kB / 1.191 GB, free: 12.89 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002744/1.137, allocations: 152.7 kB / 1.191 GB, free: 12.77 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/1.137, allocations: 3.938 kB / 1.191 GB, free: 12.77 MB / 1.076 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004649/1.137, allocations: 253.2 kB / 1.192 GB, free: 12.62 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 3.565e-05/1.137, allocations: 35.33 kB / 1.192 GB, free: 12.59 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.753e-06/1.137, allocations: 2.375 kB / 1.192 GB, free: 12.59 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.772e-05/1.137, allocations: 1.219 kB / 1.192 GB, free: 12.59 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001058/1.137, allocations: 15.3 kB / 1.192 GB, free: 12.59 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.674e-06/1.137, allocations: 1.219 kB / 1.192 GB, free: 12.59 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002286/1.137, allocations: 43.83 kB / 1.192 GB, free: 12.57 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.627e-05/1.137, allocations: 12.06 kB / 1.192 GB, free: 12.57 MB / 1.076 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 8.932e-05/1.137, allocations: 127.7 kB / 1.192 GB, free: 12.45 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.723e-05/1.138, allocations: 4.234 kB / 1.192 GB, free: 12.45 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003096/1.138, allocations: 131 kB / 1.192 GB, free: 12.38 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.426e-06/1.138, allocations: 1.25 kB / 1.192 GB, free: 12.38 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.109e-06/1.138, allocations: 0.7031 kB / 1.192 GB, free: 12.38 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.11e-06/1.138, allocations: 1.094 kB / 1.192 GB, free: 12.38 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003908/1.138, allocations: 328.5 kB / 1.192 GB, free: 12.1 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/1.138, allocations: 0 / 1.192 GB, free: 12.1 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.735e-05/1.138, allocations: 11.06 kB / 1.192 GB, free: 12.1 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.876e-06/1.138, allocations: 0 / 1.192 GB, free: 12.1 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.116e-05/1.138, allocations: 2.203 kB / 1.192 GB, free: 12.1 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.864e-06/1.138, allocations: 80 / 1.192 GB, free: 12.1 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/1.138, allocations: 5.906 kB / 1.192 GB, free: 12.1 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003074/1.139, allocations: 223.4 kB / 1.192 GB, free: 11.93 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 1.667e-05/1.139, allocations: 6.969 kB / 1.192 GB, free: 11.93 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.822e-05/1.139, allocations: 2.453 kB / 1.192 GB, free: 11.93 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.288e-05/1.139, allocations: 11.77 kB / 1.192 GB, free: 11.93 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.557e-05/1.139, allocations: 5 kB / 1.192 GB, free: 11.93 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.034e-05/1.139, allocations: 2.75 kB / 1.192 GB, free: 11.93 MB / 1.076 GB Notification: Performance of sorting global known variables: time 5.068e-05/1.139, allocations: 100.1 kB / 1.193 GB, free: 11.84 MB / 1.076 GB Notification: Performance of sort global known variables: time 7e-08/1.139, allocations: 0 / 1.193 GB, free: 11.84 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0003156/1.139, allocations: 34.23 kB / 1.193 GB, free: 11.83 MB / 1.076 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.0001525/1.139, allocations: 98.14 kB / 1.193 GB, free: 11.74 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.0004398/1.14, allocations: 197.1 kB / 1.193 GB, free: 11.61 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/1.14, allocations: 1.094 kB / 1.193 GB, free: 11.61 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.0001362/1.14, allocations: 36.41 kB / 1.193 GB, free: 11.61 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000314/1.14, allocations: 16.64 kB / 1.193 GB, free: 11.6 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000496/1.141, allocations: 184.7 kB / 1.193 GB, free: 11.45 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.503e-05/1.141, allocations: 76.89 kB / 1.193 GB, free: 11.38 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 4.134e-05/1.141, allocations: 5.906 kB / 1.193 GB, free: 11.38 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.773e-05/1.141, allocations: 16.42 kB / 1.193 GB, free: 11.36 MB / 1.076 GB Notification: Performance of SimCode: time 5.31e-07/1.141, allocations: 0 / 1.193 GB, free: 11.36 MB / 1.076 GB Notification: Performance of Templates: time 0.005623/1.146, allocations: 1.556 MB / 1.195 GB, free: 11.17 MB / 1.076 GB " [Timeout remaining time 299] 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=800 -s ida -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe 2>&1) [Timeout 800] 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.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: 9.20231625798624]