Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001745/0.001745, allocations: 104.3 kB / 19.7 MB, free: 2.156 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.002214/0.002214, allocations: 207.9 kB / 22.99 MB, free: 4.984 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.542/1.542, allocations: 230.6 MB / 256.8 MB, free: 7.809 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.17/3.17, allocations: 0.49 GB / 0.7959 GB, free: 35.55 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/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_12_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_12_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.002126/0.002126, allocations: 62.83 kB / 1.155 GB, free: 25.28 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3426/0.3447, allocations: 176.1 MB / 1.327 GB, free: 1.004 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.002059/0.3467, allocations: 0.7433 MB / 1.328 GB, free: 272 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.00163/0.3484, allocations: 1.194 MB / 1.329 GB, free: 15.06 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.139e-05/0.3484, allocations: 0 / 1.329 GB, free: 15.06 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 3.51e-05/0.3485, allocations: 7.875 kB / 1.329 GB, free: 15.05 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 6.976e-05/0.3485, allocations: 3.938 kB / 1.329 GB, free: 15.05 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005335/0.3491, allocations: 148 kB / 1.329 GB, free: 14.91 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.000223/0.3493, allocations: 127.7 kB / 1.329 GB, free: 14.78 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001177/0.3494, allocations: 12.19 kB / 1.329 GB, free: 14.77 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001099/0.3495, allocations: 55.91 kB / 1.329 GB, free: 14.71 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001093/0.3496, allocations: 55.8 kB / 1.329 GB, free: 14.66 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 2.752e-05/0.3496, allocations: 8 kB / 1.329 GB, free: 14.65 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 7.998e-05/0.3497, allocations: 27.98 kB / 1.329 GB, free: 14.62 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 2.416e-05/0.3498, allocations: 8 kB / 1.329 GB, free: 14.61 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 8.125e-05/0.3498, allocations: 47.83 kB / 1.329 GB, free: 14.57 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0002284/0.3501, allocations: 131.5 kB / 1.33 GB, free: 14.44 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.057e-06/0.3501, allocations: 0 / 1.33 GB, free: 14.44 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.533e-06/0.3501, allocations: 0 / 1.33 GB, free: 14.44 MB / 1.029 GB Notification: Performance of Transformations before backend: time 5.47e-06/0.3501, allocations: 0 / 1.33 GB, free: 14.44 MB / 1.029 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.0006693/0.3507, allocations: 347.8 kB / 1.33 GB, free: 14.06 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.764e-05/0.3508, allocations: 8.031 kB / 1.33 GB, free: 14.05 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001075/0.3509, allocations: 12.89 kB / 1.33 GB, free: 14.04 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001194/0.351, allocations: 114.4 kB / 1.33 GB, free: 13.91 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.807e-05/0.351, allocations: 4.375 kB / 1.33 GB, free: 13.9 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.947e-05/0.3511, allocations: 16.36 kB / 1.33 GB, free: 13.89 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002318/0.3513, allocations: 78.09 kB / 1.33 GB, free: 13.8 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.085e-05/0.3513, allocations: 7.875 kB / 1.33 GB, free: 13.8 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.14e-05/0.3513, allocations: 0 / 1.33 GB, free: 13.8 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.101e-06/0.3513, allocations: 4 kB / 1.33 GB, free: 13.79 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001925/0.3515, allocations: 47.95 kB / 1.33 GB, free: 13.75 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005042/0.352, allocations: 272.3 kB / 1.33 GB, free: 13.45 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001902/0.3522, allocations: 54.55 kB / 1.33 GB, free: 13.39 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001011/0.3523, allocations: 24.97 kB / 1.331 GB, free: 13.36 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.605e-05/0.3523, allocations: 0 / 1.331 GB, free: 13.36 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002479/0.3526, allocations: 95.36 kB / 1.331 GB, free: 13.25 MB / 1.029 GB Notification: Performance of pre-optimization done (n=8): time 1.493e-06/0.3526, allocations: 0 / 1.331 GB, free: 13.25 MB / 1.029 GB Notification: Performance of matching and sorting (n=8): time 0.0004846/0.3531, allocations: 153.6 kB / 1.331 GB, free: 13.1 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.211e-05/0.3531, allocations: 51.41 kB / 1.331 GB, free: 13.04 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000109/0.3532, allocations: 117.8 kB / 1.331 GB, free: 12.91 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.834e-05/0.3532, allocations: 25.7 kB / 1.331 GB, free: 12.88 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 7.693e-05/0.3533, allocations: 116.1 kB / 1.331 GB, free: 12.76 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.564e-05/0.3533, allocations: 15.8 kB / 1.331 GB, free: 12.75 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.818e-05/0.3534, allocations: 41.69 kB / 1.331 GB, free: 12.7 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001458/0.3536, allocations: 322.8 kB / 1.331 GB, free: 12.38 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001858/0.3538, allocations: 81.66 kB / 1.331 GB, free: 12.29 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002119/0.354, allocations: 122.8 kB / 1.332 GB, free: 12.14 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000315/0.3543, allocations: 154.7 kB / 1.332 GB, free: 11.97 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.3543, allocations: 0 / 1.332 GB, free: 11.97 MB / 1.029 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0005073/0.3548, allocations: 248.8 kB / 1.332 GB, free: 11.71 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 3.915e-05/0.3548, allocations: 33.69 kB / 1.332 GB, free: 11.67 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.629e-06/0.3548, allocations: 4.156 kB / 1.332 GB, free: 11.66 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.385e-05/0.3548, allocations: 4 kB / 1.332 GB, free: 11.66 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001045/0.355, allocations: 15.98 kB / 1.332 GB, free: 11.64 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.46e-06/0.355, allocations: 0 / 1.332 GB, free: 11.64 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002146/0.3552, allocations: 35.97 kB / 1.332 GB, free: 11.61 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.333e-05/0.3552, allocations: 15.86 kB / 1.332 GB, free: 11.59 MB / 1.029 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 0.0001206/0.3553, allocations: 126.2 kB / 1.332 GB, free: 11.46 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.694e-05/0.3553, allocations: 11.95 kB / 1.332 GB, free: 11.45 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003193/0.3557, allocations: 126 kB / 1.332 GB, free: 11.32 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.288e-06/0.3557, allocations: 3.984 kB / 1.332 GB, free: 11.31 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.566e-06/0.3557, allocations: 3.938 kB / 1.332 GB, free: 11.31 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.3557, allocations: 0 / 1.332 GB, free: 11.31 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004463/0.3561, allocations: 318.1 kB / 1.333 GB, free: 10.96 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.3561, allocations: 0 / 1.333 GB, free: 10.96 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.799e-05/0.3562, allocations: 15.94 kB / 1.333 GB, free: 10.95 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.198e-06/0.3562, allocations: 3.984 kB / 1.333 GB, free: 10.94 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.869e-06/0.3562, allocations: 0 / 1.333 GB, free: 10.94 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.907e-06/0.3562, allocations: 4 kB / 1.333 GB, free: 10.94 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.3562, allocations: 0 / 1.333 GB, free: 10.94 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003535/0.3566, allocations: 227.8 kB / 1.333 GB, free: 10.7 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.246e-05/0.3566, allocations: 7.953 kB / 1.333 GB, free: 10.69 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.885e-05/0.3566, allocations: 4 kB / 1.333 GB, free: 10.69 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.339e-05/0.3567, allocations: 11.98 kB / 1.333 GB, free: 10.68 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.407e-05/0.3567, allocations: 7.984 kB / 1.333 GB, free: 10.67 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.886e-06/0.3567, allocations: 4 kB / 1.333 GB, free: 10.66 MB / 1.029 GB Notification: Performance of sorting global known variables: time 7.11e-05/0.3568, allocations: 99.69 kB / 1.333 GB, free: 10.57 MB / 1.029 GB Notification: Performance of sort global known variables: time 7.1e-08/0.3568, allocations: 0 / 1.333 GB, free: 10.57 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002745/0.3571, allocations: 24 kB / 1.333 GB, free: 10.54 MB / 1.029 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.0001577/0.3572, allocations: 103.2 kB / 1.333 GB, free: 10.43 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0004268/0.3577, allocations: 197.2 kB / 1.333 GB, free: 10.22 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.3577, allocations: 0 / 1.333 GB, free: 10.22 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.000122/0.3578, allocations: 35.91 kB / 1.333 GB, free: 10.19 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002966/0.3581, allocations: 17.81 kB / 1.333 GB, free: 10.17 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000388/0.3585, allocations: 171.2 kB / 1.334 GB, free: 9.98 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.024e-05/0.3585, allocations: 79.39 kB / 1.334 GB, free: 9.883 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 3.091e-05/0.3586, allocations: 11.94 kB / 1.334 GB, free: 9.871 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.913e-05/0.3586, allocations: 15.44 kB / 1.334 GB, free: 9.855 MB / 1.029 GB Notification: Performance of SimCode: time 4.01e-07/0.3586, allocations: 0 / 1.334 GB, free: 9.855 MB / 1.029 GB Notification: Performance of Templates: time 0.004511/0.3631, allocations: 1.617 MB / 1.335 GB, free: 8.273 MB / 1.029 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler -abortSlowSimulation -alarm=400 -s gbode -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 8.697966380001162]