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.01154/0.01154, allocations: 95.92 kB / 15.73 MB, free: 6.039 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.002433/0.002433, allocations: 197.1 kB / 16.68 MB, free: 5.969 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.466/1.466, allocations: 222.9 MB / 240.4 MB, free: 4.332 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.528/2.528, allocations: 390.2 MB / 0.6648 GB, free: 224 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001248/0.001248, allocations: 66.77 kB / 0.9508 GB, free: 5.641 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3487/0.3499, allocations: 140.4 MB / 1.088 GB, free: 1.527 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.001801/0.3518, allocations: 0.6617 MB / 1.089 GB, free: 0.8633 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001299/0.3531, allocations: 1.056 MB / 1.09 GB, free: 15.79 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.474e-05/0.3532, allocations: 0 / 1.09 GB, free: 15.79 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.148e-05/0.3532, allocations: 3.938 kB / 1.09 GB, free: 15.79 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 6.806e-05/0.3533, allocations: 7.875 kB / 1.09 GB, free: 15.78 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002873/0.3536, allocations: 43.89 kB / 1.09 GB, free: 15.74 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001017/0.3537, allocations: 43.84 kB / 1.09 GB, free: 15.7 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001088/0.3538, allocations: 8 kB / 1.09 GB, free: 15.69 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 6.927e-05/0.3539, allocations: 23.92 kB / 1.09 GB, free: 15.66 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 6.523e-05/0.354, allocations: 31.89 kB / 1.09 GB, free: 15.63 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.391e-05/0.354, allocations: 4 kB / 1.09 GB, free: 15.63 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 6.068e-05/0.354, allocations: 11.98 kB / 1.09 GB, free: 15.62 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.874e-05/0.3541, allocations: 8 kB / 1.09 GB, free: 15.61 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.003e-05/0.3541, allocations: 23.86 kB / 1.09 GB, free: 15.59 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001412/0.3543, allocations: 55.78 kB / 1.09 GB, free: 15.53 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.3543, allocations: 0 / 1.09 GB, free: 15.53 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.864e-06/0.3543, allocations: 4 kB / 1.09 GB, free: 15.53 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.204e-06/0.3543, allocations: 0 / 1.09 GB, free: 15.53 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.0006167/0.3549, allocations: 363.3 kB / 1.09 GB, free: 15.12 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.587e-05/0.355, allocations: 8.031 kB / 1.09 GB, free: 15.11 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.218e-05/0.355, allocations: 8.891 kB / 1.09 GB, free: 15.11 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001266/0.3551, allocations: 172.3 kB / 1.09 GB, free: 14.9 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.299e-05/0.3552, allocations: 4.375 kB / 1.09 GB, free: 14.89 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.183e-05/0.3552, allocations: 384 / 1.09 GB, free: 14.89 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002088/0.3554, allocations: 66.22 kB / 1.09 GB, free: 14.82 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.957e-06/0.3554, allocations: 4.188 kB / 1.09 GB, free: 14.82 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.251e-05/0.3554, allocations: 3.938 kB / 1.09 GB, free: 14.82 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.138e-06/0.3554, allocations: 0 / 1.09 GB, free: 14.82 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001827/0.3556, allocations: 47.89 kB / 1.091 GB, free: 14.77 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004544/0.3561, allocations: 272.8 kB / 1.091 GB, free: 14.45 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001783/0.3563, allocations: 70.47 kB / 1.091 GB, free: 14.38 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.703e-05/0.3564, allocations: 32.89 kB / 1.091 GB, free: 14.34 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.152e-05/0.3564, allocations: 4 kB / 1.091 GB, free: 14.34 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002029/0.3566, allocations: 75.31 kB / 1.091 GB, free: 14.25 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=6): time 1.333e-06/0.3566, allocations: 0 / 1.091 GB, free: 14.25 MB / 0.8575 GB Notification: Performance of matching and sorting (n=6): time 0.0004271/0.3571, allocations: 117.6 kB / 1.091 GB, free: 14.13 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.024e-05/0.3571, allocations: 59.39 kB / 1.091 GB, free: 14.06 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.453e-05/0.3572, allocations: 105.9 kB / 1.091 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.5e-05/0.3572, allocations: 25.7 kB / 1.091 GB, free: 13.91 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.41e-05/0.3573, allocations: 88.08 kB / 1.091 GB, free: 13.82 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.861e-05/0.3573, allocations: 19.84 kB / 1.091 GB, free: 13.8 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.517e-05/0.3574, allocations: 17.72 kB / 1.091 GB, free: 13.78 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001875/0.3576, allocations: 326.8 kB / 1.092 GB, free: 13.45 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.862e-05/0.3577, allocations: 19.98 kB / 1.092 GB, free: 13.43 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001214/0.3578, allocations: 51.34 kB / 1.092 GB, free: 13.37 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000211/0.358, allocations: 83.33 kB / 1.092 GB, free: 13.28 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.557e-06/0.358, allocations: 0 / 1.092 GB, free: 13.28 MB / 0.8575 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002777/0.3583, allocations: 105.5 kB / 1.092 GB, free: 13.17 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.472e-05/0.3584, allocations: 8 kB / 1.092 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.112e-06/0.3584, allocations: 4.094 kB / 1.092 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.216e-05/0.3584, allocations: 0 / 1.092 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001184/0.3585, allocations: 15.98 kB / 1.092 GB, free: 13.14 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.935e-06/0.3585, allocations: 160 / 1.092 GB, free: 13.14 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.883e-05/0.3586, allocations: 11.98 kB / 1.092 GB, free: 13.13 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.721e-05/0.3586, allocations: 7.984 kB / 1.092 GB, free: 13.12 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 0.0002411/0.3589, allocations: 121.7 kB / 1.092 GB, free: 12.99 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.549e-05/0.3589, allocations: 7.953 kB / 1.092 GB, free: 12.98 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002949/0.3592, allocations: 102 kB / 1.092 GB, free: 12.88 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.915e-06/0.3592, allocations: 0 / 1.092 GB, free: 12.88 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.061e-06/0.3592, allocations: 4 kB / 1.092 GB, free: 12.88 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.3592, allocations: 0 / 1.092 GB, free: 12.88 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000535/0.3598, allocations: 354.5 kB / 1.093 GB, free: 12.47 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.3598, allocations: 0.625 kB / 1.093 GB, free: 12.47 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.77e-05/0.3599, allocations: 15.98 kB / 1.093 GB, free: 12.46 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.677e-06/0.3599, allocations: 0 / 1.093 GB, free: 12.46 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.075e-05/0.3599, allocations: 3.938 kB / 1.093 GB, free: 12.45 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.4e-06/0.3599, allocations: 4 kB / 1.093 GB, free: 12.45 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.3599, allocations: 0 / 1.093 GB, free: 12.45 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004781/0.3604, allocations: 203.3 kB / 1.093 GB, free: 12.23 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 5.083e-05/0.3605, allocations: 77.11 kB / 1.093 GB, free: 12.14 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.228e-05/0.3605, allocations: 8 kB / 1.093 GB, free: 12.13 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001031/0.3606, allocations: 11.98 kB / 1.093 GB, free: 12.12 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.857e-05/0.3606, allocations: 3.984 kB / 1.093 GB, free: 12.12 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.64e-05/0.3607, allocations: 11.88 kB / 1.093 GB, free: 12.11 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0002043/0.3609, allocations: 83.28 kB / 1.093 GB, free: 12.02 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3609, allocations: 0 / 1.093 GB, free: 12.02 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002545/0.3611, allocations: 19.89 kB / 1.093 GB, free: 12 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.0001985/0.3614, allocations: 103.8 kB / 1.093 GB, free: 11.89 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003254/0.3617, allocations: 63.89 kB / 1.093 GB, free: 11.83 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.3617, allocations: 0 / 1.093 GB, free: 11.83 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001174/0.3618, allocations: 31.97 kB / 1.093 GB, free: 11.8 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000296/0.3621, allocations: 8 kB / 1.093 GB, free: 11.79 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000461/0.3626, allocations: 137.7 kB / 1.093 GB, free: 11.63 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000375/0.363, allocations: 0.6807 MB / 1.094 GB, free: 10.92 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.848e-05/0.363, allocations: 7.891 kB / 1.094 GB, free: 10.91 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.173e-05/0.3631, allocations: 11.44 kB / 1.094 GB, free: 10.9 MB / 0.8575 GB Notification: Performance of SimCode: time 2.11e-07/0.3631, allocations: 0 / 1.094 GB, free: 10.9 MB / 0.8575 GB Notification: Performance of Templates: time 0.00361/0.3667, allocations: 0.7977 MB / 1.095 GB, free: 10.11 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