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) 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 10.1.1-maint.10.0.x/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|sampler1.u|sampler1.y",fileNamePrefix="Buildings_10_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.001672/0.001672, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.002009/0.00201, allocations: 196 kB / 16.25 MB, free: 6.637 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.621/1.621, allocations: 222.9 MB / 239.9 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.981/2.981, allocations: 437 MB / 0.7101 GB, free: 5.293 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002875/0.002875, allocations: 67.88 kB / 0.8687 GB, free: 5.062 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9015/0.9044, allocations: 151.6 MB / 1.017 GB, free: 2.863 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.00222/0.9067, allocations: 0.7302 MB / 1.018 GB, free: 2.137 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001428/0.9082, allocations: 1.05 MB / 1.019 GB, free: 1.07 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.63e-05/0.9082, allocations: 0 / 1.019 GB, free: 1.07 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.72e-05/0.9083, allocations: 0 / 1.019 GB, free: 1.07 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 7.149e-05/0.9083, allocations: 7.922 kB / 1.019 GB, free: 1.062 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003089/0.9087, allocations: 35.92 kB / 1.019 GB, free: 1.027 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001017/0.9088, allocations: 47.83 kB / 1.019 GB, free: 0.9805 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001101/0.9089, allocations: 15.98 kB / 1.019 GB, free: 0.9648 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 7.74e-05/0.909, allocations: 15.92 kB / 1.019 GB, free: 0.9492 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 5.426e-05/0.909, allocations: 23.92 kB / 1.019 GB, free: 0.9258 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.706e-05/0.9091, allocations: 4 kB / 1.019 GB, free: 0.9219 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 7.74e-05/0.9091, allocations: 19.98 kB / 1.019 GB, free: 0.9023 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.32e-05/0.9092, allocations: 15.91 kB / 1.019 GB, free: 0.8867 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 4.49e-05/0.9092, allocations: 23.86 kB / 1.019 GB, free: 0.8633 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001424/0.9094, allocations: 55.84 kB / 1.019 GB, free: 0.8086 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 6.963e-06/0.9094, allocations: 4 kB / 1.019 GB, free: 0.8047 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.883e-06/0.9094, allocations: 0 / 1.019 GB, free: 0.8047 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 5.601e-06/0.9094, allocations: 0 / 1.019 GB, free: 0.8047 MB / 0.7637 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.0006994/0.9101, allocations: 365.4 kB / 1.019 GB, free: 408 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.832e-05/0.9101, allocations: 8.031 kB / 1.019 GB, free: 400 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.883e-05/0.9102, allocations: 4.938 kB / 1.019 GB, free: 396 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001419/0.9103, allocations: 168.4 kB / 1.019 GB, free: 188 kB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.603e-05/0.9104, allocations: 4.375 kB / 1.019 GB, free: 184 kB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.901e-05/0.9104, allocations: 8.312 kB / 1.019 GB, free: 176 kB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000219/0.9106, allocations: 58.23 kB / 1.019 GB, free: 112 kB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.034e-05/0.9106, allocations: 192 / 1.019 GB, free: 112 kB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.939e-05/0.9107, allocations: 11.92 kB / 1.019 GB, free: 100 kB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.71e-06/0.9107, allocations: 0 / 1.019 GB, free: 100 kB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002072/0.9109, allocations: 39.91 kB / 1.019 GB, free: 60 kB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005129/0.9114, allocations: 276.8 kB / 1.02 GB, free: 15.74 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001831/0.9116, allocations: 62.48 kB / 1.02 GB, free: 15.67 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001022/0.9117, allocations: 28.97 kB / 1.02 GB, free: 15.64 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.826e-05/0.9118, allocations: 3.984 kB / 1.02 GB, free: 15.63 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002579/0.912, allocations: 75.39 kB / 1.02 GB, free: 15.55 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=6): time 1.933e-06/0.912, allocations: 0 / 1.02 GB, free: 15.55 MB / 0.7794 GB Notification: Performance of matching and sorting (n=6): time 0.0004424/0.9125, allocations: 125.6 kB / 1.02 GB, free: 15.42 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.969e-05/0.9126, allocations: 51.41 kB / 1.02 GB, free: 15.36 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001047/0.9127, allocations: 113.8 kB / 1.02 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.831e-05/0.9127, allocations: 25.7 kB / 1.02 GB, free: 15.2 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.336e-05/0.9128, allocations: 84.08 kB / 1.02 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.689e-05/0.9128, allocations: 23.73 kB / 1.02 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.926e-05/0.9129, allocations: 21.72 kB / 1.02 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001547/0.913, allocations: 322.8 kB / 1.021 GB, free: 14.74 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000102/0.9131, allocations: 23.92 kB / 1.021 GB, free: 14.72 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001143/0.9132, allocations: 47.41 kB / 1.021 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002223/0.9135, allocations: 87.27 kB / 1.021 GB, free: 14.56 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-06/0.9135, allocations: 0 / 1.021 GB, free: 14.56 MB / 0.7794 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002728/0.9138, allocations: 101.6 kB / 1.021 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.912e-05/0.9138, allocations: 4 kB / 1.021 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.219e-06/0.9138, allocations: 4.094 kB / 1.021 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.534e-05/0.9138, allocations: 4 kB / 1.021 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001105/0.9139, allocations: 15.98 kB / 1.021 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.744e-05/0.914, allocations: 7.938 kB / 1.021 GB, free: 14.42 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.536e-05/0.914, allocations: 4 kB / 1.021 GB, free: 14.42 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.417e-06/0.9141, allocations: 0 / 1.021 GB, free: 14.42 MB / 0.7794 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.0001095/0.9142, allocations: 122.3 kB / 1.021 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.862e-05/0.9142, allocations: 7.906 kB / 1.021 GB, free: 14.28 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003125/0.9145, allocations: 106 kB / 1.021 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.355e-06/0.9145, allocations: 0 / 1.021 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.9145, allocations: 0 / 1.021 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.762e-06/0.9145, allocations: 4.031 kB / 1.021 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004996/0.915, allocations: 350.4 kB / 1.021 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.188e-06/0.9151, allocations: 4.625 kB / 1.021 GB, free: 13.76 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.858e-05/0.9151, allocations: 11.98 kB / 1.021 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.853e-06/0.9151, allocations: 0 / 1.021 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.289e-05/0.9152, allocations: 7.938 kB / 1.021 GB, free: 13.74 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.606e-06/0.9152, allocations: 4 kB / 1.021 GB, free: 13.74 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.81e-07/0.9152, allocations: 0 / 1.021 GB, free: 13.74 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003045/0.9155, allocations: 199.3 kB / 1.022 GB, free: 13.53 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.814e-05/0.9156, allocations: 85.05 kB / 1.022 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.634e-05/0.9156, allocations: 4 kB / 1.022 GB, free: 13.42 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001/0.9157, allocations: 11.98 kB / 1.022 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.297e-05/0.9157, allocations: 4 kB / 1.022 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.55e-05/0.9158, allocations: 3.938 kB / 1.022 GB, free: 13.4 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.58e-05/0.9158, allocations: 87.27 kB / 1.022 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.4e-07/0.9158, allocations: 3.938 kB / 1.022 GB, free: 13.31 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002489/0.9161, allocations: 12 kB / 1.022 GB, free: 13.3 MB / 0.7794 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.0001856/0.9163, allocations: 107.2 kB / 1.022 GB, free: 13.19 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002751/0.9165, allocations: 67.88 kB / 1.022 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.9166, allocations: 0 / 1.022 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001163/0.9167, allocations: 35.91 kB / 1.022 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002731/0.917, allocations: 11.98 kB / 1.022 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003667/0.9173, allocations: 142.3 kB / 1.022 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003367/0.9177, allocations: 0.6846 MB / 1.023 GB, free: 12.2 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.492e-05/0.9177, allocations: 4 kB / 1.023 GB, free: 12.19 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.831e-05/0.9178, allocations: 11.44 kB / 1.023 GB, free: 12.18 MB / 0.7794 GB Notification: Performance of SimCode: time 2.11e-07/0.9178, allocations: 0 / 1.023 GB, free: 12.18 MB / 0.7794 GB Notification: Performance of Templates: time 0.003805/0.9216, allocations: 0.7427 MB / 1.024 GB, free: 11.45 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.makefile (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) 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) Reference file matches