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.001154/0.001154, allocations: 110.5 kB / 16.41 MB, free: 6.453 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.00112/0.00112, allocations: 185.6 kB / 17.34 MB, free: 5.738 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.374/1.374, allocations: 222.9 MB / 241 MB, free: 15.18 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.217/2.217, allocations: 390.2 MB / 0.6655 GB, free: 0.6797 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001463/0.001463, allocations: 71.81 kB / 0.9515 GB, free: 7.695 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8731/0.8746, allocations: 140.4 MB / 1.089 GB, free: 5.543 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler): time 0.002135/0.8768, allocations: 0.7515 MB / 1.089 GB, free: 5.059 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001545/0.8783, allocations: 1.164 MB / 1.09 GB, free: 4.203 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.688e-05/0.8784, allocations: 1.188 kB / 1.09 GB, free: 4.203 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.361e-05/0.8784, allocations: 5.297 kB / 1.09 GB, free: 4.199 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 7.523e-05/0.8785, allocations: 10.14 kB / 1.09 GB, free: 4.191 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005257/0.8791, allocations: 142.4 kB / 1.091 GB, free: 4.117 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002372/0.8793, allocations: 130 kB / 1.091 GB, free: 4.062 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001239/0.8794, allocations: 24.16 kB / 1.091 GB, free: 4.047 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001032/0.8795, allocations: 45.48 kB / 1.091 GB, free: 4.031 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001216/0.8797, allocations: 54.67 kB / 1.091 GB, free: 4.004 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.47e-05/0.8797, allocations: 15.47 kB / 1.091 GB, free: 4 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 8.58e-05/0.8798, allocations: 21.7 kB / 1.091 GB, free: 4 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.715e-05/0.8798, allocations: 18.25 kB / 1.091 GB, free: 3.988 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 7.892e-05/0.8799, allocations: 43.22 kB / 1.091 GB, free: 3.965 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002486/0.8802, allocations: 120.4 kB / 1.091 GB, free: 3.922 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 7.665e-06/0.8802, allocations: 1.062 kB / 1.091 GB, free: 3.922 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.896e-06/0.8802, allocations: 0 / 1.091 GB, free: 3.922 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.294e-06/0.8802, allocations: 4 kB / 1.091 GB, free: 3.918 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.0006035/0.8808, allocations: 427.1 kB / 1.091 GB, free: 3.504 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.066e-05/0.8809, allocations: 9.156 kB / 1.091 GB, free: 3.504 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.789e-05/0.8809, allocations: 11.23 kB / 1.092 GB, free: 3.5 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.989e-05/0.881, allocations: 173.6 kB / 1.092 GB, free: 3.297 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.112e-05/0.8811, allocations: 4.391 kB / 1.092 GB, free: 3.297 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.969e-05/0.8811, allocations: 8.234 kB / 1.092 GB, free: 3.297 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002118/0.8813, allocations: 77.09 kB / 1.092 GB, free: 3.25 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.003e-05/0.8813, allocations: 3.938 kB / 1.092 GB, free: 3.246 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.311e-05/0.8813, allocations: 1.703 kB / 1.092 GB, free: 3.246 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.3e-06/0.8814, allocations: 1.125 kB / 1.092 GB, free: 3.246 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001967/0.8816, allocations: 50.98 kB / 1.092 GB, free: 3.234 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005234/0.8821, allocations: 338.1 kB / 1.092 GB, free: 2.934 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002094/0.8823, allocations: 71.09 kB / 1.092 GB, free: 2.887 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001183/0.8824, allocations: 34.02 kB / 1.092 GB, free: 2.871 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.707e-05/0.8825, allocations: 0.9062 kB / 1.092 GB, free: 2.871 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003089/0.8828, allocations: 92.89 kB / 1.092 GB, free: 2.809 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=8): time 1.402e-06/0.8828, allocations: 4 kB / 1.092 GB, free: 2.805 MB / 0.8575 GB Notification: Performance of matching and sorting (n=8): time 0.0005308/0.8833, allocations: 142 kB / 1.092 GB, free: 2.75 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.721e-05/0.8834, allocations: 58.45 kB / 1.093 GB, free: 2.684 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.34e-05/0.8835, allocations: 124.9 kB / 1.093 GB, free: 2.57 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.319e-05/0.8835, allocations: 28.48 kB / 1.093 GB, free: 2.539 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.994e-05/0.8836, allocations: 94.36 kB / 1.093 GB, free: 2.449 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.477e-05/0.8836, allocations: 20.42 kB / 1.093 GB, free: 2.434 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.057e-05/0.8837, allocations: 43 kB / 1.093 GB, free: 2.406 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 8.339e-05/0.8838, allocations: 322.7 kB / 1.093 GB, free: 2.086 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001812/0.884, allocations: 50.2 kB / 1.093 GB, free: 2.074 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001898/0.8841, allocations: 87.92 kB / 1.093 GB, free: 2.012 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003021/0.8845, allocations: 148.1 kB / 1.093 GB, free: 1.902 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-06/0.8845, allocations: 0.8438 kB / 1.093 GB, free: 1.902 MB / 0.8575 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004837/0.885, allocations: 214.9 kB / 1.094 GB, free: 1.789 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 4.828e-05/0.885, allocations: 39.86 kB / 1.094 GB, free: 1.754 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.055e-06/0.885, allocations: 5.062 kB / 1.094 GB, free: 1.75 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.757e-05/0.8851, allocations: 2.719 kB / 1.094 GB, free: 1.75 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001173/0.8852, allocations: 17.94 kB / 1.094 GB, free: 1.746 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.039e-05/0.8852, allocations: 3.094 kB / 1.094 GB, free: 1.746 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002355/0.8854, allocations: 42.97 kB / 1.094 GB, free: 1.734 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.937e-05/0.8855, allocations: 15.62 kB / 1.094 GB, free: 1.727 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 9.603e-05/0.8856, allocations: 122.8 kB / 1.094 GB, free: 1.605 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.232e-05/0.8856, allocations: 7.922 kB / 1.094 GB, free: 1.602 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003564/0.886, allocations: 126.9 kB / 1.094 GB, free: 1.539 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.468e-06/0.886, allocations: 1.469 kB / 1.094 GB, free: 1.539 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.843e-06/0.886, allocations: 4.734 kB / 1.094 GB, free: 1.535 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.097e-06/0.886, allocations: 0.8438 kB / 1.094 GB, free: 1.535 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004478/0.8865, allocations: 383.5 kB / 1.094 GB, free: 1.195 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.8865, allocations: 0.8438 kB / 1.094 GB, free: 1.195 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.645e-05/0.8865, allocations: 10.42 kB / 1.094 GB, free: 1.195 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.295e-06/0.8865, allocations: 0 / 1.094 GB, free: 1.195 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.257e-05/0.8866, allocations: 6.375 kB / 1.094 GB, free: 1.191 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.866e-06/0.8866, allocations: 0.9062 kB / 1.094 GB, free: 1.191 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.388e-06/0.8866, allocations: 4.734 kB / 1.094 GB, free: 1.188 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003114/0.8869, allocations: 208.9 kB / 1.095 GB, free: 1.035 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.509e-05/0.8869, allocations: 79.69 kB / 1.095 GB, free: 0.9414 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.273e-05/0.887, allocations: 1.625 kB / 1.095 GB, free: 0.9414 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.755e-05/0.8871, allocations: 14.62 kB / 1.095 GB, free: 0.9336 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.071e-05/0.8871, allocations: 10.44 kB / 1.095 GB, free: 0.9297 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.227e-06/0.8871, allocations: 2.688 kB / 1.095 GB, free: 0.9297 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.968e-05/0.8872, allocations: 95.31 kB / 1.095 GB, free: 0.8477 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8872, allocations: 0 / 1.095 GB, free: 0.8477 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002756/0.8875, allocations: 29.59 kB / 1.095 GB, free: 0.8398 MB / 0.8575 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.0001326/0.8876, allocations: 101.5 kB / 1.095 GB, free: 0.7539 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0004245/0.888, allocations: 183.3 kB / 1.095 GB, free: 0.6484 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.888, allocations: 0.7812 kB / 1.095 GB, free: 0.6484 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001373/0.8882, allocations: 39.17 kB / 1.095 GB, free: 0.6406 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002888/0.8885, allocations: 13.88 kB / 1.095 GB, free: 0.6367 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003679/0.8889, allocations: 205.3 kB / 1.095 GB, free: 464 kB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000215/0.8891, allocations: 0.6908 MB / 1.096 GB, free: 15.76 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.864e-05/0.8891, allocations: 12.28 kB / 1.096 GB, free: 15.75 MB / 0.8731 GB Notification: Performance of SimCode: time 3.41e-07/0.8891, allocations: 0 / 1.096 GB, free: 15.75 MB / 0.8731 GB Notification: Performance of Templates: time 0.003837/0.893, allocations: 1.298 MB / 1.097 GB, free: 15.62 MB / 0.8731 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