Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.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.001762/0.001762, allocations: 113.9 kB / 18.94 MB, free: 2.953 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.00233/0.00233, allocations: 189.8 kB / 22.23 MB, free: 5.133 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.685/1.685, allocations: 225.6 MB / 251 MB, free: 13.04 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.2-maint.10.0.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.2-maint.10.0.x/package.mo): time 2.765/2.765, allocations: 443.4 MB / 0.7321 GB, free: 12.26 MB / 0.5919 GB " [Timeout remaining time 176] Using package Buildings with version 10.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.2-maint.10.0.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.Examples.Sampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sampler1.u|sampler1.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sampler1.u|sampler1.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001996/0.001996, allocations: 67.89 kB / 1.061 GB, free: 2.969 MB / 0.8575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.127/1.129, allocations: 160.8 MB / 1.218 GB, free: 3.652 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.002426/1.131, allocations: 0.6763 MB / 1.219 GB, free: 3.145 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.0018/1.133, allocations: 1.061 MB / 1.22 GB, free: 2.289 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.618e-05/1.133, allocations: 0 / 1.22 GB, free: 2.289 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 3.342e-05/1.133, allocations: 3.938 kB / 1.22 GB, free: 2.285 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 8.515e-05/1.133, allocations: 13.17 kB / 1.22 GB, free: 2.273 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003714/1.133, allocations: 38.28 kB / 1.22 GB, free: 2.246 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0001598/1.134, allocations: 50.88 kB / 1.22 GB, free: 2.215 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001329/1.134, allocations: 11.8 kB / 1.22 GB, free: 2.207 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 8.948e-05/1.134, allocations: 15.45 kB / 1.22 GB, free: 2.199 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 7.389e-05/1.134, allocations: 26.58 kB / 1.22 GB, free: 2.18 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 2.105e-05/1.134, allocations: 3.75 kB / 1.22 GB, free: 2.18 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 8.676e-05/1.134, allocations: 22.58 kB / 1.22 GB, free: 2.168 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 3.171e-05/1.134, allocations: 17.22 kB / 1.22 GB, free: 2.152 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 4.648e-05/1.134, allocations: 12.72 kB / 1.22 GB, free: 2.145 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001862/1.134, allocations: 64.41 kB / 1.22 GB, free: 2.098 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 5.68e-06/1.134, allocations: 1.281 kB / 1.22 GB, free: 2.098 MB / 0.92 GB Notification: Performance of FrontEnd: time 2.084e-06/1.134, allocations: 0 / 1.22 GB, free: 2.098 MB / 0.92 GB Notification: Performance of Transformations before backend: time 8.225e-06/1.134, allocations: 0 / 1.22 GB, free: 2.098 MB / 0.92 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.000786/1.135, allocations: 370.6 kB / 1.221 GB, free: 1.711 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 5.027e-05/1.135, allocations: 9.281 kB / 1.221 GB, free: 1.711 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.407e-05/1.135, allocations: 3.594 kB / 1.221 GB, free: 1.711 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00018/1.135, allocations: 166.7 kB / 1.221 GB, free: 1.512 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.689e-05/1.135, allocations: 5.594 kB / 1.221 GB, free: 1.508 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.493e-05/1.135, allocations: 2.875 kB / 1.221 GB, free: 1.508 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002514/1.136, allocations: 71.92 kB / 1.221 GB, free: 1.449 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.139e-05/1.136, allocations: 192 / 1.221 GB, free: 1.449 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.768e-05/1.136, allocations: 5.094 kB / 1.221 GB, free: 1.445 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.793e-06/1.136, allocations: 1.156 kB / 1.221 GB, free: 1.445 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000212/1.136, allocations: 42.52 kB / 1.221 GB, free: 1.426 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005415/1.136, allocations: 278.5 kB / 1.221 GB, free: 1.121 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001874/1.137, allocations: 58.36 kB / 1.221 GB, free: 1.074 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.914e-05/1.137, allocations: 29.62 kB / 1.221 GB, free: 1.055 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 2.725e-05/1.137, allocations: 1.188 kB / 1.221 GB, free: 1.055 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002376/1.137, allocations: 76.94 kB / 1.221 GB, free: 0.9844 MB / 0.92 GB Notification: Performance of pre-optimization done (n=6): time 1.273e-06/1.137, allocations: 0 / 1.221 GB, free: 0.9844 MB / 0.92 GB Notification: Performance of matching and sorting (n=6): time 0.0005173/1.137, allocations: 123.6 kB / 1.222 GB, free: 0.9102 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.379e-05/1.138, allocations: 56.25 kB / 1.222 GB, free: 0.8438 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001151/1.138, allocations: 104.9 kB / 1.222 GB, free: 0.7383 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 2.553e-05/1.138, allocations: 38.45 kB / 1.222 GB, free: 0.6953 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 7.162e-05/1.138, allocations: 86.39 kB / 1.222 GB, free: 0.6094 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.54e-05/1.138, allocations: 14.56 kB / 1.222 GB, free: 0.5977 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.11e-05/1.138, allocations: 23.02 kB / 1.222 GB, free: 0.5742 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001588/1.138, allocations: 311.9 kB / 1.222 GB, free: 268 kB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001022/1.138, allocations: 26.31 kB / 1.222 GB, free: 256 kB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001247/1.138, allocations: 54.97 kB / 1.222 GB, free: 204 kB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002113/1.138, allocations: 78.81 kB / 1.222 GB, free: 144 kB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/1.138, allocations: 0 / 1.222 GB, free: 144 kB / 0.92 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002726/1.139, allocations: 107.8 kB / 1.222 GB, free: 72 kB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 2.089e-05/1.139, allocations: 5.188 kB / 1.222 GB, free: 72 kB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.164e-06/1.139, allocations: 1.156 kB / 1.222 GB, free: 72 kB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.89e-05/1.139, allocations: 0.9062 kB / 1.222 GB, free: 72 kB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001165/1.139, allocations: 18.05 kB / 1.222 GB, free: 64 kB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.136e-06/1.139, allocations: 2.156 kB / 1.222 GB, free: 64 kB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.923e-05/1.139, allocations: 16.48 kB / 1.223 GB, free: 52 kB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.384e-05/1.139, allocations: 6.719 kB / 1.223 GB, free: 48 kB / 0.92 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 0.0001424/1.139, allocations: 125.7 kB / 1.223 GB, free: 15.92 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.574e-05/1.139, allocations: 6.141 kB / 1.223 GB, free: 15.91 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003211/1.139, allocations: 104.4 kB / 1.223 GB, free: 15.84 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/1.139, allocations: 1.125 kB / 1.223 GB, free: 15.84 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.554e-06/1.139, allocations: 3.984 kB / 1.223 GB, free: 15.84 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.401e-06/1.139, allocations: 1.281 kB / 1.223 GB, free: 15.84 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005319/1.14, allocations: 356.1 kB / 1.223 GB, free: 15.48 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.158e-06/1.14, allocations: 4.062 kB / 1.223 GB, free: 15.48 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.024e-05/1.14, allocations: 10.16 kB / 1.223 GB, free: 15.48 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.744e-06/1.14, allocations: 1.094 kB / 1.223 GB, free: 15.48 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.32e-05/1.14, allocations: 4.984 kB / 1.223 GB, free: 15.47 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/1.14, allocations: 0 / 1.223 GB, free: 15.47 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/1.14, allocations: 1.062 kB / 1.223 GB, free: 15.47 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003321/1.14, allocations: 193.1 kB / 1.223 GB, free: 15.31 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 6.498e-05/1.14, allocations: 86.22 kB / 1.223 GB, free: 15.21 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.258e-05/1.141, allocations: 5.047 kB / 1.223 GB, free: 15.2 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.375e-05/1.141, allocations: 4.281 kB / 1.223 GB, free: 15.2 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.957e-05/1.141, allocations: 11.2 kB / 1.223 GB, free: 15.2 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.676e-05/1.141, allocations: 5.094 kB / 1.223 GB, free: 15.19 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 6.379e-05/1.141, allocations: 92.39 kB / 1.223 GB, free: 15.11 MB / 0.9356 GB Notification: Performance of sort global known variables: time 8e-08/1.141, allocations: 0 / 1.223 GB, free: 15.11 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002546/1.141, allocations: 14.69 kB / 1.224 GB, free: 15.1 MB / 0.9356 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.0001872/1.141, allocations: 103.1 kB / 1.224 GB, free: 15.01 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0002868/1.141, allocations: 64.34 kB / 1.224 GB, free: 14.98 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/1.141, allocations: 192 / 1.224 GB, free: 14.98 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001164/1.142, allocations: 34.08 kB / 1.224 GB, free: 14.96 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002874/1.142, allocations: 11.64 kB / 1.224 GB, free: 14.96 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004494/1.142, allocations: 140 kB / 1.224 GB, free: 14.82 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003571/1.143, allocations: 0.6833 MB / 1.225 GB, free: 14.12 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 3.769e-05/1.143, allocations: 11.2 kB / 1.225 GB, free: 14.11 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.778e-05/1.143, allocations: 14.59 kB / 1.225 GB, free: 14.1 MB / 0.9356 GB Notification: Performance of SimCode: time 7.81e-07/1.143, allocations: 0 / 1.225 GB, free: 14.1 MB / 0.9356 GB Notification: Performance of Templates: time 0.004441/1.147, allocations: 0.8155 MB / 1.225 GB, free: 13.69 MB / 0.9356 GB " [Timeout remaining time 299] make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.makefile [Timeout 300] (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.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: 9.651902345009148]