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.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.001944/0.001944, allocations: 114.5 kB / 18.88 MB, free: 3.062 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.002365/0.002365, allocations: 189.3 kB / 22.17 MB, free: 5.656 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.427/1.427, allocations: 225.6 MB / 250.9 MB, free: 13.26 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.771/2.771, allocations: 476.7 MB / 0.7645 GB, free: 10.09 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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.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: Performance of FrontEnd - loaded program: time 0.002039/0.002039, allocations: 67.89 kB / 1.109 GB, free: 6.535 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7713/0.7733, allocations: 168.7 MB / 1.274 GB, free: 4.41 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.002186/0.7755, allocations: 0.7575 MB / 1.275 GB, free: 3.656 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001628/0.7771, allocations: 1.164 MB / 1.276 GB, free: 2.48 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.58e-05/0.7772, allocations: 7.938 kB / 1.276 GB, free: 2.473 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.424e-05/0.7772, allocations: 3.938 kB / 1.276 GB, free: 2.469 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 7.757e-05/0.7773, allocations: 15.86 kB / 1.276 GB, free: 2.453 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005025/0.7778, allocations: 135.7 kB / 1.276 GB, free: 2.32 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0002065/0.778, allocations: 119.8 kB / 1.276 GB, free: 2.203 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001055/0.7781, allocations: 20.16 kB / 1.276 GB, free: 2.18 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 9.669e-05/0.7782, allocations: 43.91 kB / 1.276 GB, free: 2.137 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001089/0.7783, allocations: 55.8 kB / 1.276 GB, free: 2.082 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.604e-05/0.7784, allocations: 16 kB / 1.276 GB, free: 2.066 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 7.298e-05/0.7784, allocations: 31.92 kB / 1.276 GB, free: 2.035 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.131e-05/0.7784, allocations: 7.938 kB / 1.276 GB, free: 2.027 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 7.744e-05/0.7785, allocations: 47.84 kB / 1.276 GB, free: 1.98 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001963/0.7787, allocations: 122.2 kB / 1.277 GB, free: 1.863 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.7787, allocations: 4 kB / 1.277 GB, free: 1.859 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.343e-06/0.7787, allocations: 0 / 1.277 GB, free: 1.859 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.09e-06/0.7787, allocations: 3.938 kB / 1.277 GB, free: 1.855 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0006661/0.7794, allocations: 420.8 kB / 1.277 GB, free: 1.391 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.543e-05/0.7794, allocations: 16.03 kB / 1.277 GB, free: 1.375 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.352e-05/0.7795, allocations: 12.83 kB / 1.277 GB, free: 1.363 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001524/0.7796, allocations: 168.3 kB / 1.277 GB, free: 1.16 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.033e-05/0.7797, allocations: 8.359 kB / 1.277 GB, free: 1.152 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.613e-05/0.7797, allocations: 12.31 kB / 1.277 GB, free: 1.141 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002221/0.7799, allocations: 70.22 kB / 1.277 GB, free: 1.066 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.143e-05/0.7799, allocations: 3.938 kB / 1.277 GB, free: 1.062 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.059e-05/0.7799, allocations: 4 kB / 1.277 GB, free: 1.059 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.027e-06/0.7799, allocations: 0 / 1.277 GB, free: 1.059 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002101/0.7801, allocations: 51.94 kB / 1.277 GB, free: 1.008 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005433/0.7807, allocations: 344.6 kB / 1.278 GB, free: 0.6211 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001873/0.7809, allocations: 54.55 kB / 1.278 GB, free: 0.5586 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000107/0.781, allocations: 32.97 kB / 1.278 GB, free: 0.5234 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.74e-05/0.781, allocations: 4 kB / 1.278 GB, free: 0.5195 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002599/0.7813, allocations: 91.34 kB / 1.278 GB, free: 428 kB / 0.9669 GB Notification: Performance of pre-optimization done (n=8): time 1.413e-06/0.7813, allocations: 0 / 1.278 GB, free: 428 kB / 0.9669 GB Notification: Performance of matching and sorting (n=8): time 0.0004863/0.7817, allocations: 157.5 kB / 1.278 GB, free: 264 kB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.253e-05/0.7818, allocations: 51.41 kB / 1.278 GB, free: 200 kB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001116/0.7819, allocations: 121.8 kB / 1.278 GB, free: 68 kB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 3.28e-05/0.7819, allocations: 29.7 kB / 1.278 GB, free: 32 kB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 9.715e-05/0.782, allocations: 100 kB / 1.278 GB, free: 15.93 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.561e-05/0.7821, allocations: 19.84 kB / 1.278 GB, free: 15.91 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.719e-05/0.7821, allocations: 41.69 kB / 1.278 GB, free: 15.86 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001533/0.7823, allocations: 322.7 kB / 1.279 GB, free: 15.54 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001713/0.7825, allocations: 55.95 kB / 1.279 GB, free: 15.48 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002087/0.7827, allocations: 89.61 kB / 1.279 GB, free: 15.38 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003188/0.783, allocations: 146.8 kB / 1.279 GB, free: 15.21 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.783, allocations: 3.938 kB / 1.279 GB, free: 15.21 MB / 0.9825 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0005031/0.7835, allocations: 223.2 kB / 1.279 GB, free: 14.98 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 5.3e-05/0.7836, allocations: 37.69 kB / 1.279 GB, free: 14.93 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.701e-06/0.7836, allocations: 0 / 1.279 GB, free: 14.93 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.801e-05/0.7836, allocations: 4 kB / 1.279 GB, free: 14.93 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001214/0.7837, allocations: 19.92 kB / 1.279 GB, free: 14.91 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.839e-06/0.7837, allocations: 4 kB / 1.279 GB, free: 14.91 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000223/0.7839, allocations: 39.86 kB / 1.279 GB, free: 14.87 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.501e-05/0.784, allocations: 7.984 kB / 1.279 GB, free: 14.86 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.0001152/0.7841, allocations: 132.8 kB / 1.279 GB, free: 14.72 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.461e-05/0.7841, allocations: 4 kB / 1.279 GB, free: 14.72 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003427/0.7844, allocations: 130.2 kB / 1.279 GB, free: 14.58 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.324e-06/0.7844, allocations: 0 / 1.279 GB, free: 14.58 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.7844, allocations: 0 / 1.279 GB, free: 14.58 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.676e-06/0.7844, allocations: 0 / 1.279 GB, free: 14.58 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005064/0.7849, allocations: 382.4 kB / 1.28 GB, free: 14.15 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-06/0.7849, allocations: 0 / 1.28 GB, free: 14.15 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.195e-05/0.785, allocations: 19.92 kB / 1.28 GB, free: 14.13 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.785, allocations: 0 / 1.28 GB, free: 14.13 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.927e-06/0.785, allocations: 0 / 1.28 GB, free: 14.13 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.785, allocations: 0 / 1.28 GB, free: 14.13 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.458e-06/0.785, allocations: 11.92 kB / 1.28 GB, free: 14.12 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00034/0.7854, allocations: 207.5 kB / 1.28 GB, free: 13.9 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 5.035e-05/0.7854, allocations: 81.06 kB / 1.28 GB, free: 13.8 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.862e-05/0.7854, allocations: 4 kB / 1.28 GB, free: 13.8 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.001e-05/0.7855, allocations: 7.984 kB / 1.28 GB, free: 13.79 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.994e-05/0.7856, allocations: 7.938 kB / 1.28 GB, free: 13.78 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.576e-06/0.7856, allocations: 7.984 kB / 1.28 GB, free: 13.77 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 5.984e-05/0.7856, allocations: 91.28 kB / 1.28 GB, free: 13.68 MB / 0.9825 GB Notification: Performance of sort global known variables: time 8e-08/0.7856, allocations: 0 / 1.28 GB, free: 13.68 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.000275/0.7859, allocations: 31.94 kB / 1.28 GB, free: 13.65 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.000176/0.7861, allocations: 107.7 kB / 1.28 GB, free: 13.54 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0004107/0.7865, allocations: 171.2 kB / 1.281 GB, free: 13.36 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.023e-06/0.7865, allocations: 320 / 1.281 GB, free: 13.36 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001254/0.7866, allocations: 39.97 kB / 1.281 GB, free: 13.32 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002984/0.7869, allocations: 11.98 kB / 1.281 GB, free: 13.31 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004056/0.7873, allocations: 186.7 kB / 1.281 GB, free: 13.1 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003616/0.7877, allocations: 0.6944 MB / 1.281 GB, free: 12.38 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.157e-05/0.7877, allocations: 8 kB / 1.281 GB, free: 12.38 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.93e-05/0.7878, allocations: 15.44 kB / 1.281 GB, free: 12.36 MB / 0.9825 GB Notification: Performance of SimCode: time 4.01e-07/0.7878, allocations: 3.938 kB / 1.281 GB, free: 12.36 MB / 0.9825 GB Notification: Performance of Templates: time 0.004643/0.7924, allocations: 1.461 MB / 1.283 GB, free: 10.91 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 -s gbode -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_2/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: 8.55285419523716]