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.001604/0.001604, allocations: 116.3 kB / 17.13 MB, free: 6.027 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.001882/0.001882, allocations: 208.7 kB / 20.1 MB, free: 3.074 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.501/1.501, allocations: 230.6 MB / 253.5 MB, free: 15.09 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 2.946/2.946, allocations: 0.49 GB / 0.7923 GB, free: 1.309 MB / 0.6231 GB " [Timeout remaining time 176] 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.002005/0.002005, allocations: 71.89 kB / 1.15 GB, free: 14.89 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9836/0.9856, allocations: 176.1 MB / 1.322 GB, free: 25.04 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.001731/0.9873, allocations: 0.7495 MB / 1.323 GB, free: 24.57 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001123/0.9884, allocations: 1.213 MB / 1.324 GB, free: 23.68 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.428e-05/0.9885, allocations: 2.812 kB / 1.324 GB, free: 23.68 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 2.853e-05/0.9885, allocations: 3.938 kB / 1.324 GB, free: 23.68 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 7.45e-05/0.9886, allocations: 19.23 kB / 1.324 GB, free: 23.66 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.000456/0.989, allocations: 141.1 kB / 1.324 GB, free: 23.59 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.000159/0.9892, allocations: 135.3 kB / 1.324 GB, free: 23.53 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 9.467e-05/0.9893, allocations: 13.11 kB / 1.324 GB, free: 23.52 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 7.568e-05/0.9894, allocations: 53.42 kB / 1.324 GB, free: 23.5 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 8.437e-05/0.9895, allocations: 46.22 kB / 1.324 GB, free: 23.48 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 2.276e-05/0.9895, allocations: 14.23 kB / 1.324 GB, free: 23.47 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 6.823e-05/0.9895, allocations: 33.08 kB / 1.324 GB, free: 23.46 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 2.099e-05/0.9896, allocations: 13.72 kB / 1.324 GB, free: 23.46 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 5.406e-05/0.9896, allocations: 42.48 kB / 1.324 GB, free: 23.43 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0001572/0.9898, allocations: 130.5 kB / 1.324 GB, free: 23.39 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.9898, allocations: 0 / 1.324 GB, free: 23.39 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.452e-06/0.9898, allocations: 4 kB / 1.324 GB, free: 23.39 MB / 1.061 GB Notification: Performance of Transformations before backend: time 5.72e-06/0.9898, allocations: 3.234 kB / 1.324 GB, free: 23.39 MB / 1.061 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.0005085/0.9903, allocations: 421.4 kB / 1.325 GB, free: 22.97 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.387e-05/0.9903, allocations: 12.89 kB / 1.325 GB, free: 22.97 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.905e-05/0.9904, allocations: 13.36 kB / 1.325 GB, free: 22.96 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.673e-05/0.9905, allocations: 174.6 kB / 1.325 GB, free: 22.76 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.199e-05/0.9905, allocations: 3.312 kB / 1.325 GB, free: 22.76 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.832e-05/0.9906, allocations: 12.03 kB / 1.325 GB, free: 22.76 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000199/0.9908, allocations: 72.36 kB / 1.325 GB, free: 22.71 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.187e-05/0.9908, allocations: 10.53 kB / 1.325 GB, free: 22.71 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.412e-05/0.9908, allocations: 0 / 1.325 GB, free: 22.71 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.57e-06/0.9908, allocations: 3.984 kB / 1.325 GB, free: 22.7 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001962/0.991, allocations: 51.77 kB / 1.325 GB, free: 22.69 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004872/0.9915, allocations: 341.9 kB / 1.326 GB, free: 22.39 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001669/0.9916, allocations: 60.92 kB / 1.326 GB, free: 22.35 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.278e-05/0.9917, allocations: 28.88 kB / 1.326 GB, free: 22.34 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.72e-05/0.9917, allocations: 2.5 kB / 1.326 GB, free: 22.34 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002052/0.992, allocations: 92.39 kB / 1.326 GB, free: 22.27 MB / 1.061 GB Notification: Performance of pre-optimization done (n=8): time 1.273e-06/0.992, allocations: 0 / 1.326 GB, free: 22.27 MB / 1.061 GB Notification: Performance of matching and sorting (n=8): time 0.0004304/0.9924, allocations: 154.4 kB / 1.326 GB, free: 22.21 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.791e-05/0.9924, allocations: 51.41 kB / 1.326 GB, free: 22.14 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.767e-05/0.9925, allocations: 126.3 kB / 1.326 GB, free: 22.03 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 2.088e-05/0.9925, allocations: 32.52 kB / 1.326 GB, free: 22 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 4.518e-05/0.9925, allocations: 97.09 kB / 1.326 GB, free: 21.9 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 1.852e-05/0.9926, allocations: 25.72 kB / 1.326 GB, free: 21.88 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.623e-05/0.9926, allocations: 37.27 kB / 1.326 GB, free: 21.86 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 5.372e-05/0.9927, allocations: 324.7 kB / 1.327 GB, free: 21.54 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001772/0.9929, allocations: 51.28 kB / 1.327 GB, free: 21.53 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001627/0.993, allocations: 90.25 kB / 1.327 GB, free: 21.46 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000249/0.9933, allocations: 153.6 kB / 1.327 GB, free: 21.35 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.9933, allocations: 4 kB / 1.327 GB, free: 21.34 MB / 1.061 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003925/0.9937, allocations: 216.1 kB / 1.327 GB, free: 21.23 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 3.521e-05/0.9937, allocations: 38.95 kB / 1.327 GB, free: 21.2 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.192e-06/0.9937, allocations: 3.062 kB / 1.327 GB, free: 21.2 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.582e-05/0.9937, allocations: 3 kB / 1.327 GB, free: 21.2 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.701e-05/0.9938, allocations: 12.25 kB / 1.327 GB, free: 21.2 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.773e-06/0.9938, allocations: 7.125 kB / 1.327 GB, free: 21.19 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001978/0.994, allocations: 33.89 kB / 1.327 GB, free: 21.19 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.068e-05/0.994, allocations: 13.16 kB / 1.327 GB, free: 21.18 MB / 1.061 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.216e-05/0.9941, allocations: 126.1 kB / 1.327 GB, free: 21.06 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.363e-05/0.9941, allocations: 6.797 kB / 1.327 GB, free: 21.05 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002749/0.9944, allocations: 129.9 kB / 1.327 GB, free: 20.99 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.944e-06/0.9944, allocations: 0 / 1.327 GB, free: 20.99 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.9944, allocations: 0 / 1.327 GB, free: 20.99 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.9944, allocations: 0 / 1.327 GB, free: 20.99 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003903/0.9948, allocations: 380 kB / 1.328 GB, free: 20.65 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.9948, allocations: 1.25 kB / 1.328 GB, free: 20.65 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.026e-05/0.9949, allocations: 9.781 kB / 1.328 GB, free: 20.65 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.026e-06/0.9949, allocations: 4.594 kB / 1.328 GB, free: 20.65 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.168e-06/0.9949, allocations: 0.5312 kB / 1.328 GB, free: 20.65 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.9949, allocations: 0.7188 kB / 1.328 GB, free: 20.65 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.9949, allocations: 4.719 kB / 1.328 GB, free: 20.64 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002942/0.9952, allocations: 213.6 kB / 1.328 GB, free: 20.49 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 2.822e-05/0.9952, allocations: 83.5 kB / 1.328 GB, free: 20.39 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.666e-05/0.9952, allocations: 1 kB / 1.328 GB, free: 20.39 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.601e-05/0.9953, allocations: 15.41 kB / 1.328 GB, free: 20.38 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.504e-05/0.9954, allocations: 10.61 kB / 1.328 GB, free: 20.38 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.566e-06/0.9954, allocations: 1.812 kB / 1.328 GB, free: 20.38 MB / 1.061 GB Notification: Performance of sorting global known variables: time 3.748e-05/0.9954, allocations: 91.22 kB / 1.328 GB, free: 20.3 MB / 1.061 GB Notification: Performance of sort global known variables: time 6e-08/0.9954, allocations: 0.7188 kB / 1.328 GB, free: 20.3 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002687/0.9957, allocations: 28.59 kB / 1.328 GB, free: 20.29 MB / 1.061 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.0001438/0.9958, allocations: 107.2 kB / 1.328 GB, free: 20.2 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0003958/0.9962, allocations: 168.7 kB / 1.328 GB, free: 20.11 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.9962, allocations: 0.7812 kB / 1.328 GB, free: 20.11 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001318/0.9963, allocations: 40.55 kB / 1.328 GB, free: 20.09 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002884/0.9966, allocations: 15.31 kB / 1.329 GB, free: 20.09 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003931/0.997, allocations: 209.3 kB / 1.329 GB, free: 19.91 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001204/0.9971, allocations: 0.6884 MB / 1.329 GB, free: 19.21 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.781e-05/0.9972, allocations: 11.41 kB / 1.329 GB, free: 19.21 MB / 1.061 GB Notification: Performance of SimCode: time 3.6e-07/0.9972, allocations: 0.7188 kB / 1.329 GB, free: 19.21 MB / 1.061 GB Notification: Performance of Templates: time 0.003585/1.001, allocations: 1.307 MB / 1.331 GB, free: 19.08 MB / 1.061 GB " [Timeout remaining time 299] 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 -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: 11.319673374004196]