Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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=5000,variableFilter="time|sampler1.u|sampler1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sampler1.u|sampler1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0108/0.0108, allocations: 99.95 kB / 15.73 MB, free: 6.473 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002386/0.002386, allocations: 194.8 kB / 16.67 MB, free: 6.379 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.526/1.526, allocations: 222.9 MB / 240.4 MB, free: 4.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.431/2.431, allocations: 390.2 MB / 0.6648 GB, free: 216 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001194/0.001195, allocations: 67.25 kB / 0.9508 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3788/0.38, allocations: 140.4 MB / 1.088 GB, free: 1.582 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.001918/0.382, allocations: 0.6684 MB / 1.089 GB, free: 0.9141 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001326/0.3834, allocations: 1.06 MB / 1.09 GB, free: 15.84 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.758e-05/0.3834, allocations: 0 / 1.09 GB, free: 15.84 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.037e-05/0.3835, allocations: 4 kB / 1.09 GB, free: 15.84 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 6.508e-05/0.3835, allocations: 7.875 kB / 1.09 GB, free: 15.83 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002967/0.3838, allocations: 39.89 kB / 1.09 GB, free: 15.79 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 9.894e-05/0.3839, allocations: 47.91 kB / 1.09 GB, free: 15.74 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001036/0.3841, allocations: 15.92 kB / 1.09 GB, free: 15.73 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 6.828e-05/0.3841, allocations: 15.94 kB / 1.09 GB, free: 15.71 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 5.591e-05/0.3842, allocations: 23.89 kB / 1.09 GB, free: 15.69 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.478e-05/0.3842, allocations: 4 kB / 1.09 GB, free: 15.68 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 8.071e-05/0.3843, allocations: 23.98 kB / 1.09 GB, free: 15.66 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.881e-05/0.3843, allocations: 4 kB / 1.09 GB, free: 15.66 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.788e-05/0.3844, allocations: 23.86 kB / 1.09 GB, free: 15.63 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001371/0.3845, allocations: 51.84 kB / 1.09 GB, free: 15.58 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/0.3845, allocations: 0 / 1.09 GB, free: 15.58 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.443e-06/0.3845, allocations: 0 / 1.09 GB, free: 15.58 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.641e-06/0.3845, allocations: 3.938 kB / 1.09 GB, free: 15.58 MB / 0.8575 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.0006281/0.3852, allocations: 371.4 kB / 1.09 GB, free: 15.16 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.143e-05/0.3852, allocations: 8.031 kB / 1.09 GB, free: 15.16 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.898e-05/0.3853, allocations: 4.938 kB / 1.09 GB, free: 15.15 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001174/0.3854, allocations: 176.2 kB / 1.09 GB, free: 14.94 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.677e-05/0.3854, allocations: 4.375 kB / 1.09 GB, free: 14.94 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.401e-05/0.3854, allocations: 4.375 kB / 1.09 GB, free: 14.93 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002053/0.3856, allocations: 62.22 kB / 1.09 GB, free: 14.87 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.079e-05/0.3857, allocations: 192 / 1.09 GB, free: 14.87 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.527e-05/0.3857, allocations: 7.875 kB / 1.09 GB, free: 14.86 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.749e-06/0.3857, allocations: 4 kB / 1.09 GB, free: 14.86 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001855/0.3859, allocations: 39.95 kB / 1.09 GB, free: 14.82 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004421/0.3863, allocations: 276.8 kB / 1.091 GB, free: 14.5 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000177/0.3865, allocations: 58.48 kB / 1.091 GB, free: 14.43 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001026/0.3866, allocations: 36.95 kB / 1.091 GB, free: 14.39 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.465e-05/0.3867, allocations: 0 / 1.091 GB, free: 14.39 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001973/0.3869, allocations: 71.38 kB / 1.091 GB, free: 14.31 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=6): time 1.383e-06/0.3869, allocations: 0 / 1.091 GB, free: 14.31 MB / 0.8575 GB Notification: Performance of matching and sorting (n=6): time 0.0004297/0.3873, allocations: 125.5 kB / 1.091 GB, free: 14.18 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.149e-05/0.3874, allocations: 55.41 kB / 1.091 GB, free: 14.11 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.019e-05/0.3874, allocations: 106.3 kB / 1.091 GB, free: 14 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.278e-05/0.3875, allocations: 29.7 kB / 1.091 GB, free: 13.96 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.309e-05/0.3875, allocations: 80.14 kB / 1.091 GB, free: 13.88 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.915e-05/0.3876, allocations: 15.81 kB / 1.091 GB, free: 13.87 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.154e-05/0.3876, allocations: 25.7 kB / 1.091 GB, free: 13.84 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001061/0.3877, allocations: 314.8 kB / 1.092 GB, free: 13.52 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.991e-05/0.3878, allocations: 27.97 kB / 1.092 GB, free: 13.49 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001118/0.3879, allocations: 47.48 kB / 1.092 GB, free: 13.43 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002041/0.3881, allocations: 91.25 kB / 1.092 GB, free: 13.33 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.3882, allocations: 0 / 1.092 GB, free: 13.33 MB / 0.8575 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.000272/0.3884, allocations: 109.4 kB / 1.092 GB, free: 13.22 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.609e-05/0.3885, allocations: 4 kB / 1.092 GB, free: 13.21 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.711e-06/0.3885, allocations: 160 / 1.092 GB, free: 13.21 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.573e-05/0.3885, allocations: 4 kB / 1.092 GB, free: 13.21 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001036/0.3886, allocations: 16.08 kB / 1.092 GB, free: 13.2 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.036e-05/0.3886, allocations: 11.98 kB / 1.092 GB, free: 13.18 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.898e-05/0.3887, allocations: 15.92 kB / 1.092 GB, free: 13.17 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.989e-06/0.3887, allocations: 0 / 1.092 GB, free: 13.17 MB / 0.8575 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.56e-05/0.3888, allocations: 120.8 kB / 1.092 GB, free: 13.04 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.164e-05/0.3888, allocations: 4 kB / 1.092 GB, free: 13.04 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002852/0.3891, allocations: 106 kB / 1.092 GB, free: 12.93 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.945e-06/0.3891, allocations: 4 kB / 1.092 GB, free: 12.93 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.3891, allocations: 3.938 kB / 1.092 GB, free: 12.92 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.3891, allocations: 0 / 1.092 GB, free: 12.92 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004376/0.3896, allocations: 358.4 kB / 1.093 GB, free: 12.52 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.611e-06/0.3896, allocations: 7.938 kB / 1.093 GB, free: 12.51 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.733e-05/0.3897, allocations: 7.984 kB / 1.093 GB, free: 12.5 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.3897, allocations: 0 / 1.093 GB, free: 12.5 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.407e-06/0.3897, allocations: 0 / 1.093 GB, free: 12.5 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.323e-06/0.3897, allocations: 8 kB / 1.093 GB, free: 12.49 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.3897, allocations: 0 / 1.093 GB, free: 12.49 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002838/0.39, allocations: 191.6 kB / 1.093 GB, free: 12.29 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.974e-05/0.39, allocations: 81.02 kB / 1.093 GB, free: 12.19 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.704e-05/0.3901, allocations: 11.94 kB / 1.093 GB, free: 12.18 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.725e-05/0.3902, allocations: 11.98 kB / 1.093 GB, free: 12.17 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.475e-05/0.3902, allocations: 11.98 kB / 1.093 GB, free: 12.16 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.35e-05/0.3902, allocations: 3.938 kB / 1.093 GB, free: 12.15 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.322e-05/0.3903, allocations: 79.28 kB / 1.093 GB, free: 12.07 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3903, allocations: 0 / 1.093 GB, free: 12.07 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002452/0.3906, allocations: 16 kB / 1.093 GB, free: 12.06 MB / 0.8575 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.0001726/0.3907, allocations: 103.8 kB / 1.093 GB, free: 11.95 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002701/0.391, allocations: 67.89 kB / 1.093 GB, free: 11.88 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.391, allocations: 0 / 1.093 GB, free: 11.88 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.000113/0.3911, allocations: 31.97 kB / 1.093 GB, free: 11.85 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002773/0.3914, allocations: 9.25 kB / 1.093 GB, free: 11.84 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003401/0.3918, allocations: 129.6 kB / 1.093 GB, free: 11.69 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002524/0.392, allocations: 0.6848 MB / 1.094 GB, free: 10.98 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.226e-05/0.3921, allocations: 7.75 kB / 1.094 GB, free: 10.97 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.313e-05/0.3921, allocations: 11.38 kB / 1.094 GB, free: 10.96 MB / 0.8575 GB Notification: Performance of SimCode: time 2.3e-07/0.3921, allocations: 0 / 1.094 GB, free: 10.96 MB / 0.8575 GB Notification: Performance of Templates: time 0.003177/0.3953, allocations: 0.7839 MB / 1.095 GB, free: 10.18 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches