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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.00133/0.00133, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001399/0.001399, allocations: 199.7 kB / 16.79 MB, free: 6.809 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.489/1.489, allocations: 222.9 MB / 240.5 MB, free: 4.625 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.731/2.731, allocations: 437 MB / 0.7106 GB, free: 5.395 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001548/0.001548, allocations: 67.89 kB / 0.8692 GB, free: 5.23 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.684/0.6856, allocations: 151.6 MB / 1.017 GB, free: 3.004 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler): time 0.002885/0.6885, allocations: 0.8206 MB / 1.018 GB, free: 2.184 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001968/0.6905, allocations: 1.171 MB / 1.019 GB, free: 0.9961 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.199e-05/0.6906, allocations: 0 / 1.019 GB, free: 0.9961 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 4.582e-05/0.6907, allocations: 11.88 kB / 1.019 GB, free: 0.9844 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 8.815e-05/0.6908, allocations: 3.938 kB / 1.019 GB, free: 0.9805 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006035/0.6914, allocations: 123.8 kB / 1.019 GB, free: 0.8594 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001862/0.6916, allocations: 107.8 kB / 1.019 GB, free: 0.7539 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001433/0.6918, allocations: 24.14 kB / 1.019 GB, free: 0.7266 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001331/0.6919, allocations: 51.84 kB / 1.02 GB, free: 0.6758 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 9.049e-05/0.692, allocations: 31.89 kB / 1.02 GB, free: 0.6445 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 3.454e-05/0.692, allocations: 8 kB / 1.02 GB, free: 0.6367 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 9.761e-05/0.6921, allocations: 27.97 kB / 1.02 GB, free: 0.6094 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 3.17e-05/0.6922, allocations: 19.86 kB / 1.02 GB, free: 0.5898 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 8.775e-05/0.6923, allocations: 39.84 kB / 1.02 GB, free: 0.5508 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001824/0.6925, allocations: 83.83 kB / 1.02 GB, free: 480 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.6925, allocations: 3.938 kB / 1.02 GB, free: 476 kB / 0.7637 GB Notification: Performance of FrontEnd: time 1.373e-06/0.6925, allocations: 0 / 1.02 GB, free: 476 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 7.244e-06/0.6925, allocations: 0 / 1.02 GB, free: 476 kB / 0.7637 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.0007704/0.6933, allocations: 423 kB / 1.02 GB, free: 0 / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 6.381e-05/0.6933, allocations: 8.078 kB / 1.02 GB, free: 15.99 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.538e-05/0.6934, allocations: 12.94 kB / 1.02 GB, free: 15.98 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001542/0.6936, allocations: 172.2 kB / 1.02 GB, free: 15.77 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.95e-05/0.6936, allocations: 4.375 kB / 1.02 GB, free: 15.77 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.241e-05/0.6937, allocations: 12.38 kB / 1.02 GB, free: 15.75 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002391/0.6939, allocations: 74.09 kB / 1.02 GB, free: 15.68 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.18e-05/0.6939, allocations: 3.938 kB / 1.02 GB, free: 15.68 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.34e-05/0.6939, allocations: 0 / 1.02 GB, free: 15.68 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.707e-06/0.694, allocations: 4 kB / 1.02 GB, free: 15.67 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002105/0.6942, allocations: 47.95 kB / 1.02 GB, free: 15.62 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006065/0.6948, allocations: 344.6 kB / 1.021 GB, free: 15.24 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001944/0.695, allocations: 58.55 kB / 1.021 GB, free: 15.17 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001033/0.6951, allocations: 36.95 kB / 1.021 GB, free: 15.13 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.722e-05/0.6951, allocations: 3.984 kB / 1.021 GB, free: 15.13 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002953/0.6954, allocations: 91.34 kB / 1.021 GB, free: 15.03 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=8): time 1.723e-06/0.6955, allocations: 0 / 1.021 GB, free: 15.03 MB / 0.7794 GB Notification: Performance of matching and sorting (n=8): time 0.0004819/0.6959, allocations: 149.6 kB / 1.021 GB, free: 14.88 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.532e-05/0.696, allocations: 59.39 kB / 1.021 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001182/0.6961, allocations: 117.8 kB / 1.021 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.243e-05/0.6962, allocations: 29.7 kB / 1.021 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 8.293e-05/0.6963, allocations: 108 kB / 1.021 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.538e-05/0.6963, allocations: 15.8 kB / 1.021 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.567e-05/0.6964, allocations: 37.7 kB / 1.021 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001393/0.6965, allocations: 326.8 kB / 1.022 GB, free: 14.15 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001719/0.6967, allocations: 55.91 kB / 1.022 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002009/0.6969, allocations: 90.36 kB / 1.022 GB, free: 13.99 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003188/0.6973, allocations: 162.7 kB / 1.022 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.6973, allocations: 0 / 1.022 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004784/0.6977, allocations: 215.1 kB / 1.022 GB, free: 13.58 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 4.767e-05/0.6978, allocations: 35.42 kB / 1.022 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/0.6978, allocations: 0 / 1.022 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.587e-05/0.6979, allocations: 4 kB / 1.022 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001155/0.698, allocations: 15.98 kB / 1.022 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.848e-06/0.698, allocations: 0 / 1.022 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002555/0.6983, allocations: 47.89 kB / 1.022 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.831e-05/0.6983, allocations: 15.98 kB / 1.022 GB, free: 13.46 MB / 0.7794 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 0.0001261/0.6984, allocations: 122.3 kB / 1.023 GB, free: 13.33 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.629e-05/0.6984, allocations: 0 / 1.023 GB, free: 13.33 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003388/0.6988, allocations: 126 kB / 1.023 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.965e-06/0.6988, allocations: 3.938 kB / 1.023 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.286e-06/0.6988, allocations: 4 kB / 1.023 GB, free: 13.19 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.458e-06/0.6988, allocations: 4 kB / 1.023 GB, free: 13.19 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004928/0.6993, allocations: 374.4 kB / 1.023 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.474e-06/0.6993, allocations: 0 / 1.023 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.092e-05/0.6994, allocations: 7.984 kB / 1.023 GB, free: 12.76 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.427e-06/0.6994, allocations: 0 / 1.023 GB, free: 12.76 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.227e-05/0.6994, allocations: 4 kB / 1.023 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.844e-06/0.6994, allocations: 0 / 1.023 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.187e-06/0.6995, allocations: 7.938 kB / 1.023 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003474/0.6998, allocations: 219.4 kB / 1.023 GB, free: 12.52 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.885e-05/0.6999, allocations: 85.02 kB / 1.023 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.874e-05/0.6999, allocations: 0 / 1.023 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.614e-05/0.7, allocations: 7.984 kB / 1.023 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.234e-05/0.7, allocations: 7.938 kB / 1.023 GB, free: 12.4 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.326e-05/0.7001, allocations: 12 kB / 1.023 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 7.384e-05/0.7001, allocations: 99.75 kB / 1.023 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7001, allocations: 0 / 1.023 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002923/0.7004, allocations: 20 kB / 1.023 GB, free: 12.27 MB / 0.7794 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.0002048/0.7007, allocations: 107.2 kB / 1.024 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0004413/0.7011, allocations: 183.5 kB / 1.024 GB, free: 11.96 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 5.039e-06/0.7011, allocations: 0 / 1.024 GB, free: 11.96 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001321/0.7013, allocations: 43.91 kB / 1.024 GB, free: 11.92 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003084/0.7016, allocations: 12.33 kB / 1.024 GB, free: 11.91 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005381/0.7021, allocations: 226.5 kB / 1.024 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003334/0.7025, allocations: 0.6887 MB / 1.025 GB, free: 10.94 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.747e-05/0.7025, allocations: 11.44 kB / 1.025 GB, free: 10.93 MB / 0.7794 GB Notification: Performance of SimCode: time 6.31e-07/0.7025, allocations: 0 / 1.025 GB, free: 10.93 MB / 0.7794 GB Notification: Performance of Templates: time 0.004068/0.7066, allocations: 1.283 MB / 1.026 GB, free: 9.656 MB / 0.7794 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