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.001159/0.001159, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001314/0.001314, allocations: 198.1 kB / 16.14 MB, free: 6.719 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.426/1.426, allocations: 222.9 MB / 239.8 MB, free: 4.633 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.43/2.43, allocations: 390.2 MB / 0.6642 GB, free: 0.6016 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001217/0.001217, allocations: 67.89 kB / 0.8119 GB, free: 14.89 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8158/0.817, allocations: 140.3 MB / 0.9489 GB, free: 9.125 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler): time 0.001969/0.819, allocations: 0.8219 MB / 0.9497 GB, free: 8.488 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001325/0.8204, allocations: 1.165 MB / 0.9509 GB, free: 7.555 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.461e-05/0.8204, allocations: 1.375 kB / 0.9509 GB, free: 7.555 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.092e-05/0.8205, allocations: 3.938 kB / 0.9509 GB, free: 7.551 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.862e-05/0.8206, allocations: 13.33 kB / 0.9509 GB, free: 7.539 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004205/0.821, allocations: 122.8 kB / 0.951 GB, free: 7.461 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001148/0.8211, allocations: 117.6 kB / 0.9511 GB, free: 7.395 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001094/0.8212, allocations: 16.59 kB / 0.9511 GB, free: 7.383 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.915e-05/0.8213, allocations: 41.22 kB / 0.9512 GB, free: 7.363 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.194e-05/0.8214, allocations: 53.3 kB / 0.9512 GB, free: 7.32 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.558e-05/0.8214, allocations: 6.875 kB / 0.9512 GB, free: 7.32 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.106e-05/0.8215, allocations: 21.69 kB / 0.9512 GB, free: 7.312 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.561e-05/0.8215, allocations: 10.73 kB / 0.9513 GB, free: 7.305 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.306e-05/0.8216, allocations: 45.53 kB / 0.9513 GB, free: 7.273 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000158/0.8218, allocations: 113.8 kB / 0.9514 GB, free: 7.188 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.8218, allocations: 0 / 0.9514 GB, free: 7.188 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.332e-06/0.8218, allocations: 0 / 0.9514 GB, free: 7.188 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.047e-06/0.8218, allocations: 0 / 0.9514 GB, free: 7.188 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0005375/0.8223, allocations: 418.7 kB / 0.9518 GB, free: 6.762 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.873e-05/0.8224, allocations: 12.19 kB / 0.9518 GB, free: 6.758 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.741e-05/0.8225, allocations: 11.72 kB / 0.9518 GB, free: 6.754 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.932e-05/0.8225, allocations: 179 kB / 0.952 GB, free: 6.543 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.615e-05/0.8226, allocations: 8.484 kB / 0.952 GB, free: 6.539 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.628e-05/0.8226, allocations: 8.625 kB / 0.952 GB, free: 6.539 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001831/0.8228, allocations: 74.78 kB / 0.9521 GB, free: 6.48 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.166e-06/0.8228, allocations: 5.312 kB / 0.9521 GB, free: 6.477 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.086e-05/0.8228, allocations: 0 / 0.9521 GB, free: 6.477 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.901e-06/0.8228, allocations: 5.375 kB / 0.9521 GB, free: 6.473 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000173/0.823, allocations: 46.55 kB / 0.9521 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000451/0.8235, allocations: 343.4 kB / 0.9525 GB, free: 6.102 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001606/0.8236, allocations: 65.08 kB / 0.9525 GB, free: 6.055 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.145e-05/0.8237, allocations: 27 kB / 0.9526 GB, free: 6.039 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.144e-05/0.8238, allocations: 1 kB / 0.9526 GB, free: 6.039 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002291/0.824, allocations: 88.11 kB / 0.9526 GB, free: 5.965 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=8): time 1.292e-06/0.824, allocations: 0 / 0.9526 GB, free: 5.965 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8): time 0.0004175/0.8244, allocations: 157.3 kB / 0.9528 GB, free: 5.875 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.915e-05/0.8245, allocations: 52.81 kB / 0.9528 GB, free: 5.812 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.698e-05/0.8245, allocations: 120 kB / 0.953 GB, free: 5.699 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.969e-05/0.8246, allocations: 32.42 kB / 0.953 GB, free: 5.664 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.013e-05/0.8246, allocations: 96.31 kB / 0.9531 GB, free: 5.57 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.608e-05/0.8246, allocations: 14.38 kB / 0.9531 GB, free: 5.559 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.543e-05/0.8247, allocations: 45.5 kB / 0.9531 GB, free: 5.523 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.615e-05/0.8248, allocations: 321.4 kB / 0.9534 GB, free: 5.203 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001541/0.8249, allocations: 50.86 kB / 0.9535 GB, free: 5.18 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001551/0.8251, allocations: 92.23 kB / 0.9536 GB, free: 5.102 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002389/0.8253, allocations: 151.6 kB / 0.9537 GB, free: 4.977 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.8253, allocations: 0 / 0.9537 GB, free: 4.977 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003978/0.8257, allocations: 214.7 kB / 0.9539 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.593e-05/0.8258, allocations: 42.84 kB / 0.954 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.683e-06/0.8258, allocations: 2.406 kB / 0.954 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.397e-05/0.8258, allocations: 5.062 kB / 0.954 GB, free: 4.797 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001027/0.8259, allocations: 14.92 kB / 0.954 GB, free: 4.793 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.744e-06/0.8259, allocations: 6.125 kB / 0.954 GB, free: 4.789 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002139/0.8262, allocations: 36.53 kB / 0.954 GB, free: 4.773 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.442e-05/0.8262, allocations: 14.92 kB / 0.954 GB, free: 4.766 MB / 0.7169 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.381e-05/0.8263, allocations: 121.9 kB / 0.9542 GB, free: 4.645 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.536e-05/0.8263, allocations: 12 kB / 0.9542 GB, free: 4.637 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002855/0.8266, allocations: 127.9 kB / 0.9543 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.287e-06/0.8266, allocations: 5.5 kB / 0.9543 GB, free: 4.551 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.8266, allocations: 0 / 0.9543 GB, free: 4.551 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.376e-06/0.8266, allocations: 0 / 0.9543 GB, free: 4.551 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003454/0.827, allocations: 375 kB / 0.9547 GB, free: 4.191 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.345e-06/0.827, allocations: 3.984 kB / 0.9547 GB, free: 4.188 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.692e-05/0.827, allocations: 7.281 kB / 0.9547 GB, free: 4.188 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.827, allocations: 0 / 0.9547 GB, free: 4.188 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.019e-05/0.8271, allocations: 9.172 kB / 0.9547 GB, free: 4.18 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.8271, allocations: 1.406 kB / 0.9547 GB, free: 4.18 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.554e-06/0.8271, allocations: 3.938 kB / 0.9547 GB, free: 4.176 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002651/0.8273, allocations: 216.8 kB / 0.9549 GB, free: 4 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.322e-05/0.8274, allocations: 83.27 kB / 0.955 GB, free: 3.902 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.893e-05/0.8274, allocations: 0.9062 kB / 0.955 GB, free: 3.902 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.485e-05/0.8275, allocations: 15.2 kB / 0.955 GB, free: 3.891 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.678e-05/0.8275, allocations: 11.05 kB / 0.955 GB, free: 3.883 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.047e-06/0.8276, allocations: 3.031 kB / 0.955 GB, free: 3.883 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.117e-05/0.8276, allocations: 92.25 kB / 0.9551 GB, free: 3.801 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.8276, allocations: 0 / 0.9551 GB, free: 3.801 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002718/0.8279, allocations: 25.06 kB / 0.9551 GB, free: 3.797 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: 6 ($whenCondition3,$whenCondition1,$whenCondition2,booPul.y,triSam.y,triSam1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0001434/0.828, allocations: 107.7 kB / 0.9552 GB, free: 3.699 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003735/0.8284, allocations: 188.1 kB / 0.9554 GB, free: 3.57 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.8284, allocations: 0 / 0.9554 GB, free: 3.57 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.00012/0.8286, allocations: 43.92 kB / 0.9554 GB, free: 3.551 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002794/0.8288, allocations: 10.44 kB / 0.9554 GB, free: 3.547 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003661/0.8292, allocations: 191.3 kB / 0.9556 GB, free: 3.375 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001223/0.8293, allocations: 0.6904 MB / 0.9563 GB, free: 2.672 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.265e-05/0.8294, allocations: 6.906 kB / 0.9563 GB, free: 2.668 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.164e-05/0.8294, allocations: 14.94 kB / 0.9563 GB, free: 2.656 MB / 0.7169 GB Notification: Performance of SimCode: time 2.1e-07/0.8294, allocations: 0 / 0.9563 GB, free: 2.656 MB / 0.7169 GB Notification: Performance of Templates: time 0.003743/0.8332, allocations: 1.321 MB / 0.9576 GB, free: 1.984 MB / 0.7169 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/jenkins/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