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.001929/0.001929, allocations: 113.9 kB / 17.61 MB, free: 4.684 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: 185.9 kB / 20.78 MB, free: 1.52 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.605/1.605, allocations: 225.6 MB / 249.4 MB, free: 3.152 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.771/2.771, allocations: 443.5 MB / 0.7304 GB, free: 13.89 MB / 0.5762 GB " [Timeout remaining time 176] Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.002768/0.002768, allocations: 71.89 kB / 1.059 GB, free: 396 kB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4176/0.4203, allocations: 160.7 MB / 1.216 GB, free: 15.36 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.002179/0.4225, allocations: 0.673 MB / 1.217 GB, free: 14.68 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001609/0.4241, allocations: 1.067 MB / 1.218 GB, free: 13.6 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.875e-05/0.4242, allocations: 0 / 1.218 GB, free: 13.6 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 2.862e-05/0.4242, allocations: 3.938 kB / 1.218 GB, free: 13.6 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 7.975e-05/0.4243, allocations: 3.938 kB / 1.218 GB, free: 13.59 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.000361/0.4247, allocations: 51.83 kB / 1.218 GB, free: 13.54 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001262/0.4248, allocations: 43.91 kB / 1.218 GB, free: 13.5 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001058/0.4249, allocations: 4 kB / 1.218 GB, free: 13.5 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 7.77e-05/0.425, allocations: 23.91 kB / 1.218 GB, free: 13.47 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 6.914e-05/0.425, allocations: 27.91 kB / 1.218 GB, free: 13.45 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.733e-05/0.4251, allocations: 4 kB / 1.218 GB, free: 13.44 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 6.818e-05/0.4251, allocations: 16 kB / 1.218 GB, free: 13.43 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.671e-05/0.4252, allocations: 11.92 kB / 1.218 GB, free: 13.41 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 4.045e-05/0.4252, allocations: 15.92 kB / 1.218 GB, free: 13.4 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001719/0.4254, allocations: 67.66 kB / 1.218 GB, free: 13.33 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.4254, allocations: 0 / 1.218 GB, free: 13.33 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.833e-06/0.4254, allocations: 4 kB / 1.218 GB, free: 13.33 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 6.092e-06/0.4254, allocations: 0 / 1.218 GB, free: 13.33 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0007235/0.4261, allocations: 367.3 kB / 1.218 GB, free: 12.92 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.356e-05/0.4261, allocations: 8.031 kB / 1.218 GB, free: 12.91 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.595e-05/0.4262, allocations: 4.938 kB / 1.218 GB, free: 12.91 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001446/0.4263, allocations: 168.3 kB / 1.219 GB, free: 12.7 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.438e-05/0.4264, allocations: 4.375 kB / 1.219 GB, free: 12.7 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.862e-05/0.4264, allocations: 8.375 kB / 1.219 GB, free: 12.69 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000219/0.4266, allocations: 62.22 kB / 1.219 GB, free: 12.62 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.105e-05/0.4266, allocations: 192 / 1.219 GB, free: 12.62 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.699e-05/0.4266, allocations: 7.922 kB / 1.219 GB, free: 12.62 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.589e-06/0.4266, allocations: 0 / 1.219 GB, free: 12.62 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001913/0.4268, allocations: 43.91 kB / 1.219 GB, free: 12.57 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006401/0.4275, allocations: 272.9 kB / 1.219 GB, free: 12.26 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001864/0.4276, allocations: 58.48 kB / 1.219 GB, free: 12.19 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001022/0.4277, allocations: 36.89 kB / 1.219 GB, free: 12.15 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 3.181e-05/0.4278, allocations: 0 / 1.219 GB, free: 12.15 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002441/0.428, allocations: 75.33 kB / 1.219 GB, free: 12.07 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=6): time 1.292e-06/0.428, allocations: 0 / 1.219 GB, free: 12.07 MB / 0.9669 GB Notification: Performance of matching and sorting (n=6): time 0.0004645/0.4285, allocations: 121.6 kB / 1.219 GB, free: 11.94 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.862e-05/0.4286, allocations: 51.41 kB / 1.219 GB, free: 11.88 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001345/0.4287, allocations: 105.8 kB / 1.219 GB, free: 11.77 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.883e-05/0.4287, allocations: 29.7 kB / 1.219 GB, free: 11.73 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 8.407e-05/0.4288, allocations: 92.06 kB / 1.22 GB, free: 11.64 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.636e-05/0.4288, allocations: 15.91 kB / 1.22 GB, free: 11.62 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.741e-05/0.4289, allocations: 21.72 kB / 1.22 GB, free: 11.59 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001745/0.429, allocations: 318.8 kB / 1.22 GB, free: 11.27 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.466e-05/0.4291, allocations: 24 kB / 1.22 GB, free: 11.25 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001122/0.4293, allocations: 55.39 kB / 1.22 GB, free: 11.18 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002109/0.4295, allocations: 83.27 kB / 1.22 GB, free: 11.09 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.4295, allocations: 0 / 1.22 GB, free: 11.09 MB / 0.9669 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002474/0.4297, allocations: 113.5 kB / 1.22 GB, free: 10.97 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 2.08e-05/0.4297, allocations: 4 kB / 1.22 GB, free: 10.97 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.4297, allocations: 0 / 1.22 GB, free: 10.97 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.128e-05/0.4298, allocations: 4 kB / 1.22 GB, free: 10.96 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001173/0.4299, allocations: 16.03 kB / 1.22 GB, free: 10.95 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.214e-05/0.4299, allocations: 4 kB / 1.22 GB, free: 10.95 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.357e-05/0.43, allocations: 11.92 kB / 1.22 GB, free: 10.93 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.289e-05/0.43, allocations: 3.984 kB / 1.22 GB, free: 10.93 MB / 0.9669 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.0001218/0.4301, allocations: 121.9 kB / 1.22 GB, free: 10.8 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.478e-05/0.4301, allocations: 7.953 kB / 1.22 GB, free: 10.79 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002848/0.4304, allocations: 102 kB / 1.22 GB, free: 10.69 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.035e-06/0.4304, allocations: 0 / 1.22 GB, free: 10.69 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.4304, allocations: 0 / 1.22 GB, free: 10.69 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.908e-06/0.4304, allocations: 0 / 1.22 GB, free: 10.69 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005262/0.4309, allocations: 355 kB / 1.221 GB, free: 10.29 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.308e-06/0.4309, allocations: 8.062 kB / 1.221 GB, free: 10.28 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.568e-05/0.431, allocations: 7.984 kB / 1.221 GB, free: 10.27 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.431, allocations: 0 / 1.221 GB, free: 10.27 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.499e-05/0.431, allocations: 4 kB / 1.221 GB, free: 10.27 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.362e-06/0.431, allocations: 0 / 1.221 GB, free: 10.27 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.431, allocations: 0 / 1.221 GB, free: 10.27 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003239/0.4313, allocations: 199.4 kB / 1.221 GB, free: 10.05 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.967e-05/0.4314, allocations: 85 kB / 1.221 GB, free: 9.953 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.76e-05/0.4314, allocations: 4 kB / 1.221 GB, free: 9.949 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001027/0.4315, allocations: 11.98 kB / 1.221 GB, free: 9.938 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.189e-05/0.4316, allocations: 4 kB / 1.221 GB, free: 9.934 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.703e-05/0.4316, allocations: 7.875 kB / 1.221 GB, free: 9.926 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 5.287e-05/0.4316, allocations: 87.27 kB / 1.221 GB, free: 9.84 MB / 0.9669 GB Notification: Performance of sort global known variables: time 8e-08/0.4316, allocations: 0 / 1.221 GB, free: 9.84 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002446/0.4319, allocations: 16 kB / 1.221 GB, free: 9.824 MB / 0.9669 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.000209/0.4321, allocations: 103.2 kB / 1.221 GB, free: 9.715 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0003168/0.4324, allocations: 63.89 kB / 1.221 GB, free: 9.652 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.4324, allocations: 0 / 1.221 GB, free: 9.652 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001179/0.4325, allocations: 28.11 kB / 1.221 GB, free: 9.625 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003289/0.4328, allocations: 18.17 kB / 1.221 GB, free: 9.609 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004257/0.4333, allocations: 141.9 kB / 1.221 GB, free: 9.441 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003501/0.4336, allocations: 0.6885 MB / 1.222 GB, free: 8.727 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 3.742e-05/0.4337, allocations: 3.938 kB / 1.222 GB, free: 8.723 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.095e-05/0.4337, allocations: 11.44 kB / 1.222 GB, free: 8.711 MB / 0.9669 GB Notification: Performance of SimCode: time 9.22e-07/0.4337, allocations: 0 / 1.222 GB, free: 8.711 MB / 0.9669 GB Notification: Performance of Templates: time 0.00405/0.4377, allocations: 0.8071 MB / 1.223 GB, free: 7.906 MB / 0.9669 GB " [Timeout remaining time 300] 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.039710541255772]