Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001315/0.001315, allocations: 100.3 kB / 19.7 MB, free: 2.012 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.001447/0.001447, allocations: 220.4 kB / 23 MB, free: 4.914 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.463/1.463, allocations: 230.6 MB / 256.8 MB, free: 7.82 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.776/2.776, allocations: 476 MB / 0.7707 GB, free: 4.711 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.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_11_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_11_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.002132/0.002132, allocations: 66.12 kB / 1.118 GB, free: 41.07 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3443/0.3464, allocations: 170 MB / 1.284 GB, free: 11.96 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.002185/0.3486, allocations: 0.7417 MB / 1.284 GB, free: 11.23 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001753/0.3503, allocations: 1.18 MB / 1.286 GB, free: 10.04 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.43e-05/0.3504, allocations: 0 / 1.286 GB, free: 10.04 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.686e-05/0.3504, allocations: 15.86 kB / 1.286 GB, free: 10.02 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 7.583e-05/0.3505, allocations: 7.875 kB / 1.286 GB, free: 10.01 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005558/0.3511, allocations: 148.4 kB / 1.286 GB, free: 9.871 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0002105/0.3513, allocations: 115.8 kB / 1.286 GB, free: 9.758 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001059/0.3514, allocations: 16.17 kB / 1.286 GB, free: 9.738 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001182/0.3515, allocations: 55.83 kB / 1.286 GB, free: 9.684 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001072/0.3516, allocations: 43.88 kB / 1.286 GB, free: 9.641 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.894e-05/0.3516, allocations: 8 kB / 1.286 GB, free: 9.633 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 8.733e-05/0.3517, allocations: 24 kB / 1.286 GB, free: 9.609 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 3.308e-05/0.3518, allocations: 23.91 kB / 1.286 GB, free: 9.586 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 7.75e-05/0.3518, allocations: 39.84 kB / 1.286 GB, free: 9.547 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002431/0.3521, allocations: 131.5 kB / 1.286 GB, free: 9.418 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.3521, allocations: 0 / 1.286 GB, free: 9.418 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.492e-06/0.3521, allocations: 0 / 1.286 GB, free: 9.418 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 7.143e-06/0.3521, allocations: 0 / 1.286 GB, free: 9.418 MB / 0.9825 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.0006763/0.3528, allocations: 339.8 kB / 1.287 GB, free: 9.051 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.872e-05/0.3528, allocations: 12.02 kB / 1.287 GB, free: 9.039 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001243/0.3529, allocations: 12.89 kB / 1.287 GB, free: 9.027 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001295/0.3531, allocations: 130.4 kB / 1.287 GB, free: 8.875 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.023e-05/0.3531, allocations: 4.375 kB / 1.287 GB, free: 8.871 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.619e-05/0.3531, allocations: 8.375 kB / 1.287 GB, free: 8.863 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002178/0.3533, allocations: 74.16 kB / 1.287 GB, free: 8.785 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.743e-05/0.3534, allocations: 7.938 kB / 1.287 GB, free: 8.777 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.319e-05/0.3534, allocations: 3.984 kB / 1.287 GB, free: 8.773 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.538e-06/0.3534, allocations: 0 / 1.287 GB, free: 8.773 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001962/0.3536, allocations: 51.83 kB / 1.287 GB, free: 8.723 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005006/0.3541, allocations: 276.3 kB / 1.287 GB, free: 8.422 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001837/0.3543, allocations: 54.55 kB / 1.287 GB, free: 8.359 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001046/0.3544, allocations: 28.95 kB / 1.287 GB, free: 8.328 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.117e-05/0.3544, allocations: 0 / 1.287 GB, free: 8.328 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002626/0.3546, allocations: 87.36 kB / 1.287 GB, free: 8.23 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=8): time 1.532e-06/0.3546, allocations: 96 / 1.287 GB, free: 8.23 MB / 0.9825 GB Notification: Performance of matching and sorting (n=8): time 0.0004704/0.3551, allocations: 161.5 kB / 1.287 GB, free: 8.066 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.218e-05/0.3552, allocations: 55.41 kB / 1.287 GB, free: 8 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001072/0.3553, allocations: 118.2 kB / 1.288 GB, free: 7.875 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.813e-05/0.3553, allocations: 25.7 kB / 1.288 GB, free: 7.844 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 7.501e-05/0.3554, allocations: 100 kB / 1.288 GB, free: 7.742 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.324e-05/0.3554, allocations: 19.84 kB / 1.288 GB, free: 7.723 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.725e-05/0.3555, allocations: 37.7 kB / 1.288 GB, free: 7.68 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001497/0.3556, allocations: 326.8 kB / 1.288 GB, free: 7.352 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001957/0.3558, allocations: 85.66 kB / 1.288 GB, free: 7.262 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002099/0.356, allocations: 122.8 kB / 1.288 GB, free: 7.117 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003039/0.3563, allocations: 146.8 kB / 1.288 GB, free: 6.949 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.3563, allocations: 4 kB / 1.288 GB, free: 6.945 MB / 0.9825 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0005102/0.3568, allocations: 244.8 kB / 1.289 GB, free: 6.688 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 4.527e-05/0.3569, allocations: 36.2 kB / 1.289 GB, free: 6.648 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.816e-06/0.3569, allocations: 4 kB / 1.289 GB, free: 6.645 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.584e-05/0.3569, allocations: 0 / 1.289 GB, free: 6.645 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001071/0.357, allocations: 15.98 kB / 1.289 GB, free: 6.629 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.576e-06/0.357, allocations: 4.094 kB / 1.289 GB, free: 6.625 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002256/0.3573, allocations: 43.91 kB / 1.289 GB, free: 6.582 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.114e-05/0.3573, allocations: 8 kB / 1.289 GB, free: 6.574 MB / 0.9825 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.0001148/0.3574, allocations: 134 kB / 1.289 GB, free: 6.438 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.733e-05/0.3574, allocations: 7.953 kB / 1.289 GB, free: 6.43 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003219/0.3577, allocations: 129.9 kB / 1.289 GB, free: 6.293 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.855e-06/0.3577, allocations: 4 kB / 1.289 GB, free: 6.289 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.972e-06/0.3577, allocations: 3.984 kB / 1.289 GB, free: 6.285 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.3577, allocations: 0 / 1.289 GB, free: 6.285 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004293/0.3582, allocations: 314.2 kB / 1.289 GB, free: 5.941 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.3582, allocations: 0 / 1.289 GB, free: 5.941 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.509e-05/0.3582, allocations: 15.98 kB / 1.289 GB, free: 5.926 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.284e-06/0.3582, allocations: 0 / 1.289 GB, free: 5.926 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.119e-05/0.3583, allocations: 4 kB / 1.289 GB, free: 5.922 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.3583, allocations: 0 / 1.289 GB, free: 5.922 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.298e-06/0.3583, allocations: 11.98 kB / 1.289 GB, free: 5.91 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003363/0.3586, allocations: 223.8 kB / 1.29 GB, free: 5.676 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.139e-05/0.3586, allocations: 7.891 kB / 1.29 GB, free: 5.668 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.64e-05/0.3586, allocations: 0 / 1.29 GB, free: 5.668 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.287e-05/0.3587, allocations: 7.984 kB / 1.29 GB, free: 5.66 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.16e-05/0.3588, allocations: 11.98 kB / 1.29 GB, free: 5.648 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.139e-05/0.3588, allocations: 4 kB / 1.29 GB, free: 5.645 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 6.414e-05/0.3588, allocations: 99.36 kB / 1.29 GB, free: 5.547 MB / 0.9825 GB Notification: Performance of sort global known variables: time 8e-08/0.3588, allocations: 0 / 1.29 GB, free: 5.547 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002713/0.3591, allocations: 28 kB / 1.29 GB, free: 5.52 MB / 0.9825 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.000141/0.3592, allocations: 99.25 kB / 1.29 GB, free: 5.414 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0004269/0.3597, allocations: 205 kB / 1.29 GB, free: 5.195 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.3597, allocations: 0 / 1.29 GB, free: 5.195 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001266/0.3598, allocations: 32.28 kB / 1.29 GB, free: 5.164 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002859/0.3601, allocations: 25.64 kB / 1.29 GB, free: 5.141 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004366/0.3605, allocations: 204.9 kB / 1.29 GB, free: 4.906 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.276e-05/0.3606, allocations: 75.27 kB / 1.29 GB, free: 4.812 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.205e-05/0.3606, allocations: 11.58 kB / 1.29 GB, free: 4.801 MB / 0.9825 GB Notification: Performance of SimCode: time 4.81e-07/0.3606, allocations: 0 / 1.29 GB, free: 4.801 MB / 0.9825 GB Notification: Performance of Templates: time 0.003403/0.364, allocations: 1.315 MB / 1.292 GB, free: 3.496 MB / 0.9825 GB " [Timeout remaining time 299] make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.sim & ./Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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: 11.052290169987828]