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.001854/0.001854, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001864/0.001864, allocations: 197.2 kB / 16.14 MB, free: 6.73 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.574/1.574, allocations: 222.9 MB / 239.8 MB, free: 4.641 MB / 190.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.965/2.965, allocations: 437 MB / 0.7099 GB, free: 5.281 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00201/0.00201, allocations: 67.89 kB / 0.8686 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8887/0.8908, allocations: 151.6 MB / 1.017 GB, free: 2.746 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler): time 0.002968/0.8938, allocations: 0.8282 MB / 1.017 GB, free: 1.918 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001966/0.8958, allocations: 1.167 MB / 1.019 GB, free: 0.7344 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.905e-05/0.8959, allocations: 0 / 1.019 GB, free: 0.7344 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 4.652e-05/0.8959, allocations: 7.922 kB / 1.019 GB, free: 0.7266 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 7.843e-05/0.8961, allocations: 11.92 kB / 1.019 GB, free: 0.7148 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004896/0.8965, allocations: 123.6 kB / 1.019 GB, free: 0.5977 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001549/0.8967, allocations: 107.8 kB / 1.019 GB, free: 0.4922 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001315/0.8968, allocations: 32.14 kB / 1.019 GB, free: 468 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 9.723e-05/0.897, allocations: 39.91 kB / 1.019 GB, free: 428 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 9.008e-05/0.897, allocations: 43.83 kB / 1.019 GB, free: 384 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.835e-05/0.8971, allocations: 8 kB / 1.019 GB, free: 376 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 7.248e-05/0.8972, allocations: 19.98 kB / 1.019 GB, free: 356 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.893e-05/0.8972, allocations: 15.97 kB / 1.019 GB, free: 340 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 8.535e-05/0.8973, allocations: 39.8 kB / 1.019 GB, free: 300 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.000212/0.8975, allocations: 111.7 kB / 1.019 GB, free: 188 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.8975, allocations: 3.938 kB / 1.019 GB, free: 184 kB / 0.7637 GB Notification: Performance of FrontEnd: time 8.01e-07/0.8975, allocations: 4 kB / 1.019 GB, free: 180 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 7.934e-06/0.8975, allocations: 0 / 1.019 GB, free: 180 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.0007775/0.8983, allocations: 422.8 kB / 1.02 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.147e-05/0.8984, allocations: 8.031 kB / 1.02 GB, free: 15.7 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.035e-05/0.8984, allocations: 4.938 kB / 1.02 GB, free: 15.7 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001813/0.8986, allocations: 176.2 kB / 1.02 GB, free: 15.49 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.069e-05/0.8987, allocations: 8.375 kB / 1.02 GB, free: 15.48 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.728e-05/0.8987, allocations: 8.375 kB / 1.02 GB, free: 15.47 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000246/0.8989, allocations: 82.16 kB / 1.02 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.201e-05/0.899, allocations: 7.875 kB / 1.02 GB, free: 15.38 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.301e-05/0.899, allocations: 0 / 1.02 GB, free: 15.38 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.861e-06/0.899, allocations: 0 / 1.02 GB, free: 15.38 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002017/0.8992, allocations: 47.95 kB / 1.02 GB, free: 15.33 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006165/0.8998, allocations: 352.6 kB / 1.02 GB, free: 14.94 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002104/0.9, allocations: 62.48 kB / 1.02 GB, free: 14.87 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001094/0.9002, allocations: 32.95 kB / 1.02 GB, free: 14.83 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.879e-05/0.9002, allocations: 0 / 1.02 GB, free: 14.83 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002936/0.9005, allocations: 87.36 kB / 1.02 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=8): time 1.393e-06/0.9005, allocations: 0 / 1.02 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of matching and sorting (n=8): time 0.0005237/0.901, allocations: 153.5 kB / 1.021 GB, free: 14.58 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.127e-05/0.9011, allocations: 51.41 kB / 1.021 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001246/0.9012, allocations: 125.8 kB / 1.021 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.558e-05/0.9013, allocations: 37.7 kB / 1.021 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.855e-05/0.9014, allocations: 96.05 kB / 1.021 GB, free: 14.24 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.452e-05/0.9014, allocations: 15.8 kB / 1.021 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.176e-05/0.9015, allocations: 37.7 kB / 1.021 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001704/0.9017, allocations: 326.8 kB / 1.021 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001762/0.9018, allocations: 51.91 kB / 1.021 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002125/0.9021, allocations: 93.11 kB / 1.021 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003248/0.9024, allocations: 150.7 kB / 1.021 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.9024, allocations: 0 / 1.021 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0005133/0.9029, allocations: 211.1 kB / 1.022 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 6.976e-05/0.903, allocations: 41.69 kB / 1.022 GB, free: 13.26 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.903, allocations: 0 / 1.022 GB, free: 13.26 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.457e-05/0.903, allocations: 160 / 1.022 GB, free: 13.26 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001144/0.9032, allocations: 23.98 kB / 1.022 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.859e-06/0.9032, allocations: 4 kB / 1.022 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002447/0.9034, allocations: 39.8 kB / 1.022 GB, free: 13.19 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.199e-05/0.9035, allocations: 4 kB / 1.022 GB, free: 13.19 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.0001342/0.9036, allocations: 136 kB / 1.022 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.588e-05/0.9036, allocations: 8 kB / 1.022 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003363/0.904, allocations: 122 kB / 1.022 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/0.904, allocations: 0 / 1.022 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.904, allocations: 0 / 1.022 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.904, allocations: 0 / 1.022 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005194/0.9045, allocations: 382.3 kB / 1.022 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.522e-06/0.9045, allocations: 4 kB / 1.022 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.589e-05/0.9046, allocations: 11.98 kB / 1.022 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.9046, allocations: 0 / 1.022 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.639e-06/0.9046, allocations: 3.938 kB / 1.022 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.362e-06/0.9047, allocations: 0 / 1.022 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.9047, allocations: 7.938 kB / 1.022 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003533/0.905, allocations: 215.4 kB / 1.023 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.786e-05/0.9051, allocations: 81.02 kB / 1.023 GB, free: 12.13 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.112e-05/0.9051, allocations: 7.984 kB / 1.023 GB, free: 12.12 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.017e-05/0.9052, allocations: 8 kB / 1.023 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.863e-05/0.9053, allocations: 7.922 kB / 1.023 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.474e-06/0.9053, allocations: 4 kB / 1.023 GB, free: 12.1 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 6.413e-05/0.9054, allocations: 95.75 kB / 1.023 GB, free: 12.01 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.21e-07/0.9054, allocations: 0 / 1.023 GB, free: 12.01 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002785/0.9056, allocations: 28 kB / 1.023 GB, free: 11.98 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.0001891/0.9058, allocations: 107.8 kB / 1.023 GB, free: 11.87 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0004462/0.9063, allocations: 175.3 kB / 1.023 GB, free: 11.68 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.9063, allocations: 0 / 1.023 GB, free: 11.68 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001526/0.9065, allocations: 39.92 kB / 1.023 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003071/0.9068, allocations: 20.55 kB / 1.023 GB, free: 11.63 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004932/0.9073, allocations: 201.5 kB / 1.023 GB, free: 11.41 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004062/0.9077, allocations: 0.6887 MB / 1.024 GB, free: 10.69 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 4.535e-05/0.9078, allocations: 11.98 kB / 1.024 GB, free: 10.68 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.185e-05/0.9078, allocations: 11.44 kB / 1.024 GB, free: 10.67 MB / 0.7794 GB Notification: Performance of SimCode: time 6.61e-07/0.9078, allocations: 0 / 1.024 GB, free: 10.67 MB / 0.7794 GB Notification: Performance of Templates: time 0.005021/0.9128, allocations: 1.317 MB / 1.025 GB, free: 9.359 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=400 -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/jenkins/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