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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.000971/0.000971, allocations: 91.92 kB / 15.06 MB, free: 1.098 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.001053/0.001053, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.467/1.467, allocations: 223.3 MB / 240 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.551/2.551, allocations: 390.9 MB / 0.666 GB, free: 2.441 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003625/0.0003627, allocations: 12 kB / 0.8154 GB, free: 13.57 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8639/0.8643, allocations: 142.4 MB / 0.9544 GB, free: 7.926 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.0009741/0.8653, allocations: 384.9 kB / 0.9548 GB, free: 7.637 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001554/0.8669, allocations: 1.032 MB / 0.9558 GB, free: 6.805 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.292e-05/0.867, allocations: 5.312 kB / 0.9558 GB, free: 6.801 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.257e-05/0.867, allocations: 0 / 0.9558 GB, free: 6.801 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.089e-05/0.8671, allocations: 11.91 kB / 0.9558 GB, free: 6.789 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002835/0.8674, allocations: 25.92 kB / 0.9559 GB, free: 6.773 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.469e-05/0.8675, allocations: 46.89 kB / 0.9559 GB, free: 6.742 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000109/0.8676, allocations: 8.312 kB / 0.9559 GB, free: 6.738 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.976e-05/0.8677, allocations: 19.67 kB / 0.9559 GB, free: 6.727 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.295e-05/0.8677, allocations: 17.05 kB / 0.9559 GB, free: 6.715 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.586e-05/0.8678, allocations: 6.094 kB / 0.956 GB, free: 6.711 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.826e-05/0.8678, allocations: 16.11 kB / 0.956 GB, free: 6.703 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.726e-05/0.8679, allocations: 14.91 kB / 0.956 GB, free: 6.691 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.286e-05/0.8679, allocations: 32.05 kB / 0.956 GB, free: 6.656 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001038/0.868, allocations: 33.44 kB / 0.956 GB, free: 6.633 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.281e-06/0.868, allocations: 0 / 0.956 GB, free: 6.633 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.233e-06/0.868, allocations: 0 / 0.956 GB, free: 6.633 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.578e-06/0.868, allocations: 1 kB / 0.956 GB, free: 6.633 MB / 0.7169 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.0005162/0.8686, allocations: 365.9 kB / 0.9564 GB, free: 6.258 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.72e-05/0.8686, allocations: 12.36 kB / 0.9564 GB, free: 6.254 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.72e-05/0.8687, allocations: 10.27 kB / 0.9564 GB, free: 6.246 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.08e-05/0.8688, allocations: 169 kB / 0.9566 GB, free: 6.043 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.828e-05/0.8688, allocations: 1.844 kB / 0.9566 GB, free: 6.043 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.874e-05/0.8688, allocations: 6.406 kB / 0.9566 GB, free: 6.039 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002019/0.869, allocations: 67.81 kB / 0.9566 GB, free: 5.988 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.066e-05/0.8691, allocations: 1.094 kB / 0.9566 GB, free: 5.988 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.327e-05/0.8691, allocations: 4 kB / 0.9567 GB, free: 5.984 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.101e-06/0.8691, allocations: 1.344 kB / 0.9567 GB, free: 5.984 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001878/0.8693, allocations: 60.03 kB / 0.9567 GB, free: 5.957 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004226/0.8697, allocations: 270.4 kB / 0.957 GB, free: 5.66 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001481/0.8699, allocations: 62.36 kB / 0.957 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.523e-05/0.87, allocations: 40.55 kB / 0.9571 GB, free: 5.594 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.598e-05/0.87, allocations: 0 / 0.9571 GB, free: 5.594 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000188/0.8702, allocations: 86.12 kB / 0.9571 GB, free: 5.52 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=6): time 1.253e-06/0.8702, allocations: 0 / 0.9571 GB, free: 5.52 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6): time 0.0003762/0.8706, allocations: 136.2 kB / 0.9573 GB, free: 5.445 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.787e-05/0.8706, allocations: 56.72 kB / 0.9573 GB, free: 5.379 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.404e-05/0.8707, allocations: 105.9 kB / 0.9574 GB, free: 5.273 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 9.217e-06/0.8707, allocations: 29.7 kB / 0.9575 GB, free: 5.238 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.677e-05/0.8707, allocations: 82.48 kB / 0.9575 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.835e-05/0.8708, allocations: 17.94 kB / 0.9576 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.929e-06/0.8708, allocations: 0 / 0.9576 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.292e-05/0.8708, allocations: 320.2 kB / 0.9579 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.674e-05/0.8709, allocations: 33.8 kB / 0.9579 GB, free: 4.805 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.182e-05/0.871, allocations: 60.84 kB / 0.958 GB, free: 4.754 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.241e-05/0.8711, allocations: 35.89 kB / 0.958 GB, free: 4.738 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.8711, allocations: 0 / 0.958 GB, free: 4.738 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002256/0.8713, allocations: 117.5 kB / 0.9581 GB, free: 4.668 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.649e-05/0.8714, allocations: 5.219 kB / 0.9581 GB, free: 4.668 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.661e-06/0.8714, allocations: 1.344 kB / 0.9581 GB, free: 4.668 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.479e-05/0.8714, allocations: 5.172 kB / 0.9581 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000108/0.8715, allocations: 20.64 kB / 0.9581 GB, free: 4.656 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.853e-06/0.8715, allocations: 1.031 kB / 0.9581 GB, free: 4.656 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.224e-05/0.8716, allocations: 11.38 kB / 0.9581 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.206e-05/0.8716, allocations: 7.516 kB / 0.9581 GB, free: 4.648 MB / 0.7169 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 ($PRE.sampler1.firstTrigger,sampler1.firstTrigger,$whenCondition1,sampler1.sampleTrigger,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.749e-05/0.8717, allocations: 120.8 kB / 0.9583 GB, free: 4.527 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.067e-05/0.8717, allocations: 2.281 kB / 0.9583 GB, free: 4.527 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002642/0.872, allocations: 118.7 kB / 0.9584 GB, free: 4.453 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.346e-06/0.872, allocations: 3.953 kB / 0.9584 GB, free: 4.449 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.872, allocations: 5.844 kB / 0.9584 GB, free: 4.445 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/0.872, allocations: 3.984 kB / 0.9584 GB, free: 4.441 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003523/0.8724, allocations: 356.9 kB / 0.9587 GB, free: 4.094 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.542e-06/0.8724, allocations: 0 / 0.9587 GB, free: 4.094 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.463e-05/0.8724, allocations: 20.95 kB / 0.9588 GB, free: 4.082 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.905e-06/0.8724, allocations: 5.422 kB / 0.9588 GB, free: 4.078 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.338e-06/0.8725, allocations: 4 kB / 0.9588 GB, free: 4.074 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.8725, allocations: 1.438 kB / 0.9588 GB, free: 4.074 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.8725, allocations: 0 / 0.9588 GB, free: 4.074 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002543/0.8727, allocations: 203.1 kB / 0.959 GB, free: 3.91 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.953e-05/0.8728, allocations: 82.55 kB / 0.959 GB, free: 3.812 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.681e-05/0.8728, allocations: 3.953 kB / 0.959 GB, free: 3.809 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.149e-05/0.8729, allocations: 11.61 kB / 0.9591 GB, free: 3.805 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.548e-05/0.8729, allocations: 6.859 kB / 0.9591 GB, free: 3.801 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.536e-05/0.873, allocations: 3.156 kB / 0.9591 GB, free: 3.801 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.818e-05/0.873, allocations: 87.56 kB / 0.9591 GB, free: 3.719 MB / 0.7169 GB Notification: Performance of sort global known variables: time 9e-08/0.873, allocations: 0 / 0.9591 GB, free: 3.719 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002446/0.8732, allocations: 17.2 kB / 0.9592 GB, free: 3.711 MB / 0.7169 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001419/0.8734, allocations: 109.2 kB / 0.9593 GB, free: 3.609 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002558/0.8736, allocations: 70.98 kB / 0.9593 GB, free: 3.586 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.8737, allocations: 3.938 kB / 0.9593 GB, free: 3.582 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001081/0.8738, allocations: 39.16 kB / 0.9594 GB, free: 3.566 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002745/0.8741, allocations: 15.42 kB / 0.9594 GB, free: 3.559 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003067/0.8744, allocations: 138.6 kB / 0.9595 GB, free: 3.426 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001385/0.8745, allocations: 0.6812 MB / 0.9602 GB, free: 2.727 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.404e-05/0.8746, allocations: 4.312 kB / 0.9602 GB, free: 2.723 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.062e-05/0.8746, allocations: 10.19 kB / 0.9602 GB, free: 2.715 MB / 0.7169 GB Notification: Performance of SimCode: time 4.71e-07/0.8746, allocations: 0 / 0.9602 GB, free: 2.715 MB / 0.7169 GB Notification: Performance of Templates: time 0.00307/0.8777, allocations: 0.6883 MB / 0.9609 GB, free: 2.355 MB / 0.7169 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