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.001286/0.001286, allocations: 113.8 kB / 17.13 MB, free: 5.938 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.001313/0.001313, allocations: 197.2 kB / 20.08 MB, free: 3 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.447/1.447, allocations: 225.6 MB / 248.5 MB, free: 3.605 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.553/2.553, allocations: 443.5 MB / 0.7293 GB, free: 14.5 MB / 0.5762 GB " [Timeout remaining time 177] 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.001955/0.001955, allocations: 71.88 kB / 1.057 GB, free: 2.012 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3291/0.3311, allocations: 160.7 MB / 1.214 GB, free: 0.9844 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.001908/0.333, allocations: 0.6698 MB / 1.215 GB, free: 312 kB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.001345/0.3343, allocations: 1.063 MB / 1.216 GB, free: 15.23 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.946e-05/0.3344, allocations: 0 / 1.216 GB, free: 15.23 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.18e-05/0.3344, allocations: 3.938 kB / 1.216 GB, free: 15.22 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 6.518e-05/0.3345, allocations: 3.938 kB / 1.216 GB, free: 15.22 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002926/0.3348, allocations: 43.83 kB / 1.216 GB, free: 15.18 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001019/0.3349, allocations: 51.91 kB / 1.216 GB, free: 15.12 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 8.878e-05/0.335, allocations: 3.984 kB / 1.216 GB, free: 15.12 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 7.047e-05/0.335, allocations: 23.92 kB / 1.216 GB, free: 15.1 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 5.753e-05/0.3351, allocations: 23.91 kB / 1.216 GB, free: 15.07 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.475e-05/0.3351, allocations: 4 kB / 1.216 GB, free: 15.07 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 6.535e-05/0.3352, allocations: 15.98 kB / 1.216 GB, free: 15.05 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.523e-05/0.3352, allocations: 15.88 kB / 1.216 GB, free: 15.04 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 4.032e-05/0.3352, allocations: 19.92 kB / 1.216 GB, free: 15.02 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001323/0.3354, allocations: 51.78 kB / 1.216 GB, free: 14.97 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.566e-06/0.3354, allocations: 7.938 kB / 1.216 GB, free: 14.96 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.283e-06/0.3354, allocations: 0 / 1.216 GB, free: 14.96 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 4.899e-06/0.3354, allocations: 4 kB / 1.216 GB, free: 14.96 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.0006382/0.336, allocations: 371.2 kB / 1.216 GB, free: 14.54 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.59e-05/0.3361, allocations: 8.031 kB / 1.216 GB, free: 14.54 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.248e-05/0.3361, allocations: 4.938 kB / 1.216 GB, free: 14.53 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001281/0.3362, allocations: 164.3 kB / 1.217 GB, free: 14.33 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.522e-05/0.3362, allocations: 4.375 kB / 1.217 GB, free: 14.33 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.333e-05/0.3363, allocations: 4.375 kB / 1.217 GB, free: 14.32 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002085/0.3365, allocations: 74.14 kB / 1.217 GB, free: 14.25 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.03e-05/0.3365, allocations: 192 / 1.217 GB, free: 14.25 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.259e-05/0.3365, allocations: 3.938 kB / 1.217 GB, free: 14.24 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.618e-06/0.3365, allocations: 0 / 1.217 GB, free: 14.24 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001945/0.3367, allocations: 43.95 kB / 1.217 GB, free: 14.2 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004563/0.3371, allocations: 264.9 kB / 1.217 GB, free: 13.89 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001764/0.3373, allocations: 58.48 kB / 1.217 GB, free: 13.82 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001006/0.3374, allocations: 36.89 kB / 1.217 GB, free: 13.79 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.247e-05/0.3374, allocations: 3.938 kB / 1.217 GB, free: 13.78 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001957/0.3376, allocations: 71.38 kB / 1.217 GB, free: 13.7 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=6): time 1.332e-06/0.3376, allocations: 4 kB / 1.217 GB, free: 13.7 MB / 0.9669 GB Notification: Performance of matching and sorting (n=6): time 0.0004415/0.3381, allocations: 121.6 kB / 1.217 GB, free: 13.57 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.438e-05/0.3381, allocations: 55.41 kB / 1.217 GB, free: 13.5 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.571e-05/0.3382, allocations: 109.8 kB / 1.217 GB, free: 13.39 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.066e-05/0.3382, allocations: 25.7 kB / 1.217 GB, free: 13.36 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 5.168e-05/0.3383, allocations: 84.08 kB / 1.217 GB, free: 13.27 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.178e-05/0.3383, allocations: 19.91 kB / 1.217 GB, free: 13.25 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.902e-05/0.3384, allocations: 25.7 kB / 1.217 GB, free: 13.22 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001509/0.3385, allocations: 314.8 kB / 1.218 GB, free: 12.9 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001071/0.3386, allocations: 28.53 kB / 1.218 GB, free: 12.88 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001143/0.3387, allocations: 43.42 kB / 1.218 GB, free: 12.82 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002118/0.339, allocations: 87.27 kB / 1.218 GB, free: 12.72 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.339, allocations: 0 / 1.218 GB, free: 12.72 MB / 0.9669 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.000278/0.3392, allocations: 121.6 kB / 1.218 GB, free: 12.6 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.559e-05/0.3393, allocations: 6.188 kB / 1.218 GB, free: 12.59 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.04e-06/0.3393, allocations: 0 / 1.218 GB, free: 12.59 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.76e-05/0.3393, allocations: 7.938 kB / 1.218 GB, free: 12.59 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001108/0.3394, allocations: 15.92 kB / 1.218 GB, free: 12.57 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.38e-06/0.3394, allocations: 0 / 1.218 GB, free: 12.57 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.723e-05/0.3395, allocations: 11.98 kB / 1.218 GB, free: 12.56 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.047e-06/0.3395, allocations: 0 / 1.218 GB, free: 12.56 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 9.709e-05/0.3396, allocations: 117.8 kB / 1.218 GB, free: 12.43 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.463e-05/0.3396, allocations: 11.95 kB / 1.218 GB, free: 12.42 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000284/0.3399, allocations: 106 kB / 1.218 GB, free: 12.31 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.365e-06/0.3399, allocations: 0 / 1.218 GB, free: 12.31 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.3399, allocations: 0 / 1.218 GB, free: 12.31 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.596e-06/0.3399, allocations: 0 / 1.218 GB, free: 12.31 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004605/0.3403, allocations: 346.5 kB / 1.219 GB, free: 11.92 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.462e-06/0.3403, allocations: 4 kB / 1.219 GB, free: 11.91 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.964e-05/0.3404, allocations: 11.98 kB / 1.219 GB, free: 11.9 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.3404, allocations: 0 / 1.219 GB, free: 11.9 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.734e-06/0.3404, allocations: 0 / 1.219 GB, free: 11.9 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.861e-06/0.3404, allocations: 7.938 kB / 1.219 GB, free: 11.89 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.3404, allocations: 160 / 1.219 GB, free: 11.89 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002977/0.3407, allocations: 199.4 kB / 1.219 GB, free: 11.68 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.584e-05/0.3408, allocations: 81.05 kB / 1.219 GB, free: 11.59 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.85e-05/0.3408, allocations: 8 kB / 1.219 GB, free: 11.58 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.659e-05/0.3409, allocations: 8.172 kB / 1.219 GB, free: 11.57 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.715e-05/0.3409, allocations: 11.98 kB / 1.219 GB, free: 11.56 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.318e-05/0.3409, allocations: 3.938 kB / 1.219 GB, free: 11.55 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 5.016e-05/0.341, allocations: 87.22 kB / 1.219 GB, free: 11.47 MB / 0.9669 GB Notification: Performance of sort global known variables: time 6e-08/0.341, allocations: 0 / 1.219 GB, free: 11.47 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.000233/0.3412, allocations: 12 kB / 1.219 GB, free: 11.46 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.0001613/0.3414, allocations: 114 kB / 1.219 GB, free: 11.34 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002569/0.3416, allocations: 55.95 kB / 1.219 GB, free: 11.29 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.077e-05/0.3416, allocations: 4 kB / 1.219 GB, free: 11.28 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001258/0.3418, allocations: 31.91 kB / 1.219 GB, free: 11.25 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002545/0.342, allocations: 14.25 kB / 1.219 GB, free: 11.24 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003771/0.3424, allocations: 163.6 kB / 1.219 GB, free: 11.04 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003171/0.3427, allocations: 0.6807 MB / 1.22 GB, free: 10.34 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.98e-05/0.3427, allocations: 11.44 kB / 1.22 GB, free: 10.32 MB / 0.9669 GB Notification: Performance of SimCode: time 3.31e-07/0.3427, allocations: 3.938 kB / 1.22 GB, free: 10.32 MB / 0.9669 GB Notification: Performance of Templates: time 0.0026/0.3453, allocations: 0.8634 MB / 1.221 GB, free: 9.457 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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 10.065592345781624]