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.00147/0.00147, allocations: 109.2 kB / 16.41 MB, free: 6.465 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.001628/0.001628, allocations: 187 kB / 17.34 MB, free: 5.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.318/1.318, allocations: 222.9 MB / 241 MB, free: 15.13 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.436/2.436, allocations: 437 MB / 0.7112 GB, free: 4.344 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001624/0.001624, allocations: 63.91 kB / 1.019 GB, free: 9.402 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8792/0.8808, allocations: 151.7 MB / 1.167 GB, free: 3.836 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler): time 0.001789/0.8827, allocations: 0.7583 MB / 1.168 GB, free: 3.074 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001338/0.884, allocations: 1.162 MB / 1.169 GB, free: 1.898 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.936e-05/0.8841, allocations: 0 / 1.169 GB, free: 1.898 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 2.859e-05/0.8841, allocations: 3.938 kB / 1.169 GB, free: 1.895 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 7.803e-05/0.8842, allocations: 19.86 kB / 1.169 GB, free: 1.875 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004578/0.8847, allocations: 134.9 kB / 1.169 GB, free: 1.746 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0001767/0.8848, allocations: 127.8 kB / 1.169 GB, free: 1.621 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001011/0.885, allocations: 20.17 kB / 1.169 GB, free: 1.598 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 9.222e-05/0.8851, allocations: 51.89 kB / 1.17 GB, free: 1.547 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 9.092e-05/0.8851, allocations: 47.81 kB / 1.17 GB, free: 1.5 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 2.575e-05/0.8852, allocations: 12 kB / 1.17 GB, free: 1.488 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 6.474e-05/0.8853, allocations: 27.98 kB / 1.17 GB, free: 1.461 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 2.614e-05/0.8853, allocations: 19.92 kB / 1.17 GB, free: 1.441 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 6.915e-05/0.8854, allocations: 47.83 kB / 1.17 GB, free: 1.395 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001753/0.8855, allocations: 119.6 kB / 1.17 GB, free: 1.277 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.8856, allocations: 0 / 1.17 GB, free: 1.277 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.403e-06/0.8856, allocations: 0 / 1.17 GB, free: 1.277 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 4.989e-06/0.8856, allocations: 0 / 1.17 GB, free: 1.277 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.0005705/0.8861, allocations: 414.7 kB / 1.17 GB, free: 0.8242 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.216e-05/0.8862, allocations: 15.97 kB / 1.17 GB, free: 0.8086 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.222e-05/0.8862, allocations: 12.84 kB / 1.17 GB, free: 0.7969 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001101/0.8864, allocations: 172.3 kB / 1.17 GB, free: 0.5898 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.724e-05/0.8864, allocations: 8.375 kB / 1.17 GB, free: 0.582 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.2e-05/0.8864, allocations: 4.375 kB / 1.17 GB, free: 0.5781 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001941/0.8866, allocations: 78.16 kB / 1.17 GB, free: 0.4961 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.406e-06/0.8866, allocations: 3.938 kB / 1.17 GB, free: 0.4922 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.023e-05/0.8866, allocations: 0 / 1.17 GB, free: 0.4922 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.197e-06/0.8866, allocations: 0 / 1.17 GB, free: 0.4922 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001857/0.8868, allocations: 51.95 kB / 1.171 GB, free: 452 kB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004738/0.8873, allocations: 352.5 kB / 1.171 GB, free: 48 kB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001763/0.8875, allocations: 54.55 kB / 1.171 GB, free: 15.98 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001012/0.8876, allocations: 44.89 kB / 1.171 GB, free: 15.94 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 1.802e-05/0.8876, allocations: 0 / 1.171 GB, free: 15.94 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002325/0.8879, allocations: 91.3 kB / 1.171 GB, free: 15.84 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=8): time 1.332e-06/0.8879, allocations: 0 / 1.171 GB, free: 15.84 MB / 0.9044 GB Notification: Performance of matching and sorting (n=8): time 0.0004261/0.8883, allocations: 141.6 kB / 1.171 GB, free: 15.69 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.063e-05/0.8884, allocations: 59.41 kB / 1.171 GB, free: 15.62 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.39e-05/0.8885, allocations: 125.7 kB / 1.171 GB, free: 15.49 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 3.029e-05/0.8885, allocations: 33.7 kB / 1.171 GB, free: 15.45 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 5.59e-05/0.8886, allocations: 92.12 kB / 1.171 GB, free: 15.36 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 2.268e-05/0.8886, allocations: 23.7 kB / 1.171 GB, free: 15.33 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.879e-05/0.8887, allocations: 33.7 kB / 1.172 GB, free: 15.29 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001324/0.8888, allocations: 326.8 kB / 1.172 GB, free: 14.96 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001599/0.889, allocations: 55.97 kB / 1.172 GB, free: 14.91 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001684/0.8892, allocations: 93.05 kB / 1.172 GB, free: 14.8 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002697/0.8894, allocations: 150.7 kB / 1.172 GB, free: 14.63 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.8894, allocations: 0 / 1.172 GB, free: 14.63 MB / 0.9044 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004293/0.8899, allocations: 219.2 kB / 1.172 GB, free: 14.4 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 3.624e-05/0.8899, allocations: 33.7 kB / 1.172 GB, free: 14.36 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.8899, allocations: 0 / 1.172 GB, free: 14.36 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.396e-05/0.8899, allocations: 4 kB / 1.172 GB, free: 14.36 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001006/0.8901, allocations: 19.92 kB / 1.172 GB, free: 14.34 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.053e-06/0.8901, allocations: 4 kB / 1.172 GB, free: 14.34 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000197/0.8903, allocations: 35.89 kB / 1.172 GB, free: 14.3 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.643e-05/0.8903, allocations: 8.312 kB / 1.172 GB, free: 14.29 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 9.09e-05/0.8904, allocations: 125.8 kB / 1.173 GB, free: 14.16 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.871e-05/0.8904, allocations: 11.89 kB / 1.173 GB, free: 14.15 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002933/0.8907, allocations: 125.9 kB / 1.173 GB, free: 14.02 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.8907, allocations: 0 / 1.173 GB, free: 14.02 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.8907, allocations: 0 / 1.173 GB, free: 14.02 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.488e-06/0.8908, allocations: 0 / 1.173 GB, free: 14.02 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005132/0.8913, allocations: 378.5 kB / 1.173 GB, free: 13.59 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.8913, allocations: 3.984 kB / 1.173 GB, free: 13.59 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.27e-05/0.8914, allocations: 15.98 kB / 1.173 GB, free: 13.57 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.647e-06/0.8914, allocations: 0 / 1.173 GB, free: 13.57 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.035e-05/0.8914, allocations: 3.938 kB / 1.173 GB, free: 13.57 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.44e-06/0.8914, allocations: 4 kB / 1.173 GB, free: 13.57 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.8914, allocations: 3.938 kB / 1.173 GB, free: 13.56 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003199/0.8917, allocations: 215.4 kB / 1.173 GB, free: 13.34 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 3.91e-05/0.8918, allocations: 85.02 kB / 1.173 GB, free: 13.23 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.703e-05/0.8918, allocations: 4 kB / 1.173 GB, free: 13.23 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.449e-05/0.8919, allocations: 7.984 kB / 1.173 GB, free: 13.22 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.521e-05/0.8919, allocations: 15.92 kB / 1.173 GB, free: 13.21 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.442e-06/0.892, allocations: 3.938 kB / 1.173 GB, free: 13.2 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 5.123e-05/0.892, allocations: 91.27 kB / 1.173 GB, free: 13.11 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.31e-07/0.892, allocations: 4 kB / 1.173 GB, free: 13.11 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002688/0.8923, allocations: 24 kB / 1.173 GB, free: 13.09 MB / 0.9044 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.0001439/0.8924, allocations: 115.1 kB / 1.174 GB, free: 12.96 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0003937/0.8928, allocations: 175.3 kB / 1.174 GB, free: 12.78 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 1.993e-06/0.8929, allocations: 0 / 1.174 GB, free: 12.78 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0001188/0.893, allocations: 44.28 kB / 1.174 GB, free: 12.74 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002816/0.8933, allocations: 18.16 kB / 1.174 GB, free: 12.72 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003943/0.8937, allocations: 192.7 kB / 1.174 GB, free: 12.5 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002383/0.8939, allocations: 0.6923 MB / 1.175 GB, free: 11.78 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.651e-05/0.8939, allocations: 11.44 kB / 1.175 GB, free: 11.77 MB / 0.9044 GB Notification: Performance of SimCode: time 2.21e-07/0.894, allocations: 4 kB / 1.175 GB, free: 11.77 MB / 0.9044 GB Notification: Performance of Templates: time 0.002988/0.8969, allocations: 1.283 MB / 1.176 GB, free: 10.5 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