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.001511/0.001511, allocations: 104.2 kB / 16.27 MB, free: 5.98 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.0015/0.0015, allocations: 189.8 kB / 17.2 MB, free: 5.602 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.414/1.414, allocations: 222.9 MB / 240.9 MB, free: 15.18 MB / 206.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.611/2.611, allocations: 437.1 MB / 0.7111 GB, free: 4.457 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001948/0.001948, allocations: 69.02 kB / 0.8699 GB, free: 2.18 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2988/0.3008, allocations: 151.6 MB / 1.018 GB, free: 10.62 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.00203/0.3028, allocations: 0.6639 MB / 1.019 GB, free: 9.957 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001391/0.3042, allocations: 1.052 MB / 1.02 GB, free: 8.891 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.142e-05/0.3043, allocations: 0 / 1.02 GB, free: 8.891 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 2.531e-05/0.3043, allocations: 3.938 kB / 1.02 GB, free: 8.887 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 5.762e-05/0.3044, allocations: 7.875 kB / 1.02 GB, free: 8.879 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002695/0.3047, allocations: 35.89 kB / 1.02 GB, free: 8.844 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 8.208e-05/0.3048, allocations: 55.84 kB / 1.02 GB, free: 8.789 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 9.425e-05/0.3049, allocations: 12 kB / 1.02 GB, free: 8.777 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 6.634e-05/0.305, allocations: 27.84 kB / 1.02 GB, free: 8.75 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 5.436e-05/0.305, allocations: 19.92 kB / 1.02 GB, free: 8.73 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 1.527e-05/0.3051, allocations: 4 kB / 1.02 GB, free: 8.727 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 6.544e-05/0.3051, allocations: 19.98 kB / 1.02 GB, free: 8.707 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 1.821e-05/0.3052, allocations: 7.984 kB / 1.02 GB, free: 8.699 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 3.509e-05/0.3052, allocations: 19.88 kB / 1.02 GB, free: 8.68 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0001237/0.3053, allocations: 55.84 kB / 1.02 GB, free: 8.625 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.3053, allocations: 4 kB / 1.02 GB, free: 8.621 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.182e-06/0.3053, allocations: 0 / 1.02 GB, free: 8.621 MB / 0.795 GB Notification: Performance of Transformations before backend: time 4.298e-06/0.3054, allocations: 0 / 1.02 GB, free: 8.621 MB / 0.795 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.0006518/0.306, allocations: 371.6 kB / 1.02 GB, free: 8.207 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.459e-05/0.306, allocations: 8.922 kB / 1.02 GB, free: 8.199 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.698e-05/0.3061, allocations: 4.938 kB / 1.02 GB, free: 8.195 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001494/0.3062, allocations: 168.2 kB / 1.02 GB, free: 7.992 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.226e-05/0.3063, allocations: 8.375 kB / 1.02 GB, free: 7.984 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.785e-05/0.3063, allocations: 4.375 kB / 1.02 GB, free: 7.98 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002043/0.3065, allocations: 66.2 kB / 1.021 GB, free: 7.91 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.246e-06/0.3065, allocations: 192 / 1.021 GB, free: 7.91 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.397e-05/0.3065, allocations: 7.938 kB / 1.021 GB, free: 7.902 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.068e-06/0.3065, allocations: 0 / 1.021 GB, free: 7.902 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002173/0.3068, allocations: 39.95 kB / 1.021 GB, free: 7.863 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004613/0.3072, allocations: 276.8 kB / 1.021 GB, free: 7.543 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00017/0.3074, allocations: 62.42 kB / 1.021 GB, free: 7.473 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001079/0.3075, allocations: 32.97 kB / 1.021 GB, free: 7.438 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 2.079e-05/0.3076, allocations: 0 / 1.021 GB, free: 7.438 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002029/0.3078, allocations: 75.38 kB / 1.021 GB, free: 7.352 MB / 0.795 GB Notification: Performance of pre-optimization done (n=6): time 3.556e-06/0.3078, allocations: 0 / 1.021 GB, free: 7.352 MB / 0.795 GB Notification: Performance of matching and sorting (n=6): time 0.0004296/0.3082, allocations: 129.4 kB / 1.021 GB, free: 7.219 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.975e-05/0.3083, allocations: 51.41 kB / 1.021 GB, free: 7.156 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.973e-05/0.3084, allocations: 105.8 kB / 1.021 GB, free: 7.043 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 2.119e-05/0.3084, allocations: 33.7 kB / 1.021 GB, free: 7.004 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 5.787e-05/0.3085, allocations: 80.14 kB / 1.021 GB, free: 6.922 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 2.151e-05/0.3085, allocations: 15.81 kB / 1.021 GB, free: 6.906 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.561e-05/0.3085, allocations: 21.78 kB / 1.021 GB, free: 6.879 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001422/0.3087, allocations: 314.8 kB / 1.022 GB, free: 6.562 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001077/0.3088, allocations: 27.95 kB / 1.022 GB, free: 6.535 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001298/0.3089, allocations: 55.41 kB / 1.022 GB, free: 6.469 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002173/0.3092, allocations: 83.27 kB / 1.022 GB, free: 6.375 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.107e-06/0.3092, allocations: 3.984 kB / 1.022 GB, free: 6.371 MB / 0.795 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002729/0.3095, allocations: 101.5 kB / 1.022 GB, free: 6.266 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.313e-05/0.3095, allocations: 8 kB / 1.022 GB, free: 6.258 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.629e-06/0.3095, allocations: 0 / 1.022 GB, free: 6.258 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.273e-05/0.3095, allocations: 3.938 kB / 1.022 GB, free: 6.254 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001045/0.3096, allocations: 16.48 kB / 1.022 GB, free: 6.238 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.235e-06/0.3096, allocations: 4.141 kB / 1.022 GB, free: 6.234 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.431e-05/0.3097, allocations: 19.98 kB / 1.022 GB, free: 6.215 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.052e-05/0.3097, allocations: 8 kB / 1.022 GB, free: 6.207 MB / 0.795 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.71e-05/0.3098, allocations: 122.4 kB / 1.022 GB, free: 6.078 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.505e-05/0.3099, allocations: 7.984 kB / 1.022 GB, free: 6.07 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003045/0.3102, allocations: 102 kB / 1.022 GB, free: 5.961 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.629e-06/0.3102, allocations: 4 kB / 1.022 GB, free: 5.957 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.3102, allocations: 0 / 1.022 GB, free: 5.957 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.347e-06/0.3102, allocations: 0 / 1.022 GB, free: 5.957 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004994/0.3107, allocations: 354.4 kB / 1.023 GB, free: 5.555 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.3107, allocations: 0 / 1.023 GB, free: 5.555 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.231e-05/0.3108, allocations: 8 kB / 1.023 GB, free: 5.547 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.484e-06/0.3108, allocations: 0 / 1.023 GB, free: 5.547 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.462e-05/0.3109, allocations: 3.984 kB / 1.023 GB, free: 5.543 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.904e-06/0.3109, allocations: 0 / 1.023 GB, free: 5.543 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.3109, allocations: 4 kB / 1.023 GB, free: 5.539 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004306/0.3113, allocations: 195.4 kB / 1.023 GB, free: 5.332 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 7.139e-05/0.3114, allocations: 81.09 kB / 1.023 GB, free: 5.234 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.634e-05/0.3115, allocations: 4 kB / 1.023 GB, free: 5.23 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001567/0.3116, allocations: 11.92 kB / 1.023 GB, free: 5.219 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.762e-05/0.3117, allocations: 4 kB / 1.023 GB, free: 5.215 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.542e-05/0.3117, allocations: 11.94 kB / 1.023 GB, free: 5.203 MB / 0.795 GB Notification: Performance of sorting global known variables: time 6.459e-05/0.3118, allocations: 87.39 kB / 1.023 GB, free: 5.117 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.91e-07/0.3118, allocations: 0 / 1.023 GB, free: 5.117 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0004422/0.3122, allocations: 19.91 kB / 1.023 GB, free: 5.098 MB / 0.795 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.0001881/0.3124, allocations: 95.25 kB / 1.023 GB, free: 4.996 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0004067/0.3129, allocations: 72.06 kB / 1.023 GB, free: 4.926 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.3129, allocations: 4.188 kB / 1.023 GB, free: 4.922 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0001772/0.3131, allocations: 31.98 kB / 1.023 GB, free: 4.891 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004311/0.3135, allocations: 14.48 kB / 1.023 GB, free: 4.879 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004942/0.314, allocations: 155.9 kB / 1.023 GB, free: 4.691 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004377/0.3145, allocations: 0.6846 MB / 1.024 GB, free: 3.98 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.229e-05/0.3145, allocations: 23.3 kB / 1.024 GB, free: 3.961 MB / 0.795 GB Notification: Performance of SimCode: time 4.61e-07/0.3145, allocations: 0 / 1.024 GB, free: 3.961 MB / 0.795 GB Notification: Performance of Templates: time 0.003472/0.318, allocations: 0.8479 MB / 1.025 GB, free: 3.113 MB / 0.795 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/jenkins1/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