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.006964/0.006964, allocations: 103.7 kB / 15.74 MB, free: 6.066 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.001236/0.001236, allocations: 192.7 kB / 16.67 MB, free: 5.973 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.642/1.642, allocations: 222.9 MB / 240.4 MB, free: 4.148 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 3.231/3.231, allocations: 437 MB / 0.7105 GB, free: 4.961 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001262/0.001262, allocations: 63.91 kB / 1.019 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4357/0.437, allocations: 151.6 MB / 1.167 GB, free: 6.852 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.002204/0.4393, allocations: 0.6689 MB / 1.167 GB, free: 6.18 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001485/0.4408, allocations: 1.058 MB / 1.168 GB, free: 5.105 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.733e-05/0.4408, allocations: 0 / 1.168 GB, free: 5.105 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 3.696e-05/0.4409, allocations: 3.938 kB / 1.168 GB, free: 5.102 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 7.149e-05/0.4409, allocations: 7.938 kB / 1.168 GB, free: 5.094 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003393/0.4413, allocations: 47.81 kB / 1.168 GB, free: 5.047 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.000104/0.4414, allocations: 35.92 kB / 1.168 GB, free: 5.012 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001159/0.4415, allocations: 15.98 kB / 1.168 GB, free: 4.996 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 8.062e-05/0.4416, allocations: 15.94 kB / 1.168 GB, free: 4.98 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 6.849e-05/0.4417, allocations: 31.89 kB / 1.168 GB, free: 4.949 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.867e-05/0.4417, allocations: 4 kB / 1.168 GB, free: 4.945 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001101/0.4418, allocations: 19.98 kB / 1.168 GB, free: 4.926 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 2.384e-05/0.4419, allocations: 7.938 kB / 1.168 GB, free: 4.918 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 4.002e-05/0.4419, allocations: 15.92 kB / 1.168 GB, free: 4.902 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001643/0.4421, allocations: 63.72 kB / 1.169 GB, free: 4.84 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.4421, allocations: 3.938 kB / 1.169 GB, free: 4.836 MB / 0.92 GB Notification: Performance of FrontEnd: time 2.435e-06/0.4421, allocations: 0 / 1.169 GB, free: 4.836 MB / 0.92 GB Notification: Performance of Transformations before backend: time 6.272e-06/0.4421, allocations: 0 / 1.169 GB, free: 4.836 MB / 0.92 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.0007664/0.4429, allocations: 375.2 kB / 1.169 GB, free: 4.418 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.385e-05/0.4429, allocations: 12.03 kB / 1.169 GB, free: 4.406 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.737e-05/0.443, allocations: 0.9375 kB / 1.169 GB, free: 4.406 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001961/0.4432, allocations: 172.3 kB / 1.169 GB, free: 4.199 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.498e-06/0.4432, allocations: 384 / 1.169 GB, free: 4.199 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.822e-05/0.4432, allocations: 4.375 kB / 1.169 GB, free: 4.195 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002098/0.4434, allocations: 66.22 kB / 1.169 GB, free: 4.125 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.368e-06/0.4435, allocations: 8.062 kB / 1.169 GB, free: 4.117 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.348e-05/0.4435, allocations: 3.938 kB / 1.169 GB, free: 4.113 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.352e-06/0.4435, allocations: 4 kB / 1.169 GB, free: 4.109 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001782/0.4437, allocations: 39.95 kB / 1.169 GB, free: 4.07 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004864/0.4442, allocations: 272.9 kB / 1.169 GB, free: 3.754 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000165/0.4443, allocations: 62.47 kB / 1.17 GB, free: 3.684 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001001/0.4444, allocations: 32.95 kB / 1.17 GB, free: 3.648 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 2.212e-05/0.4445, allocations: 3.938 kB / 1.17 GB, free: 3.645 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002263/0.4447, allocations: 71.38 kB / 1.17 GB, free: 3.562 MB / 0.92 GB Notification: Performance of pre-optimization done (n=6): time 1.473e-06/0.4447, allocations: 0 / 1.17 GB, free: 3.562 MB / 0.92 GB Notification: Performance of matching and sorting (n=6): time 0.0004356/0.4452, allocations: 129.6 kB / 1.17 GB, free: 3.43 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.495e-05/0.4452, allocations: 51.41 kB / 1.17 GB, free: 3.367 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.9e-05/0.4453, allocations: 105.8 kB / 1.17 GB, free: 3.254 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.777e-05/0.4454, allocations: 25.7 kB / 1.17 GB, free: 3.223 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 5.269e-05/0.4454, allocations: 88.08 kB / 1.17 GB, free: 3.133 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 1.887e-05/0.4454, allocations: 15.84 kB / 1.17 GB, free: 3.117 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.05e-05/0.4455, allocations: 33.7 kB / 1.17 GB, free: 3.078 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001994/0.4457, allocations: 310.8 kB / 1.17 GB, free: 2.766 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.581e-05/0.4458, allocations: 23.97 kB / 1.17 GB, free: 2.742 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001093/0.4459, allocations: 47.42 kB / 1.17 GB, free: 2.684 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001993/0.4461, allocations: 87.27 kB / 1.17 GB, free: 2.586 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.4461, allocations: 0 / 1.17 GB, free: 2.586 MB / 0.92 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002825/0.4464, allocations: 105.5 kB / 1.171 GB, free: 2.477 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.728e-05/0.4464, allocations: 4.094 kB / 1.171 GB, free: 2.473 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.516e-06/0.4465, allocations: 4 kB / 1.171 GB, free: 2.469 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.033e-05/0.4465, allocations: 7.938 kB / 1.171 GB, free: 2.461 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001076/0.4466, allocations: 11.98 kB / 1.171 GB, free: 2.449 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.105e-06/0.4466, allocations: 7.938 kB / 1.171 GB, free: 2.441 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.508e-05/0.4467, allocations: 11.98 kB / 1.171 GB, free: 2.43 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.205e-05/0.4467, allocations: 4.5 kB / 1.171 GB, free: 2.426 MB / 0.92 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.976e-05/0.4468, allocations: 113.8 kB / 1.171 GB, free: 2.305 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.374e-05/0.4468, allocations: 7.953 kB / 1.171 GB, free: 2.297 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002798/0.4471, allocations: 106.1 kB / 1.171 GB, free: 2.188 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.953e-05/0.4471, allocations: 4 kB / 1.171 GB, free: 2.184 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.631e-06/0.4472, allocations: 3.938 kB / 1.171 GB, free: 2.18 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.597e-06/0.4472, allocations: 0 / 1.171 GB, free: 2.18 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004877/0.4477, allocations: 354.6 kB / 1.171 GB, free: 1.777 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.497e-06/0.4477, allocations: 4 kB / 1.171 GB, free: 1.773 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.746e-05/0.4477, allocations: 11.98 kB / 1.171 GB, free: 1.762 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.913e-06/0.4477, allocations: 0 / 1.171 GB, free: 1.762 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.361e-05/0.4478, allocations: 4 kB / 1.171 GB, free: 1.758 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.512e-06/0.4478, allocations: 0 / 1.171 GB, free: 1.758 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.4478, allocations: 7.875 kB / 1.171 GB, free: 1.75 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003132/0.4481, allocations: 191.4 kB / 1.171 GB, free: 1.547 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 4.818e-05/0.4482, allocations: 89 kB / 1.172 GB, free: 1.441 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.763e-05/0.4482, allocations: 4 kB / 1.172 GB, free: 1.438 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.763e-05/0.4483, allocations: 7.984 kB / 1.172 GB, free: 1.43 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.818e-05/0.4483, allocations: 7.984 kB / 1.172 GB, free: 1.422 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.593e-05/0.4484, allocations: 3.938 kB / 1.172 GB, free: 1.418 MB / 0.92 GB Notification: Performance of sorting global known variables: time 4.8e-05/0.4484, allocations: 83.28 kB / 1.172 GB, free: 1.336 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.11e-07/0.4484, allocations: 0 / 1.172 GB, free: 1.336 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002538/0.4487, allocations: 12 kB / 1.172 GB, free: 1.324 MB / 0.92 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.0001678/0.4489, allocations: 111.2 kB / 1.172 GB, free: 1.207 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0003067/0.4492, allocations: 59.89 kB / 1.172 GB, free: 1.148 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.4492, allocations: 0 / 1.172 GB, free: 1.148 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0001196/0.4493, allocations: 39.91 kB / 1.172 GB, free: 1.109 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002817/0.4496, allocations: 4.578 kB / 1.172 GB, free: 1.105 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003569/0.45, allocations: 134.1 kB / 1.172 GB, free: 0.9453 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003522/0.4503, allocations: 0.6846 MB / 1.173 GB, free: 240 kB / 0.92 GB Notification: Performance of simCode: alias equations: time 4.134e-05/0.4504, allocations: 11.98 kB / 1.173 GB, free: 228 kB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.719e-05/0.4504, allocations: 15.38 kB / 1.173 GB, free: 212 kB / 0.92 GB Notification: Performance of SimCode: time 2.2e-07/0.4504, allocations: 0 / 1.173 GB, free: 212 kB / 0.92 GB Notification: Performance of Templates: time 0.003683/0.4541, allocations: 0.7876 MB / 1.173 GB, free: 15.43 MB / 0.9356 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=480 -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