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.01096/0.01096, allocations: 102 kB / 15.73 MB, free: 6.051 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.001962/0.001961, allocations: 195 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.469/1.469, allocations: 222.9 MB / 240.4 MB, free: 4.168 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.453/2.453, allocations: 390.2 MB / 0.6648 GB, free: 200 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00212/0.00212, allocations: 67.16 kB / 0.9508 GB, free: 5.559 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3725/0.3747, allocations: 140.4 MB / 1.088 GB, free: 1.547 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.002178/0.3769, allocations: 0.672 MB / 1.089 GB, free: 0.875 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001544/0.3785, allocations: 1.048 MB / 1.09 GB, free: 15.81 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.842e-05/0.3786, allocations: 4 kB / 1.09 GB, free: 15.81 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.564e-05/0.3786, allocations: 7.938 kB / 1.09 GB, free: 15.8 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 7.314e-05/0.3787, allocations: 11.86 kB / 1.09 GB, free: 15.79 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003667/0.3791, allocations: 39.83 kB / 1.09 GB, free: 15.75 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001274/0.3792, allocations: 43.92 kB / 1.09 GB, free: 15.71 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001181/0.3794, allocations: 7.984 kB / 1.09 GB, free: 15.7 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 9.51e-05/0.3795, allocations: 23.92 kB / 1.09 GB, free: 15.68 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 6.511e-05/0.3795, allocations: 15.92 kB / 1.09 GB, free: 15.66 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.77e-05/0.3796, allocations: 8 kB / 1.09 GB, free: 15.65 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 9.535e-05/0.3797, allocations: 23.97 kB / 1.09 GB, free: 15.63 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.561e-05/0.3797, allocations: 11.98 kB / 1.09 GB, free: 15.62 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.367e-05/0.3797, allocations: 19.88 kB / 1.09 GB, free: 15.6 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001796/0.3799, allocations: 51.78 kB / 1.09 GB, free: 15.55 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.097e-06/0.3799, allocations: 0 / 1.09 GB, free: 15.55 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.493e-06/0.38, allocations: 0 / 1.09 GB, free: 15.55 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.21e-06/0.38, allocations: 0 / 1.09 GB, free: 15.55 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.0006754/0.3806, allocations: 375.4 kB / 1.09 GB, free: 15.13 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.611e-05/0.3807, allocations: 8.031 kB / 1.09 GB, free: 15.12 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.102e-05/0.3807, allocations: 0.9375 kB / 1.09 GB, free: 15.12 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001331/0.3809, allocations: 172.2 kB / 1.09 GB, free: 14.91 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.905e-05/0.3809, allocations: 384 / 1.09 GB, free: 14.91 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.697e-05/0.3809, allocations: 8.375 kB / 1.09 GB, free: 14.91 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002069/0.3811, allocations: 58.22 kB / 1.09 GB, free: 14.84 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.588e-06/0.3812, allocations: 192 / 1.09 GB, free: 14.84 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.571e-05/0.3812, allocations: 11.94 kB / 1.09 GB, free: 14.83 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.079e-06/0.3812, allocations: 4 kB / 1.09 GB, free: 14.83 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001916/0.3814, allocations: 43.89 kB / 1.09 GB, free: 14.79 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005073/0.3819, allocations: 276.8 kB / 1.091 GB, free: 14.46 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001657/0.3821, allocations: 58.48 kB / 1.091 GB, free: 14.4 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.892e-05/0.3822, allocations: 32.97 kB / 1.091 GB, free: 14.36 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.377e-05/0.3822, allocations: 0 / 1.091 GB, free: 14.36 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002353/0.3825, allocations: 83.25 kB / 1.091 GB, free: 14.27 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=6): time 1.563e-06/0.3825, allocations: 0 / 1.091 GB, free: 14.27 MB / 0.8575 GB Notification: Performance of matching and sorting (n=6): time 0.0004453/0.3829, allocations: 121.5 kB / 1.091 GB, free: 14.14 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.098e-05/0.383, allocations: 51.41 kB / 1.091 GB, free: 14.08 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.335e-05/0.3831, allocations: 105.8 kB / 1.091 GB, free: 13.97 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.184e-05/0.3831, allocations: 29.7 kB / 1.091 GB, free: 13.93 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.473e-05/0.3832, allocations: 84.14 kB / 1.091 GB, free: 13.85 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.364e-05/0.3832, allocations: 11.81 kB / 1.091 GB, free: 13.84 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.929e-05/0.3833, allocations: 25.7 kB / 1.091 GB, free: 13.8 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001316/0.3834, allocations: 310.8 kB / 1.092 GB, free: 13.49 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.935e-05/0.3835, allocations: 32.47 kB / 1.092 GB, free: 13.46 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001103/0.3836, allocations: 55.34 kB / 1.092 GB, free: 13.39 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002152/0.3839, allocations: 83.27 kB / 1.092 GB, free: 13.3 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.099e-05/0.3839, allocations: 4 kB / 1.092 GB, free: 13.3 MB / 0.8575 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002588/0.3841, allocations: 105.5 kB / 1.092 GB, free: 13.19 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.631e-05/0.3842, allocations: 4 kB / 1.092 GB, free: 13.18 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.465e-06/0.3842, allocations: 4 kB / 1.092 GB, free: 13.18 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.471e-05/0.3842, allocations: 0 / 1.092 GB, free: 13.18 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00011/0.3843, allocations: 16.08 kB / 1.092 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.355e-06/0.3843, allocations: 4 kB / 1.092 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.306e-05/0.3844, allocations: 19.92 kB / 1.092 GB, free: 13.14 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.241e-05/0.3844, allocations: 4 kB / 1.092 GB, free: 13.14 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.0001115/0.3846, allocations: 123.8 kB / 1.092 GB, free: 13.01 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.392e-05/0.3846, allocations: 0 / 1.092 GB, free: 13.01 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002776/0.3849, allocations: 106 kB / 1.092 GB, free: 12.9 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.745e-06/0.3849, allocations: 0 / 1.092 GB, free: 12.9 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.717e-06/0.3849, allocations: 3.984 kB / 1.092 GB, free: 12.89 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.957e-06/0.3849, allocations: 0 / 1.092 GB, free: 12.89 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004479/0.3853, allocations: 362.4 kB / 1.093 GB, free: 12.48 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.053e-06/0.3854, allocations: 0 / 1.093 GB, free: 12.48 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.486e-05/0.3854, allocations: 4 kB / 1.093 GB, free: 12.48 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.564e-06/0.3854, allocations: 4 kB / 1.093 GB, free: 12.48 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.114e-05/0.3854, allocations: 11.92 kB / 1.093 GB, free: 12.46 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.3855, allocations: 0 / 1.093 GB, free: 12.46 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.3855, allocations: 0 / 1.093 GB, free: 12.46 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002824/0.3857, allocations: 191.4 kB / 1.093 GB, free: 12.26 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.6e-05/0.3858, allocations: 85.02 kB / 1.093 GB, free: 12.16 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.781e-05/0.3858, allocations: 3.984 kB / 1.093 GB, free: 12.16 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.672e-05/0.3859, allocations: 8.188 kB / 1.093 GB, free: 12.15 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.629e-05/0.386, allocations: 15.98 kB / 1.093 GB, free: 12.13 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.406e-05/0.386, allocations: 3.938 kB / 1.093 GB, free: 12.13 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.038e-05/0.3861, allocations: 83.28 kB / 1.093 GB, free: 12.05 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3861, allocations: 3.938 kB / 1.093 GB, free: 12.04 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002391/0.3863, allocations: 15.98 kB / 1.093 GB, free: 12.03 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.0001709/0.3865, allocations: 99.78 kB / 1.093 GB, free: 11.92 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002544/0.3867, allocations: 67.89 kB / 1.093 GB, free: 11.86 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.3868, allocations: 0 / 1.093 GB, free: 11.86 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001082/0.3869, allocations: 35.91 kB / 1.093 GB, free: 11.82 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002567/0.3871, allocations: 8 kB / 1.093 GB, free: 11.81 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003599/0.3875, allocations: 129.6 kB / 1.093 GB, free: 11.66 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002786/0.3878, allocations: 0.6848 MB / 1.094 GB, free: 10.95 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.274e-05/0.3878, allocations: 7.75 kB / 1.094 GB, free: 10.94 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.646e-05/0.3879, allocations: 15.42 kB / 1.094 GB, free: 10.92 MB / 0.8575 GB Notification: Performance of SimCode: time 3.2e-07/0.3879, allocations: 0 / 1.094 GB, free: 10.92 MB / 0.8575 GB Notification: Performance of Templates: time 0.003349/0.3912, allocations: 0.8062 MB / 1.095 GB, free: 10.12 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