Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.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.0009229/0.0009229, allocations: 80.88 kB / 19.94 MB, free: 4.547 MB / 18.57 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.001082/0.001082, allocations: 181 kB / 23.36 MB, free: 1.133 MB / 18.57 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 0.9757/0.9757, allocations: 177.1 MB / 203.8 MB, free: 5.492 MB / 186.7 MB " [Timeout remaining time 179] 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.416/2.416, allocations: 438.8 MB / 0.6827 GB, free: 13.55 MB / 0.6511 GB " [Timeout remaining time 177] Using package Buildings with version 14.1.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.Sampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sampler1.u|sampler1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sampler1.u|sampler1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 3.055e-06/3.055e-06, allocations: 0 / 0.8386 GB, free: 14.2 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.856e-05/3.162e-05, allocations: 6.25 kB / 0.8386 GB, free: 14.19 MB / 0.8073 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.002844/0.002875, allocations: 0.6779 MB / 0.8392 GB, free: 13.51 MB / 0.8073 GB Notification: Performance of NFInst.instExpressions: time 0.001762/0.004638, allocations: 1.112 MB / 0.8403 GB, free: 12.38 MB / 0.8073 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.013e-05/0.004698, allocations: 0 / 0.8403 GB, free: 12.38 MB / 0.8073 GB Notification: Performance of NFTyping.typeComponents: time 3.677e-05/0.004735, allocations: 7.922 kB / 0.8403 GB, free: 12.38 MB / 0.8073 GB Notification: Performance of NFTyping.typeBindings: time 8.701e-05/0.004822, allocations: 11.92 kB / 0.8403 GB, free: 12.36 MB / 0.8073 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003841/0.005206, allocations: 47.7 kB / 0.8404 GB, free: 12.32 MB / 0.8073 GB Notification: Performance of NFFlatten.flatten: time 0.0001285/0.005334, allocations: 51.84 kB / 0.8404 GB, free: 12.27 MB / 0.8073 GB Notification: Performance of NFFlatten.resolveConnections: time 9.449e-05/0.005429, allocations: 4 kB / 0.8404 GB, free: 12.26 MB / 0.8073 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000115/0.005544, allocations: 31.92 kB / 0.8405 GB, free: 12.23 MB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 6.749e-05/0.005611, allocations: 15.95 kB / 0.8405 GB, free: 12.21 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 2.013e-05/0.005631, allocations: 4 kB / 0.8405 GB, free: 12.21 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 9.088e-05/0.005722, allocations: 19.98 kB / 0.8405 GB, free: 12.19 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 2.949e-05/0.005752, allocations: 11.94 kB / 0.8405 GB, free: 12.18 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 3.332e-05/0.005785, allocations: 15.97 kB / 0.8405 GB, free: 12.16 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 0.0001689/0.005954, allocations: 55.75 kB / 0.8406 GB, free: 12.11 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.005958, allocations: 0 / 0.8406 GB, free: 12.11 MB / 0.8073 GB Notification: Performance of FrontEnd: time 1.462e-06/0.00596, allocations: 4 kB / 0.8406 GB, free: 12.11 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 4.678e-06/0.005964, allocations: 0 / 0.8406 GB, free: 12.11 MB / 0.8073 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005226/0.006487, allocations: 264.8 kB / 0.8408 GB, free: 11.82 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 4.763e-05/0.006535, allocations: 12.62 kB / 0.8409 GB, free: 11.81 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001267/0.006661, allocations: 8.938 kB / 0.8409 GB, free: 11.8 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001105/0.006772, allocations: 113.7 kB / 0.841 GB, free: 11.66 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.4e-05/0.006786, allocations: 384 / 0.841 GB, free: 11.66 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.521e-05/0.006801, allocations: 4.375 kB / 0.841 GB, free: 11.66 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001491/0.00695, allocations: 62.94 kB / 0.841 GB, free: 11.59 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.997e-06/0.006959, allocations: 4.188 kB / 0.841 GB, free: 11.59 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.957e-06/0.006968, allocations: 384 / 0.841 GB, free: 11.59 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.242e-06/0.006974, allocations: 4.312 kB / 0.841 GB, free: 11.58 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.74e-05/0.007012, allocations: 15.92 kB / 0.8411 GB, free: 11.57 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003157/0.007328, allocations: 160.2 kB / 0.8412 GB, free: 11.39 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 8.801e-05/0.007416, allocations: 26.56 kB / 0.8412 GB, free: 11.36 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.061e-05/0.007436, allocations: 8.859 kB / 0.8412 GB, free: 11.35 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 2.027e-05/0.007456, allocations: 4 kB / 0.8412 GB, free: 11.34 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.483e-05/0.007551, allocations: 63.52 kB / 0.8413 GB, free: 11.27 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=6): time 1.783e-06/0.007553, allocations: 4 kB / 0.8413 GB, free: 11.27 MB / 0.8073 GB Notification: Performance of matching and sorting (n=6): time 0.000154/0.007707, allocations: 57.62 kB / 0.8414 GB, free: 11.2 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.168e-05/0.007759, allocations: 51.41 kB / 0.8414 GB, free: 11.14 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.273e-05/0.007841, allocations: 110.7 kB / 0.8415 GB, free: 11.02 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.491e-05/0.007856, allocations: 25.7 kB / 0.8415 GB, free: 10.99 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 4.385e-05/0.0079, allocations: 92.06 kB / 0.8416 GB, free: 10.89 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 2.464e-05/0.007925, allocations: 15.89 kB / 0.8416 GB, free: 10.88 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.64e-05/0.007971, allocations: 17.72 kB / 0.8417 GB, free: 10.86 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 0.0001157/0.008087, allocations: 322.8 kB / 0.842 GB, free: 10.53 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.962e-05/0.008106, allocations: 4 kB / 0.842 GB, free: 10.53 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.129e-05/0.008148, allocations: 35.91 kB / 0.842 GB, free: 10.48 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.534e-05/0.008223, allocations: 59.27 kB / 0.8421 GB, free: 10.41 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.008226, allocations: 0 / 0.8421 GB, free: 10.41 MB / 0.8073 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001167/0.008342, allocations: 61.61 kB / 0.8421 GB, free: 10.34 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.735e-05/0.00836, allocations: 4 kB / 0.8421 GB, free: 10.34 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.304e-06/0.008367, allocations: 4 kB / 0.8421 GB, free: 10.34 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.931e-05/0.008386, allocations: 7.938 kB / 0.8421 GB, free: 10.33 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.904e-05/0.008475, allocations: 20.03 kB / 0.8422 GB, free: 10.31 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.16e-06/0.00848, allocations: 3.984 kB / 0.8422 GB, free: 10.3 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.459e-05/0.008525, allocations: 7.938 kB / 0.8422 GB, free: 10.3 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.143e-05/0.008536, allocations: 4 kB / 0.8422 GB, free: 10.29 MB / 0.8073 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 (sampler1.firstTrigger,$PRE.sampler1.firstTrigger,sampler1.sampleTrigger,$whenCondition1,sampler1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * 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.407e-05/0.008621, allocations: 109.8 kB / 0.8423 GB, free: 10.18 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.306e-05/0.008634, allocations: 4 kB / 0.8423 GB, free: 10.17 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000115/0.008749, allocations: 62 kB / 0.8423 GB, free: 10.11 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.517e-06/0.008752, allocations: 7.938 kB / 0.8424 GB, free: 10.1 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.763e-06/0.008754, allocations: 0 / 0.8424 GB, free: 10.1 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.008757, allocations: 0 / 0.8424 GB, free: 10.1 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002267/0.008984, allocations: 202.8 kB / 0.8425 GB, free: 9.879 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.008987, allocations: 3.984 kB / 0.8425 GB, free: 9.875 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.984e-05/0.009026, allocations: 4 kB / 0.8426 GB, free: 9.871 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.126e-06/0.00903, allocations: 0 / 0.8426 GB, free: 9.871 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.904e-06/0.009038, allocations: 3.938 kB / 0.8426 GB, free: 9.867 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.146e-06/0.009041, allocations: 7.938 kB / 0.8426 GB, free: 9.859 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.009042, allocations: 0 / 0.8426 GB, free: 9.859 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001239/0.009166, allocations: 139.5 kB / 0.8427 GB, free: 9.707 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 1.056e-05/0.009177, allocations: 4 kB / 0.8427 GB, free: 9.703 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.531e-05/0.009192, allocations: 7.938 kB / 0.8427 GB, free: 9.695 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.39e-05/0.009266, allocations: 12.17 kB / 0.8427 GB, free: 9.684 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.818e-05/0.009304, allocations: 4 kB / 0.8427 GB, free: 9.68 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.326e-05/0.009317, allocations: 4 kB / 0.8427 GB, free: 9.676 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 1.988e-05/0.009337, allocations: 16.83 kB / 0.8427 GB, free: 9.656 MB / 0.8073 GB Notification: Performance of sort global known variables: time 6e-08/0.009337, allocations: 0 / 0.8427 GB, free: 9.656 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.000243/0.00958, allocations: 16 kB / 0.8428 GB, free: 9.641 MB / 0.8073 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 (sampler1.sampleTrigger,$whenCondition1,sampler1.y,sampler1.firstTrigger) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001551/0.009735, allocations: 84.3 kB / 0.8428 GB, free: 9.547 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 9.574e-05/0.009831, allocations: 24.84 kB / 0.8429 GB, free: 9.52 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 5.45e-06/0.009836, allocations: 4.188 kB / 0.8429 GB, free: 9.516 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 3.775e-05/0.009874, allocations: 32.72 kB / 0.8429 GB, free: 9.48 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002056/0.01008, allocations: 4 kB / 0.8429 GB, free: 9.477 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005158/0.0106, allocations: 136.6 kB / 0.843 GB, free: 9.316 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.618e-05/0.01064, allocations: 59.34 kB / 0.8431 GB, free: 9.238 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 3.157e-05/0.01067, allocations: 4 kB / 0.8431 GB, free: 9.234 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.508e-05/0.01074, allocations: 59.38 kB / 0.8431 GB, free: 9.176 MB / 0.8073 GB Notification: Performance of SimCode: time 1.052e-06/0.01074, allocations: 4 kB / 0.8432 GB, free: 9.172 MB / 0.8073 GB Notification: Performance of Templates: time 0.003558/0.0143, allocations: 0.8622 MB / 0.844 GB, free: 8.324 MB / 0.8073 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.40004594065249]