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.001674/0.001674, allocations: 116.3 kB / 16.42 MB, free: 6.02 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.001619/0.00162, allocations: 184.3 kB / 17.35 MB, free: 5.633 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.558/1.558, allocations: 222.9 MB / 241 MB, free: 15.15 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.602/2.602, allocations: 437 MB / 0.7112 GB, free: 4.379 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001573/0.001573, allocations: 59.91 kB / 1.019 GB, free: 9.418 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.077/1.078, allocations: 151.6 MB / 1.167 GB, free: 3.848 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.002777/1.081, allocations: 0.6706 MB / 1.168 GB, free: 3.18 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001955/1.083, allocations: 1.053 MB / 1.169 GB, free: 2.113 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.249e-05/1.083, allocations: 0 / 1.169 GB, free: 2.113 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 3.844e-05/1.083, allocations: 3.938 kB / 1.169 GB, free: 2.109 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 8.318e-05/1.083, allocations: 3.938 kB / 1.169 GB, free: 2.105 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003843/1.084, allocations: 47.83 kB / 1.169 GB, free: 2.059 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0001213/1.084, allocations: 47.84 kB / 1.169 GB, free: 2.012 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001224/1.084, allocations: 8 kB / 1.169 GB, free: 2.004 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 8.814e-05/1.084, allocations: 19.98 kB / 1.169 GB, free: 1.984 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 6.502e-05/1.084, allocations: 23.86 kB / 1.169 GB, free: 1.961 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 2.03e-05/1.084, allocations: 4 kB / 1.169 GB, free: 1.957 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 8.983e-05/1.084, allocations: 31.91 kB / 1.169 GB, free: 1.926 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 2.272e-05/1.084, allocations: 7.984 kB / 1.169 GB, free: 1.918 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 4.984e-05/1.084, allocations: 19.92 kB / 1.169 GB, free: 1.898 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.000169/1.084, allocations: 55.78 kB / 1.169 GB, free: 1.844 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 6.893e-06/1.084, allocations: 0 / 1.169 GB, free: 1.844 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.814e-06/1.084, allocations: 0 / 1.169 GB, free: 1.844 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 6.432e-06/1.084, allocations: 0 / 1.169 GB, free: 1.844 MB / 0.8887 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.0007481/1.085, allocations: 367.2 kB / 1.17 GB, free: 1.438 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 5.648e-05/1.085, allocations: 12.62 kB / 1.17 GB, free: 1.426 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.174e-05/1.085, allocations: 4.844 kB / 1.17 GB, free: 1.422 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001962/1.085, allocations: 168.4 kB / 1.17 GB, free: 1.219 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.347e-05/1.086, allocations: 384 / 1.17 GB, free: 1.219 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.008e-05/1.086, allocations: 8.359 kB / 1.17 GB, free: 1.211 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002351/1.086, allocations: 62.17 kB / 1.17 GB, free: 1.145 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.238e-06/1.086, allocations: 4.188 kB / 1.17 GB, free: 1.141 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.529e-05/1.086, allocations: 3.938 kB / 1.17 GB, free: 1.137 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.889e-06/1.086, allocations: 8 kB / 1.17 GB, free: 1.129 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001856/1.086, allocations: 39.95 kB / 1.17 GB, free: 1.09 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005251/1.087, allocations: 278.7 kB / 1.17 GB, free: 0.7695 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001702/1.087, allocations: 62.42 kB / 1.17 GB, free: 0.6992 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001191/1.087, allocations: 28.97 kB / 1.17 GB, free: 0.668 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 2.675e-05/1.087, allocations: 3.984 kB / 1.17 GB, free: 0.6641 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002248/1.087, allocations: 67.39 kB / 1.17 GB, free: 0.5859 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=6): time 2.304e-06/1.087, allocations: 0 / 1.17 GB, free: 0.5859 MB / 0.8887 GB Notification: Performance of matching and sorting (n=6): time 0.0004324/1.088, allocations: 133.5 kB / 1.17 GB, free: 460 kB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.055e-05/1.088, allocations: 51.41 kB / 1.17 GB, free: 396 kB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.281e-05/1.088, allocations: 109.8 kB / 1.171 GB, free: 276 kB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 1.841e-05/1.088, allocations: 29.64 kB / 1.171 GB, free: 240 kB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 9.867e-05/1.088, allocations: 84.14 kB / 1.171 GB, free: 152 kB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 2.129e-05/1.088, allocations: 19.73 kB / 1.171 GB, free: 132 kB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.173e-05/1.088, allocations: 21.72 kB / 1.171 GB, free: 104 kB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001634/1.088, allocations: 322.8 kB / 1.171 GB, free: 15.78 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001016/1.088, allocations: 19.98 kB / 1.171 GB, free: 15.76 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001221/1.088, allocations: 51.41 kB / 1.171 GB, free: 15.7 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002018/1.089, allocations: 83.33 kB / 1.171 GB, free: 15.6 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.11e-06/1.089, allocations: 3.938 kB / 1.171 GB, free: 15.6 MB / 0.9044 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002805/1.089, allocations: 101.5 kB / 1.171 GB, free: 15.49 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.945e-05/1.089, allocations: 10.33 kB / 1.171 GB, free: 15.48 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/1.089, allocations: 4.094 kB / 1.171 GB, free: 15.48 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.911e-05/1.089, allocations: 4 kB / 1.171 GB, free: 15.48 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001059/1.089, allocations: 15.92 kB / 1.171 GB, free: 15.46 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.631e-06/1.089, allocations: 0 / 1.171 GB, free: 15.46 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.419e-05/1.089, allocations: 8 kB / 1.171 GB, free: 15.45 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.006e-06/1.089, allocations: 0 / 1.171 GB, free: 15.45 MB / 0.9044 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.000103/1.089, allocations: 123 kB / 1.171 GB, free: 15.32 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.537e-05/1.089, allocations: 4 kB / 1.171 GB, free: 15.32 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003032/1.09, allocations: 110.5 kB / 1.172 GB, free: 15.21 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.771e-06/1.09, allocations: 0 / 1.172 GB, free: 15.21 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/1.09, allocations: 0 / 1.172 GB, free: 15.21 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 4.732e-05/1.09, allocations: 81.02 kB / 1.172 GB, free: 15.11 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.238e-05/1.09, allocations: 4 kB / 1.172 GB, free: 15.11 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.276e-05/1.09, allocations: 15.98 kB / 1.172 GB, free: 15.09 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.023e-05/1.09, allocations: 7.922 kB / 1.172 GB, free: 15.08 MB / 0.9044 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.000329/1.09, allocations: 181 kB / 1.172 GB, free: 14.9 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0003613/1.091, allocations: 270.7 kB / 1.172 GB, free: 14.62 MB / 0.9044 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001094/1.091, allocations: 27.98 kB / 1.172 GB, free: 14.59 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 5.416e-05/1.091, allocations: 87.27 kB / 1.172 GB, free: 14.5 MB / 0.9044 GB Notification: Performance of Backend: time 4.31e-07/1.091, allocations: 0 / 1.172 GB, free: 14.5 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0005259/1.091, allocations: 118.4 kB / 1.172 GB, free: 14.38 MB / 0.9044 GB Notification: Performance of SimCode: time 0.0006364/1.092, allocations: 0.5847 MB / 1.173 GB, free: 13.75 MB / 0.9044 GB Notification: Performance of Templates: time 0.003983/1.096, allocations: 0.8996 MB / 1.174 GB, free: 12.86 MB / 0.9044 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/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