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.001058/0.001058, allocations: 98.48 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00141/0.00141, allocations: 185.7 kB / 16.92 MB, free: 6.75 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.402/1.402, allocations: 223.3 MB / 241 MB, free: 5.34 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.422/2.422, allocations: 390.9 MB / 0.667 GB, free: 2.383 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003774/0.000378, allocations: 8 kB / 0.8166 GB, free: 13.25 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.77/0.7704, allocations: 142.4 MB / 0.9557 GB, free: 7.766 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.0009021/0.7713, allocations: 391.1 kB / 0.9561 GB, free: 7.473 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001233/0.7726, allocations: 1.047 MB / 0.9571 GB, free: 6.629 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.962e-05/0.7726, allocations: 0 / 0.9571 GB, free: 6.629 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.537e-05/0.7726, allocations: 0 / 0.9571 GB, free: 6.629 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.423e-05/0.7727, allocations: 5.156 kB / 0.9571 GB, free: 6.625 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000221/0.7729, allocations: 40.77 kB / 0.9572 GB, free: 6.594 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.622e-05/0.773, allocations: 42.92 kB / 0.9572 GB, free: 6.57 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.794e-05/0.7731, allocations: 12.7 kB / 0.9572 GB, free: 6.562 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.183e-05/0.7732, allocations: 10.62 kB / 0.9572 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.54e-05/0.7733, allocations: 21.38 kB / 0.9572 GB, free: 6.543 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.288e-05/0.7733, allocations: 2.125 kB / 0.9572 GB, free: 6.543 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.442e-05/0.7733, allocations: 16.19 kB / 0.9573 GB, free: 6.535 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.926e-05/0.7734, allocations: 9.906 kB / 0.9573 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.928e-05/0.7734, allocations: 42.25 kB / 0.9573 GB, free: 6.484 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 9.302e-05/0.7735, allocations: 41.22 kB / 0.9573 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.991e-06/0.7735, allocations: 1.344 kB / 0.9573 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.485e-06/0.7735, allocations: 3.938 kB / 0.9574 GB, free: 6.449 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.143e-06/0.7736, allocations: 0 / 0.9574 GB, free: 6.449 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.0005007/0.7741, allocations: 369.4 kB / 0.9577 GB, free: 6.066 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.483e-05/0.7741, allocations: 12.84 kB / 0.9577 GB, free: 6.062 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.51e-05/0.7742, allocations: 7.969 kB / 0.9577 GB, free: 6.059 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.337e-05/0.7742, allocations: 162.6 kB / 0.9579 GB, free: 5.863 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.491e-05/0.7743, allocations: 1.531 kB / 0.9579 GB, free: 5.863 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.714e-05/0.7743, allocations: 7.719 kB / 0.9579 GB, free: 5.859 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001982/0.7745, allocations: 63.75 kB / 0.958 GB, free: 5.812 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.715e-06/0.7745, allocations: 192 / 0.958 GB, free: 5.812 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.344e-05/0.7745, allocations: 13.03 kB / 0.958 GB, free: 5.801 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.452e-06/0.7745, allocations: 1.031 kB / 0.958 GB, free: 5.801 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001952/0.7747, allocations: 56.89 kB / 0.958 GB, free: 5.777 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004001/0.7751, allocations: 278.6 kB / 0.9583 GB, free: 5.473 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001629/0.7753, allocations: 58 kB / 0.9583 GB, free: 5.434 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001054/0.7754, allocations: 39.05 kB / 0.9584 GB, free: 5.41 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.408e-05/0.7755, allocations: 6.219 kB / 0.9584 GB, free: 5.406 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002253/0.7757, allocations: 85.22 kB / 0.9585 GB, free: 5.332 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=6): time 1.342e-06/0.7757, allocations: 0 / 0.9585 GB, free: 5.332 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6): time 0.0004337/0.7761, allocations: 133.3 kB / 0.9586 GB, free: 5.262 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.666e-05/0.7762, allocations: 52.72 kB / 0.9586 GB, free: 5.199 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.446e-05/0.7763, allocations: 105.5 kB / 0.9587 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.395e-05/0.7763, allocations: 31.14 kB / 0.9588 GB, free: 5.059 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.894e-05/0.7763, allocations: 89.61 kB / 0.9589 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.588e-05/0.7763, allocations: 17.56 kB / 0.9589 GB, free: 4.953 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.454e-05/0.7764, allocations: 16.55 kB / 0.9589 GB, free: 4.934 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.186e-05/0.7764, allocations: 316.5 kB / 0.9592 GB, free: 4.617 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.867e-05/0.7765, allocations: 26.45 kB / 0.9592 GB, free: 4.609 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001035/0.7766, allocations: 59.5 kB / 0.9593 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001975/0.7768, allocations: 92.33 kB / 0.9594 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.7769, allocations: 3.938 kB / 0.9594 GB, free: 4.492 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002591/0.7771, allocations: 117.9 kB / 0.9595 GB, free: 4.422 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.73e-05/0.7771, allocations: 8.938 kB / 0.9595 GB, free: 4.418 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.7772, allocations: 1.562 kB / 0.9595 GB, free: 4.418 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.414e-05/0.7772, allocations: 1.594 kB / 0.9595 GB, free: 4.418 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001053/0.7773, allocations: 15.11 kB / 0.9595 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.332e-06/0.7773, allocations: 2.438 kB / 0.9595 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.706e-05/0.7774, allocations: 10.33 kB / 0.9595 GB, free: 4.41 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.148e-05/0.7774, allocations: 6.734 kB / 0.9595 GB, free: 4.406 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 7.085e-05/0.7775, allocations: 129.5 kB / 0.9596 GB, free: 4.273 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.199e-05/0.7775, allocations: 6.344 kB / 0.9597 GB, free: 4.27 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002756/0.7778, allocations: 110.3 kB / 0.9598 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.836e-06/0.7778, allocations: 1.812 kB / 0.9598 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.7778, allocations: 4 kB / 0.9598 GB, free: 4.199 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.7778, allocations: 0 / 0.9598 GB, free: 4.199 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003797/0.7782, allocations: 362.2 kB / 0.9601 GB, free: 3.848 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.694e-06/0.7782, allocations: 0 / 0.9601 GB, free: 3.848 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.902e-05/0.7783, allocations: 18.23 kB / 0.9601 GB, free: 3.84 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.7783, allocations: 0 / 0.9601 GB, free: 3.84 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.046e-05/0.7783, allocations: 5.375 kB / 0.9601 GB, free: 3.836 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.7783, allocations: 0 / 0.9601 GB, free: 3.836 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.7783, allocations: 5.375 kB / 0.9601 GB, free: 3.832 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002578/0.7786, allocations: 206.2 kB / 0.9603 GB, free: 3.664 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.168e-05/0.7786, allocations: 82.39 kB / 0.9604 GB, free: 3.566 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.786e-05/0.7786, allocations: 9.312 kB / 0.9604 GB, free: 3.559 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.517e-05/0.7787, allocations: 10.86 kB / 0.9604 GB, free: 3.555 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.261e-05/0.7788, allocations: 6.734 kB / 0.9604 GB, free: 3.551 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.389e-05/0.7788, allocations: 6.688 kB / 0.9604 GB, free: 3.547 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.485e-05/0.7788, allocations: 87.41 kB / 0.9605 GB, free: 3.465 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.21e-07/0.7788, allocations: 0 / 0.9605 GB, free: 3.465 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000239/0.7791, allocations: 14.94 kB / 0.9605 GB, free: 3.461 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.000142/0.7792, allocations: 101.1 kB / 0.9606 GB, free: 3.367 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002536/0.7795, allocations: 78.64 kB / 0.9607 GB, free: 3.336 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.804e-06/0.7795, allocations: 0 / 0.9607 GB, free: 3.336 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.000113/0.7796, allocations: 36.72 kB / 0.9607 GB, free: 3.324 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002582/0.7799, allocations: 8.125 kB / 0.9608 GB, free: 3.32 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003152/0.7802, allocations: 172.6 kB / 0.9609 GB, free: 3.148 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001088/0.7803, allocations: 0.6851 MB / 0.9616 GB, free: 2.445 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.653e-05/0.7803, allocations: 10.19 kB / 0.9616 GB, free: 2.438 MB / 0.7169 GB Notification: Performance of SimCode: time 2.2e-07/0.7803, allocations: 0 / 0.9616 GB, free: 2.438 MB / 0.7169 GB Notification: Performance of Templates: time 0.002414/0.7827, allocations: 0.8621 MB / 0.9624 GB, free: 2 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/jenkins1/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