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.001558/0.001558, allocations: 103.8 kB / 16.27 MB, free: 6.414 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.00121/0.00121, allocations: 189.7 kB / 17.2 MB, free: 5.953 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.47/1.47, allocations: 222.9 MB / 240.9 MB, free: 15.27 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.556/2.556, allocations: 437 MB / 0.711 GB, free: 4.566 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001436/0.001436, allocations: 68.8 kB / 0.8699 GB, free: 2.238 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2928/0.2942, allocations: 151.6 MB / 1.018 GB, free: 10.67 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler): time 0.002132/0.2964, allocations: 0.758 MB / 1.019 GB, free: 9.906 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001441/0.2978, allocations: 1.157 MB / 1.02 GB, free: 8.734 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.755e-05/0.2979, allocations: 0 / 1.02 GB, free: 8.734 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 4.119e-05/0.298, allocations: 3.938 kB / 1.02 GB, free: 8.73 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 8.976e-05/0.2981, allocations: 11.86 kB / 1.02 GB, free: 8.719 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.000588/0.2987, allocations: 141.4 kB / 1.02 GB, free: 8.586 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0001845/0.2989, allocations: 131.7 kB / 1.02 GB, free: 8.457 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001243/0.2991, allocations: 28.16 kB / 1.02 GB, free: 8.426 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001104/0.2992, allocations: 47.91 kB / 1.02 GB, free: 8.379 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 9.012e-05/0.2993, allocations: 43.81 kB / 1.02 GB, free: 8.336 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 3.22e-05/0.2993, allocations: 16 kB / 1.02 GB, free: 8.32 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 8.406e-05/0.2994, allocations: 31.92 kB / 1.02 GB, free: 8.289 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 2.302e-05/0.2994, allocations: 11.98 kB / 1.02 GB, free: 8.277 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 7.009e-05/0.2995, allocations: 51.78 kB / 1.02 GB, free: 8.227 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0001871/0.2997, allocations: 107.7 kB / 1.02 GB, free: 8.121 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.2997, allocations: 0 / 1.02 GB, free: 8.121 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.243e-06/0.2997, allocations: 0 / 1.02 GB, free: 8.121 MB / 0.795 GB Notification: Performance of Transformations before backend: time 5.681e-06/0.2997, allocations: 4 kB / 1.02 GB, free: 8.117 MB / 0.795 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.0005952/0.3003, allocations: 425.1 kB / 1.021 GB, free: 7.648 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.406e-05/0.3004, allocations: 15.97 kB / 1.021 GB, free: 7.633 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.553e-05/0.3004, allocations: 8.922 kB / 1.021 GB, free: 7.625 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001034/0.3005, allocations: 172.2 kB / 1.021 GB, free: 7.418 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.943e-05/0.3006, allocations: 8.375 kB / 1.021 GB, free: 7.41 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.863e-05/0.3006, allocations: 8.375 kB / 1.021 GB, free: 7.402 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002058/0.3008, allocations: 74.16 kB / 1.021 GB, free: 7.324 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.719e-06/0.3008, allocations: 7.922 kB / 1.021 GB, free: 7.316 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.4e-05/0.3009, allocations: 4 kB / 1.021 GB, free: 7.312 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.217e-06/0.3009, allocations: 7.984 kB / 1.021 GB, free: 7.305 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001868/0.3011, allocations: 43.95 kB / 1.021 GB, free: 7.262 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004896/0.3016, allocations: 340.6 kB / 1.022 GB, free: 6.879 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001728/0.3017, allocations: 62.55 kB / 1.022 GB, free: 6.809 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001004/0.3018, allocations: 32.95 kB / 1.022 GB, free: 6.773 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 2.305e-05/0.3019, allocations: 4 kB / 1.022 GB, free: 6.77 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002029/0.3021, allocations: 91.38 kB / 1.022 GB, free: 6.668 MB / 0.795 GB Notification: Performance of pre-optimization done (n=8): time 1.512e-06/0.3021, allocations: 0 / 1.022 GB, free: 6.668 MB / 0.795 GB Notification: Performance of matching and sorting (n=8): time 0.0004536/0.3026, allocations: 149.5 kB / 1.022 GB, free: 6.516 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.7e-05/0.3026, allocations: 51.41 kB / 1.022 GB, free: 6.453 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.425e-05/0.3027, allocations: 125.8 kB / 1.022 GB, free: 6.32 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 2.731e-05/0.3027, allocations: 29.7 kB / 1.022 GB, free: 6.285 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 5.68e-05/0.3028, allocations: 92.05 kB / 1.022 GB, free: 6.191 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 2.33e-05/0.3028, allocations: 23.73 kB / 1.022 GB, free: 6.168 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.283e-05/0.3029, allocations: 45.64 kB / 1.022 GB, free: 6.117 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 9.16e-05/0.303, allocations: 322.8 kB / 1.022 GB, free: 5.793 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001585/0.3032, allocations: 47.97 kB / 1.023 GB, free: 5.746 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001697/0.3033, allocations: 93.05 kB / 1.023 GB, free: 5.637 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002806/0.3036, allocations: 162.7 kB / 1.023 GB, free: 5.453 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.358e-06/0.3036, allocations: 3.984 kB / 1.023 GB, free: 5.449 MB / 0.795 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004575/0.3041, allocations: 215.1 kB / 1.023 GB, free: 5.227 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 3.419e-05/0.3041, allocations: 33.7 kB / 1.023 GB, free: 5.188 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.667e-06/0.3042, allocations: 4 kB / 1.023 GB, free: 5.184 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.312e-05/0.3042, allocations: 0 / 1.023 GB, free: 5.184 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001017/0.3043, allocations: 19.98 kB / 1.023 GB, free: 5.164 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.294e-06/0.3043, allocations: 3.938 kB / 1.023 GB, free: 5.16 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002256/0.3045, allocations: 40.02 kB / 1.023 GB, free: 5.121 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.256e-05/0.3046, allocations: 8 kB / 1.023 GB, free: 5.113 MB / 0.795 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.841e-05/0.3047, allocations: 132.2 kB / 1.023 GB, free: 4.977 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.632e-05/0.3047, allocations: 4 kB / 1.023 GB, free: 4.973 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002923/0.305, allocations: 118 kB / 1.023 GB, free: 4.848 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.97e-06/0.305, allocations: 8 kB / 1.023 GB, free: 4.84 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.305, allocations: 3.984 kB / 1.023 GB, free: 4.836 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.305, allocations: 0 / 1.023 GB, free: 4.836 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004057/0.3054, allocations: 382.3 kB / 1.024 GB, free: 4.406 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.3054, allocations: 0 / 1.024 GB, free: 4.406 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.153e-05/0.3055, allocations: 7.984 kB / 1.024 GB, free: 4.398 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.845e-06/0.3055, allocations: 4 kB / 1.024 GB, free: 4.395 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.415e-06/0.3055, allocations: 0 / 1.024 GB, free: 4.395 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.3055, allocations: 4 kB / 1.024 GB, free: 4.391 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.456e-06/0.3055, allocations: 7.875 kB / 1.024 GB, free: 4.383 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002923/0.3058, allocations: 207.5 kB / 1.024 GB, free: 4.164 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 3.795e-05/0.3059, allocations: 85 kB / 1.024 GB, free: 4.062 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.667e-05/0.3059, allocations: 0 / 1.024 GB, free: 4.062 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.465e-05/0.306, allocations: 4 kB / 1.024 GB, free: 4.059 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.141e-05/0.3061, allocations: 23.92 kB / 1.024 GB, free: 4.035 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.025e-06/0.3061, allocations: 4 kB / 1.024 GB, free: 4.031 MB / 0.795 GB Notification: Performance of sorting global known variables: time 4.949e-05/0.3061, allocations: 91.27 kB / 1.024 GB, free: 3.941 MB / 0.795 GB Notification: Performance of sort global known variables: time 1e-07/0.3061, allocations: 0 / 1.024 GB, free: 3.941 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002868/0.3064, allocations: 24 kB / 1.024 GB, free: 3.918 MB / 0.795 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.0001384/0.3066, allocations: 107.2 kB / 1.024 GB, free: 3.805 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0003964/0.307, allocations: 191.7 kB / 1.024 GB, free: 3.605 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.307, allocations: 3.938 kB / 1.024 GB, free: 3.602 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.000126/0.3071, allocations: 39.97 kB / 1.024 GB, free: 3.562 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002769/0.3074, allocations: 10.05 kB / 1.024 GB, free: 3.555 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004038/0.3078, allocations: 209 kB / 1.025 GB, free: 3.316 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002201/0.3081, allocations: 0.6924 MB / 1.025 GB, free: 2.598 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.098e-05/0.3081, allocations: 11.44 kB / 1.025 GB, free: 2.586 MB / 0.795 GB Notification: Performance of SimCode: time 2.31e-07/0.3081, allocations: 0 / 1.025 GB, free: 2.586 MB / 0.795 GB Notification: Performance of Templates: time 0.003008/0.3111, allocations: 1.281 MB / 1.027 GB, free: 1.324 MB / 0.795 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