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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.001798/0.001798, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.002074/0.002074, allocations: 195.9 kB / 16.25 MB, free: 6.629 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.489/1.489, allocations: 222.9 MB / 239.9 MB, free: 4.547 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.526/2.526, allocations: 390.2 MB / 0.6643 GB, free: 0.5156 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001563/0.001563, allocations: 60.05 kB / 0.812 GB, free: 14.71 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7956/0.7972, allocations: 140.4 MB / 0.9491 GB, free: 9.176 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.002131/0.7994, allocations: 0.7246 MB / 0.9498 GB, free: 8.621 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001638/0.8011, allocations: 1.047 MB / 0.9508 GB, free: 7.777 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.97e-05/0.8012, allocations: 5.188 kB / 0.9508 GB, free: 7.773 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 4.037e-05/0.8012, allocations: 3.938 kB / 0.9508 GB, free: 7.77 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.959e-05/0.8013, allocations: 5.953 kB / 0.9509 GB, free: 7.766 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000415/0.8018, allocations: 32.59 kB / 0.9509 GB, free: 7.742 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001212/0.8019, allocations: 47.36 kB / 0.9509 GB, free: 7.715 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001394/0.802, allocations: 17.34 kB / 0.9509 GB, free: 7.703 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.924e-05/0.8021, allocations: 9.844 kB / 0.951 GB, free: 7.699 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.077e-05/0.8022, allocations: 22.62 kB / 0.951 GB, free: 7.684 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.309e-05/0.8023, allocations: 12.12 kB / 0.951 GB, free: 7.676 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.684e-05/0.8024, allocations: 22.39 kB / 0.951 GB, free: 7.664 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.47e-05/0.8024, allocations: 5.375 kB / 0.951 GB, free: 7.66 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.182e-05/0.8024, allocations: 25.03 kB / 0.951 GB, free: 7.641 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001669/0.8026, allocations: 49.33 kB / 0.9511 GB, free: 7.605 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.8026, allocations: 0 / 0.9511 GB, free: 7.605 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.785e-06/0.8026, allocations: 0 / 0.9511 GB, free: 7.605 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.74e-05/0.8027, allocations: 0 / 0.9511 GB, free: 7.605 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.0007209/0.8034, allocations: 370.5 kB / 0.9514 GB, free: 7.219 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.675e-05/0.8035, allocations: 13.61 kB / 0.9515 GB, free: 7.215 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.244e-05/0.8035, allocations: 7.438 kB / 0.9515 GB, free: 7.211 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000101/0.8036, allocations: 166 kB / 0.9516 GB, free: 7.012 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.372e-05/0.8036, allocations: 1.594 kB / 0.9516 GB, free: 7.012 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.002e-05/0.8037, allocations: 7.562 kB / 0.9516 GB, free: 7.008 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002322/0.8039, allocations: 59.03 kB / 0.9517 GB, free: 6.961 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.18e-05/0.8039, allocations: 9.547 kB / 0.9517 GB, free: 6.953 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.676e-05/0.8039, allocations: 7.938 kB / 0.9517 GB, free: 6.945 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.084e-06/0.804, allocations: 5.25 kB / 0.9517 GB, free: 6.941 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001901/0.8042, allocations: 38.48 kB / 0.9517 GB, free: 6.926 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004867/0.8046, allocations: 270.3 kB / 0.952 GB, free: 6.629 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001681/0.8048, allocations: 61.02 kB / 0.9521 GB, free: 6.582 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001051/0.8049, allocations: 35.55 kB / 0.9521 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.813e-05/0.805, allocations: 5.344 kB / 0.9521 GB, free: 6.555 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000259/0.8052, allocations: 72.22 kB / 0.9522 GB, free: 6.488 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=6): time 1.502e-06/0.8053, allocations: 0 / 0.9522 GB, free: 6.488 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6): time 0.0004334/0.8057, allocations: 123.1 kB / 0.9523 GB, free: 6.414 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.359e-05/0.8057, allocations: 53 kB / 0.9523 GB, free: 6.352 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.372e-05/0.8058, allocations: 109.9 kB / 0.9524 GB, free: 6.242 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.533e-05/0.8058, allocations: 29.7 kB / 0.9525 GB, free: 6.207 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.414e-05/0.8059, allocations: 89.58 kB / 0.9526 GB, free: 6.117 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.042e-05/0.8059, allocations: 22.81 kB / 0.9526 GB, free: 6.098 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.064e-05/0.806, allocations: 23.67 kB / 0.9526 GB, free: 6.074 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.946e-05/0.806, allocations: 316.2 kB / 0.9529 GB, free: 5.758 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.627e-05/0.8061, allocations: 24.88 kB / 0.9529 GB, free: 5.746 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001031/0.8062, allocations: 51.16 kB / 0.953 GB, free: 5.699 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00019/0.8064, allocations: 87.05 kB / 0.9531 GB, free: 5.633 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.8064, allocations: 0 / 0.9531 GB, free: 5.633 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.000248/0.8067, allocations: 99.45 kB / 0.9531 GB, free: 5.57 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.69e-05/0.8067, allocations: 9.438 kB / 0.9532 GB, free: 5.566 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.134e-06/0.8067, allocations: 1.125 kB / 0.9532 GB, free: 5.566 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.914e-05/0.8068, allocations: 5.25 kB / 0.9532 GB, free: 5.562 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001119/0.8069, allocations: 13.92 kB / 0.9532 GB, free: 5.559 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.879e-06/0.8069, allocations: 5.844 kB / 0.9532 GB, free: 5.555 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.115e-05/0.807, allocations: 12.27 kB / 0.9532 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.039e-05/0.807, allocations: 2.719 kB / 0.9532 GB, free: 5.547 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 (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 6.307e-05/0.807, allocations: 118.1 kB / 0.9533 GB, free: 5.426 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.49e-05/0.8071, allocations: 6.594 kB / 0.9533 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00027/0.8073, allocations: 104.7 kB / 0.9534 GB, free: 5.352 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.988e-06/0.8074, allocations: 0 / 0.9534 GB, free: 5.352 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.8074, allocations: 5.656 kB / 0.9534 GB, free: 5.348 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.006e-06/0.8074, allocations: 0 / 0.9534 GB, free: 5.348 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003575/0.8077, allocations: 347.9 kB / 0.9538 GB, free: 5 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.8077, allocations: 0 / 0.9538 GB, free: 5 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.725e-05/0.8078, allocations: 14.11 kB / 0.9538 GB, free: 4.992 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.267e-06/0.8078, allocations: 0.9375 kB / 0.9538 GB, free: 4.992 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.085e-05/0.8078, allocations: 1.125 kB / 0.9538 GB, free: 4.992 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.8078, allocations: 384 / 0.9538 GB, free: 4.992 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.925e-06/0.8078, allocations: 1.094 kB / 0.9538 GB, free: 4.992 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002553/0.8081, allocations: 203.8 kB / 0.954 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.21e-05/0.8081, allocations: 79.94 kB / 0.954 GB, free: 4.723 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.712e-05/0.8082, allocations: 7.984 kB / 0.954 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001271/0.8083, allocations: 8.797 kB / 0.9541 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.083e-05/0.8083, allocations: 10.67 kB / 0.9541 GB, free: 4.703 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.457e-05/0.8084, allocations: 6.562 kB / 0.9541 GB, free: 4.699 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.728e-05/0.8084, allocations: 79.34 kB / 0.9541 GB, free: 4.625 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8084, allocations: 0 / 0.9541 GB, free: 4.625 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002483/0.8087, allocations: 18.84 kB / 0.9542 GB, free: 4.617 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 (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.0001329/0.8088, allocations: 109.8 kB / 0.9543 GB, free: 4.516 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002758/0.8091, allocations: 65.27 kB / 0.9543 GB, free: 4.488 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.8091, allocations: 0 / 0.9543 GB, free: 4.488 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001083/0.8092, allocations: 34.22 kB / 0.9544 GB, free: 4.473 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002649/0.8095, allocations: 7.969 kB / 0.9544 GB, free: 4.469 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002877/0.8098, allocations: 149.4 kB / 0.9545 GB, free: 4.32 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001039/0.8099, allocations: 0.6891 MB / 0.9552 GB, free: 3.613 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.952e-05/0.8099, allocations: 1.75 kB / 0.9552 GB, free: 3.613 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.34e-05/0.8099, allocations: 11.59 kB / 0.9552 GB, free: 3.605 MB / 0.7169 GB Notification: Performance of SimCode: time 2.41e-07/0.81, allocations: 0 / 0.9552 GB, free: 3.605 MB / 0.7169 GB Notification: Performance of Templates: time 0.003256/0.8132, allocations: 0.7326 MB / 0.9559 GB, free: 3.23 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