Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.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.TriggeredSampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booPul.y|sin1.y|triSam.y|triSam1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booPul.y|sin1.y|triSam.y|triSam1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001656/0.001656, allocations: 109 kB / 16.41 MB, free: 6.512 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.0018/0.0018, allocations: 192.3 kB / 17.35 MB, free: 5.734 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.443/1.443, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.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.32/2.32, allocations: 390.2 MB / 0.6655 GB, free: 0.6367 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001725/0.001725, allocations: 59.91 kB / 0.9515 GB, free: 7.637 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9607/0.9625, allocations: 140.4 MB / 1.089 GB, free: 5.496 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler): time 0.001959/0.9645, allocations: 0.767 MB / 1.089 GB, free: 5.004 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001341/0.9658, allocations: 1.156 MB / 1.09 GB, free: 4.152 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.079e-05/0.9659, allocations: 0.7812 kB / 1.09 GB, free: 4.152 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.801e-05/0.9659, allocations: 4.594 kB / 1.09 GB, free: 4.148 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 8.041e-05/0.966, allocations: 15.83 kB / 1.091 GB, free: 4.137 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004846/0.9665, allocations: 127.2 kB / 1.091 GB, free: 4.074 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001903/0.9667, allocations: 137.8 kB / 1.091 GB, free: 4.012 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000103/0.9668, allocations: 16.36 kB / 1.091 GB, free: 4.004 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 8.989e-05/0.9669, allocations: 49.5 kB / 1.091 GB, free: 3.984 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001041/0.967, allocations: 54.67 kB / 1.091 GB, free: 3.957 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.969e-05/0.967, allocations: 11 kB / 1.091 GB, free: 3.957 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 7.502e-05/0.9671, allocations: 29.64 kB / 1.091 GB, free: 3.949 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.452e-05/0.9672, allocations: 17.75 kB / 1.091 GB, free: 3.938 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 7.145e-05/0.9672, allocations: 44.42 kB / 1.091 GB, free: 3.914 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002037/0.9674, allocations: 120.6 kB / 1.091 GB, free: 3.871 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.9675, allocations: 0 / 1.091 GB, free: 3.871 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.382e-06/0.9675, allocations: 0 / 1.091 GB, free: 3.871 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.891e-06/0.9675, allocations: 1.344 kB / 1.091 GB, free: 3.871 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0005291/0.968, allocations: 422.7 kB / 1.091 GB, free: 3.461 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.757e-05/0.9681, allocations: 7.969 kB / 1.091 GB, free: 3.461 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.496e-05/0.9681, allocations: 12.05 kB / 1.092 GB, free: 3.457 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.487e-05/0.9682, allocations: 173.1 kB / 1.092 GB, free: 3.254 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.692e-05/0.9682, allocations: 8.594 kB / 1.092 GB, free: 3.25 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.561e-05/0.9682, allocations: 8.953 kB / 1.092 GB, free: 3.25 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001962/0.9684, allocations: 72.06 kB / 1.092 GB, free: 3.207 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.885e-06/0.9685, allocations: 7.875 kB / 1.092 GB, free: 3.199 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.959e-06/0.9685, allocations: 1.219 kB / 1.092 GB, free: 3.199 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.809e-06/0.9685, allocations: 5.438 kB / 1.092 GB, free: 3.195 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001915/0.9687, allocations: 46.92 kB / 1.092 GB, free: 3.188 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004486/0.9691, allocations: 345.8 kB / 1.092 GB, free: 2.879 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001622/0.9693, allocations: 59.06 kB / 1.092 GB, free: 2.844 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001036/0.9694, allocations: 34.44 kB / 1.092 GB, free: 2.828 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.064e-05/0.9695, allocations: 4.656 kB / 1.092 GB, free: 2.824 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001963/0.9697, allocations: 88.88 kB / 1.092 GB, free: 2.766 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=8): time 1.603e-06/0.9697, allocations: 0 / 1.092 GB, free: 2.766 MB / 0.8575 GB Notification: Performance of matching and sorting (n=8): time 0.0004657/0.9701, allocations: 150.5 kB / 1.092 GB, free: 2.703 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.83e-05/0.9702, allocations: 53.83 kB / 1.093 GB, free: 2.641 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.61e-05/0.9703, allocations: 121.5 kB / 1.093 GB, free: 2.531 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.637e-05/0.9703, allocations: 32.48 kB / 1.093 GB, free: 2.496 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.567e-05/0.9703, allocations: 99.19 kB / 1.093 GB, free: 2.402 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.116e-05/0.9704, allocations: 15.5 kB / 1.093 GB, free: 2.391 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.179e-05/0.9704, allocations: 38.83 kB / 1.093 GB, free: 2.367 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.151e-05/0.9705, allocations: 327.6 kB / 1.093 GB, free: 2.043 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001687/0.9707, allocations: 49.53 kB / 1.093 GB, free: 2.031 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000176/0.9709, allocations: 92.27 kB / 1.093 GB, free: 1.969 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002622/0.9711, allocations: 151.9 kB / 1.093 GB, free: 1.855 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.9711, allocations: 0 / 1.093 GB, free: 1.855 MB / 0.8575 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004583/0.9716, allocations: 220.4 kB / 1.094 GB, free: 1.738 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 3.322e-05/0.9716, allocations: 34.77 kB / 1.094 GB, free: 1.707 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.052e-06/0.9717, allocations: 1.984 kB / 1.094 GB, free: 1.707 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.695e-05/0.9717, allocations: 6.328 kB / 1.094 GB, free: 1.703 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001061/0.9718, allocations: 21.78 kB / 1.094 GB, free: 1.695 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.306e-05/0.9718, allocations: 6.422 kB / 1.094 GB, free: 1.691 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002316/0.972, allocations: 43.77 kB / 1.094 GB, free: 1.68 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.471e-05/0.9721, allocations: 7.391 kB / 1.094 GB, free: 1.68 MB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 9 (triSam1.y,$PRE.triSam1.y,triSam.y,$PRE.triSam.y,booPul.y,$PRE.booPul.y,$whenCondition3,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 1 * 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.632e-05/0.9722, allocations: 128.6 kB / 1.094 GB, free: 1.555 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.54e-05/0.9722, allocations: 7.766 kB / 1.094 GB, free: 1.551 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003105/0.9725, allocations: 123.1 kB / 1.094 GB, free: 1.492 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.009e-06/0.9725, allocations: 4.734 kB / 1.094 GB, free: 1.488 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-06/0.9725, allocations: 0 / 1.094 GB, free: 1.488 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.043e-05/0.9725, allocations: 84.34 kB / 1.094 GB, free: 1.391 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.862e-05/0.9726, allocations: 5.484 kB / 1.094 GB, free: 1.387 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.927e-05/0.9726, allocations: 7.75 kB / 1.094 GB, free: 1.387 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.836e-05/0.9727, allocations: 8.734 kB / 1.094 GB, free: 1.383 MB / 0.8575 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0003259/0.973, allocations: 197.3 kB / 1.094 GB, free: 1.254 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0002985/0.9733, allocations: 288.8 kB / 1.095 GB, free: 1.023 MB / 0.8575 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001176/0.9735, allocations: 39.72 kB / 1.095 GB, free: 1.012 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.312e-05/0.9735, allocations: 99.83 kB / 1.095 GB, free: 0.9258 MB / 0.8575 GB Notification: Performance of Backend: time 3.6e-07/0.9735, allocations: 0 / 1.095 GB, free: 0.9258 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0006325/0.9741, allocations: 231.4 kB / 1.095 GB, free: 0.7656 MB / 0.8575 GB Notification: Performance of SimCode: time 0.0004395/0.9746, allocations: 0.6018 MB / 1.095 GB, free: 164 kB / 0.8575 GB Notification: Performance of Templates: time 0.004931/0.9795, allocations: 1.563 MB / 1.097 GB, free: 8 kB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches