Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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.TriggeredSampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booPul.y|sin1.y|triSam.y|triSam1.y",fileNamePrefix="Buildings_10_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_10_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.001149/0.001149, allocations: 115.2 kB / 16.42 MB, free: 6.492 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.001133/0.001133, allocations: 185.7 kB / 17.35 MB, free: 5.762 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.457/1.457, allocations: 222.9 MB / 241.1 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.589/2.589, allocations: 437 MB / 0.7112 GB, free: 4.426 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001688/0.001688, allocations: 63.89 kB / 1.019 GB, free: 9.453 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.15/1.152, allocations: 151.6 MB / 1.167 GB, free: 3.875 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler): time 0.002597/1.155, allocations: 0.7622 MB / 1.168 GB, free: 3.109 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001923/1.157, allocations: 1.158 MB / 1.169 GB, free: 1.938 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.324e-05/1.157, allocations: 0 / 1.169 GB, free: 1.938 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 4.647e-05/1.157, allocations: 3.938 kB / 1.169 GB, free: 1.934 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0001317/1.157, allocations: 19.88 kB / 1.169 GB, free: 1.914 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006994/1.158, allocations: 134.8 kB / 1.169 GB, free: 1.785 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0002757/1.158, allocations: 135.8 kB / 1.169 GB, free: 1.652 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001514/1.158, allocations: 20.17 kB / 1.169 GB, free: 1.629 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001565/1.158, allocations: 47.91 kB / 1.17 GB, free: 1.582 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001356/1.159, allocations: 51.8 kB / 1.17 GB, free: 1.531 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 3.798e-05/1.159, allocations: 12 kB / 1.17 GB, free: 1.52 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001028/1.159, allocations: 23.98 kB / 1.17 GB, free: 1.496 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 3.569e-05/1.159, allocations: 15.94 kB / 1.17 GB, free: 1.48 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 9.969e-05/1.159, allocations: 51.83 kB / 1.17 GB, free: 1.43 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0002457/1.159, allocations: 127.5 kB / 1.17 GB, free: 1.305 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.598e-06/1.159, allocations: 0 / 1.17 GB, free: 1.305 MB / 0.8887 GB Notification: Performance of FrontEnd: time 2.134e-06/1.159, allocations: 0 / 1.17 GB, free: 1.305 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 8.216e-06/1.159, allocations: 0 / 1.17 GB, free: 1.305 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0007832/1.16, allocations: 414.7 kB / 1.17 GB, free: 0.8516 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.823e-05/1.16, allocations: 11.97 kB / 1.17 GB, free: 0.8398 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.725e-05/1.16, allocations: 12.84 kB / 1.17 GB, free: 0.8281 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001446/1.16, allocations: 164.3 kB / 1.17 GB, free: 0.6289 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.616e-05/1.16, allocations: 16.36 kB / 1.17 GB, free: 0.6133 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.227e-05/1.16, allocations: 8.375 kB / 1.17 GB, free: 0.6055 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002388/1.161, allocations: 78.16 kB / 1.17 GB, free: 0.5234 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.115e-05/1.161, allocations: 3.938 kB / 1.17 GB, free: 0.5195 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.309e-05/1.161, allocations: 0 / 1.17 GB, free: 0.5195 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.879e-06/1.161, allocations: 0 / 1.17 GB, free: 0.5195 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002047/1.161, allocations: 47.95 kB / 1.171 GB, free: 484 kB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006278/1.161, allocations: 352.5 kB / 1.171 GB, free: 80 kB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000185/1.162, allocations: 54.55 kB / 1.171 GB, free: 16 kB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001276/1.162, allocations: 32.97 kB / 1.171 GB, free: 15.98 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 2.718e-05/1.162, allocations: 3.984 kB / 1.171 GB, free: 15.98 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002888/1.162, allocations: 95.3 kB / 1.171 GB, free: 15.87 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=8): time 2.114e-06/1.162, allocations: 0 / 1.171 GB, free: 15.87 MB / 0.9044 GB Notification: Performance of matching and sorting (n=8): time 0.0005016/1.163, allocations: 145.8 kB / 1.171 GB, free: 15.72 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.284e-05/1.163, allocations: 51.41 kB / 1.171 GB, free: 15.66 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.897e-05/1.163, allocations: 125.8 kB / 1.171 GB, free: 15.53 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 3.245e-05/1.163, allocations: 33.7 kB / 1.171 GB, free: 15.49 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 7.176e-05/1.163, allocations: 92.12 kB / 1.171 GB, free: 15.39 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 2.779e-05/1.163, allocations: 19.7 kB / 1.171 GB, free: 15.38 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.947e-05/1.163, allocations: 41.69 kB / 1.172 GB, free: 15.33 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001295/1.163, allocations: 322.8 kB / 1.172 GB, free: 15 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001694/1.163, allocations: 51.95 kB / 1.172 GB, free: 14.95 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001802/1.164, allocations: 93.05 kB / 1.172 GB, free: 14.84 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003169/1.164, allocations: 158.7 kB / 1.172 GB, free: 14.66 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/1.164, allocations: 0 / 1.172 GB, free: 14.66 MB / 0.9044 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004844/1.164, allocations: 211.1 kB / 1.172 GB, free: 14.45 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 4.517e-05/1.164, allocations: 33.69 kB / 1.172 GB, free: 14.41 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.636e-06/1.164, allocations: 4.234 kB / 1.172 GB, free: 14.4 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.927e-05/1.164, allocations: 7.938 kB / 1.172 GB, free: 14.39 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001231/1.165, allocations: 23.92 kB / 1.172 GB, free: 14.37 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.672e-05/1.165, allocations: 7.984 kB / 1.172 GB, free: 14.36 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002249/1.165, allocations: 31.91 kB / 1.172 GB, free: 14.33 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.527e-05/1.165, allocations: 7.984 kB / 1.172 GB, free: 14.32 MB / 0.9044 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 0.0001297/1.165, allocations: 128.2 kB / 1.173 GB, free: 14.19 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.943e-05/1.165, allocations: 11.91 kB / 1.173 GB, free: 14.18 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003568/1.165, allocations: 125.9 kB / 1.173 GB, free: 14.05 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.685e-06/1.165, allocations: 4.031 kB / 1.173 GB, free: 14.05 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/1.165, allocations: 0 / 1.173 GB, free: 14.05 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 5.305e-05/1.166, allocations: 81.02 kB / 1.173 GB, free: 13.95 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.464e-05/1.166, allocations: 7.938 kB / 1.173 GB, free: 13.94 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.311e-05/1.166, allocations: 7.984 kB / 1.173 GB, free: 13.93 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.441e-05/1.166, allocations: 11.98 kB / 1.173 GB, free: 13.92 MB / 0.9044 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0003552/1.166, allocations: 192.9 kB / 1.173 GB, free: 13.73 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0003518/1.166, allocations: 286.7 kB / 1.173 GB, free: 13.43 MB / 0.9044 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001224/1.167, allocations: 39.97 kB / 1.173 GB, free: 13.39 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 5.52e-05/1.167, allocations: 95.2 kB / 1.173 GB, free: 13.3 MB / 0.9044 GB Notification: Performance of Backend: time 6.01e-07/1.167, allocations: 0 / 1.173 GB, free: 13.3 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0007018/1.167, allocations: 232.3 kB / 1.174 GB, free: 13.05 MB / 0.9044 GB Notification: Performance of SimCode: time 0.0007197/1.168, allocations: 0.6139 MB / 1.174 GB, free: 12.39 MB / 0.9044 GB Notification: Performance of Templates: time 0.005425/1.173, allocations: 1.551 MB / 1.176 GB, free: 10.86 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches