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.001653/0.001653, allocations: 107.3 kB / 16.41 MB, free: 6.406 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.001812/0.001813, allocations: 191.4 kB / 17.34 MB, free: 5.695 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.403/1.403, allocations: 222.9 MB / 241 MB, free: 15.07 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.306/2.306, allocations: 390.3 MB / 0.6655 GB, free: 0.625 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001394/0.001394, allocations: 63.91 kB / 0.9515 GB, free: 7.66 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8251/0.8265, allocations: 140.4 MB / 1.089 GB, free: 5.785 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler): time 0.001895/0.8284, allocations: 0.7554 MB / 1.089 GB, free: 5.297 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001444/0.8299, allocations: 1.156 MB / 1.09 GB, free: 4.445 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.184e-05/0.83, allocations: 1.125 kB / 1.09 GB, free: 4.445 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.233e-05/0.83, allocations: 9.594 kB / 1.09 GB, free: 4.438 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 9.149e-05/0.8301, allocations: 6.312 kB / 1.09 GB, free: 4.434 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005298/0.8306, allocations: 139.1 kB / 1.091 GB, free: 4.363 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.000207/0.8309, allocations: 133.1 kB / 1.091 GB, free: 4.305 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001023/0.831, allocations: 24.81 kB / 1.091 GB, free: 4.289 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001057/0.8311, allocations: 48.75 kB / 1.091 GB, free: 4.27 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001167/0.8312, allocations: 50.75 kB / 1.091 GB, free: 4.246 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.195e-05/0.8312, allocations: 11.72 kB / 1.091 GB, free: 4.246 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 7.617e-05/0.8313, allocations: 24.89 kB / 1.091 GB, free: 4.242 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.89e-05/0.8314, allocations: 19.09 kB / 1.091 GB, free: 4.23 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 6.961e-05/0.8314, allocations: 47.31 kB / 1.091 GB, free: 4.203 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002438/0.8317, allocations: 116.5 kB / 1.091 GB, free: 4.164 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.8317, allocations: 0 / 1.091 GB, free: 4.164 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.813e-06/0.8317, allocations: 1.156 kB / 1.091 GB, free: 4.164 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.61e-06/0.8317, allocations: 0 / 1.091 GB, free: 4.164 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.0005465/0.8323, allocations: 419.1 kB / 1.091 GB, free: 3.754 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.762e-05/0.8323, allocations: 9.312 kB / 1.091 GB, free: 3.754 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.732e-05/0.8324, allocations: 14.83 kB / 1.091 GB, free: 3.746 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.451e-05/0.8325, allocations: 177.1 kB / 1.092 GB, free: 3.539 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.916e-05/0.8325, allocations: 6.328 kB / 1.092 GB, free: 3.539 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.83e-05/0.8325, allocations: 7.812 kB / 1.092 GB, free: 3.539 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002083/0.8327, allocations: 71.53 kB / 1.092 GB, free: 3.496 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.025e-05/0.8328, allocations: 11.88 kB / 1.092 GB, free: 3.484 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.432e-05/0.8328, allocations: 2.172 kB / 1.092 GB, free: 3.484 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.47e-06/0.8328, allocations: 1.781 kB / 1.092 GB, free: 3.484 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001893/0.833, allocations: 53.11 kB / 1.092 GB, free: 3.469 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004704/0.8335, allocations: 346.2 kB / 1.092 GB, free: 3.16 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001968/0.8337, allocations: 65.02 kB / 1.092 GB, free: 3.121 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001053/0.8338, allocations: 32.67 kB / 1.092 GB, free: 3.105 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.331e-05/0.8338, allocations: 1.5 kB / 1.092 GB, free: 3.105 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002441/0.8341, allocations: 83.78 kB / 1.092 GB, free: 3.051 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=8): time 1.503e-06/0.8341, allocations: 0.8125 kB / 1.092 GB, free: 3.051 MB / 0.8575 GB Notification: Performance of matching and sorting (n=8): time 0.000494/0.8346, allocations: 149.8 kB / 1.092 GB, free: 2.988 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.33e-05/0.8346, allocations: 58.02 kB / 1.093 GB, free: 2.922 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.484e-05/0.8347, allocations: 117.9 kB / 1.093 GB, free: 2.816 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.411e-05/0.8348, allocations: 32.39 kB / 1.093 GB, free: 2.781 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.185e-05/0.8348, allocations: 103.2 kB / 1.093 GB, free: 2.684 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.095e-05/0.8348, allocations: 15.31 kB / 1.093 GB, free: 2.672 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.997e-05/0.8349, allocations: 39.08 kB / 1.093 GB, free: 2.648 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.963e-05/0.835, allocations: 323.4 kB / 1.093 GB, free: 2.328 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001768/0.8352, allocations: 53.61 kB / 1.093 GB, free: 2.312 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001891/0.8354, allocations: 88.55 kB / 1.093 GB, free: 2.25 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003109/0.8357, allocations: 151.8 kB / 1.093 GB, free: 2.137 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.719e-06/0.8357, allocations: 1.391 kB / 1.093 GB, free: 2.137 MB / 0.8575 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004674/0.8362, allocations: 215.4 kB / 1.094 GB, free: 2.023 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 4.019e-05/0.8362, allocations: 39 kB / 1.094 GB, free: 1.988 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.965e-06/0.8362, allocations: 2.062 kB / 1.094 GB, free: 1.988 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.104e-05/0.8363, allocations: 2.125 kB / 1.094 GB, free: 1.988 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001176/0.8364, allocations: 14.38 kB / 1.094 GB, free: 1.988 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.335e-06/0.8364, allocations: 2.891 kB / 1.094 GB, free: 1.988 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002161/0.8366, allocations: 38.66 kB / 1.094 GB, free: 1.98 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.491e-05/0.8367, allocations: 12.38 kB / 1.094 GB, free: 1.977 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 8.312e-05/0.8368, allocations: 134.3 kB / 1.094 GB, free: 1.844 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.78e-05/0.8368, allocations: 7.672 kB / 1.094 GB, free: 1.84 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003166/0.8371, allocations: 118.9 kB / 1.094 GB, free: 1.785 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.889e-06/0.8371, allocations: 5.781 kB / 1.094 GB, free: 1.781 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.171e-06/0.8371, allocations: 0.5156 kB / 1.094 GB, free: 1.781 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/0.8371, allocations: 0.75 kB / 1.094 GB, free: 1.781 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004105/0.8375, allocations: 383.7 kB / 1.094 GB, free: 1.441 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.8376, allocations: 4 kB / 1.094 GB, free: 1.438 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.437e-05/0.8376, allocations: 9.859 kB / 1.094 GB, free: 1.438 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.434e-06/0.8376, allocations: 0.8438 kB / 1.094 GB, free: 1.438 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.438e-06/0.8377, allocations: 2.281 kB / 1.094 GB, free: 1.438 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.435e-06/0.8377, allocations: 4.906 kB / 1.094 GB, free: 1.434 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.8377, allocations: 8.625 kB / 1.094 GB, free: 1.426 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002852/0.838, allocations: 220.6 kB / 1.095 GB, free: 1.262 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.345e-05/0.838, allocations: 80.19 kB / 1.095 GB, free: 1.168 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.934e-05/0.838, allocations: 2.203 kB / 1.095 GB, free: 1.168 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.723e-05/0.8381, allocations: 10.69 kB / 1.095 GB, free: 1.164 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.808e-05/0.8382, allocations: 8.891 kB / 1.095 GB, free: 1.16 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.177e-06/0.8382, allocations: 3.609 kB / 1.095 GB, free: 1.16 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.104e-05/0.8382, allocations: 98.86 kB / 1.095 GB, free: 1.074 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.51e-07/0.8382, allocations: 0 / 1.095 GB, free: 1.074 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002851/0.8385, allocations: 29.55 kB / 1.095 GB, free: 1.066 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.0001297/0.8387, allocations: 102.1 kB / 1.095 GB, free: 0.9805 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0004104/0.8391, allocations: 175.1 kB / 1.095 GB, free: 0.8828 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.8391, allocations: 0.9375 kB / 1.095 GB, free: 0.8828 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001347/0.8392, allocations: 47.92 kB / 1.095 GB, free: 0.8672 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002832/0.8395, allocations: 15.64 kB / 1.095 GB, free: 0.8633 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003936/0.8399, allocations: 199.1 kB / 1.095 GB, free: 0.6875 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001434/0.8401, allocations: 0.6891 MB / 1.096 GB, free: 15.99 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.07e-05/0.8401, allocations: 12.12 kB / 1.096 GB, free: 15.98 MB / 0.8731 GB Notification: Performance of SimCode: time 2.6e-07/0.8401, allocations: 4 kB / 1.096 GB, free: 15.98 MB / 0.8731 GB Notification: Performance of Templates: time 0.003697/0.8438, allocations: 1.294 MB / 1.097 GB, free: 15.86 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