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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001241/0.001241, allocations: 108 kB / 15.6 MB, free: 132 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.001276/0.001276, allocations: 193.7 kB / 16.53 MB, free: 6.391 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.26/1.26, allocations: 222.9 MB / 240.2 MB, free: 4.375 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.367/2.367, allocations: 437.1 MB / 0.7104 GB, free: 5.066 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001259/0.001259, allocations: 63.89 kB / 0.8694 GB, free: 4.531 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4964/0.4976, allocations: 151.6 MB / 1.017 GB, free: 2.473 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler): time 0.001874/0.4996, allocations: 0.7656 MB / 1.018 GB, free: 1.707 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001322/0.5009, allocations: 1.159 MB / 1.019 GB, free: 0.5312 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.917e-05/0.501, allocations: 3.938 kB / 1.019 GB, free: 0.5273 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 2.877e-05/0.501, allocations: 3.938 kB / 1.019 GB, free: 0.5234 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 6.242e-05/0.5011, allocations: 15.84 kB / 1.019 GB, free: 0.5078 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004714/0.5015, allocations: 135.7 kB / 1.019 GB, free: 384 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001533/0.5017, allocations: 123.8 kB / 1.02 GB, free: 260 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001052/0.5018, allocations: 32.14 kB / 1.02 GB, free: 224 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 9.395e-05/0.5019, allocations: 51.84 kB / 1.02 GB, free: 172 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 7.048e-05/0.502, allocations: 39.89 kB / 1.02 GB, free: 132 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.885e-05/0.502, allocations: 12 kB / 1.02 GB, free: 120 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 7.293e-05/0.5021, allocations: 19.98 kB / 1.02 GB, free: 100 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.562e-05/0.5021, allocations: 23.91 kB / 1.02 GB, free: 76 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 6.348e-05/0.5022, allocations: 39.86 kB / 1.02 GB, free: 36 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001846/0.5024, allocations: 119.8 kB / 1.02 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.556e-06/0.5024, allocations: 0 / 1.02 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.142e-06/0.5024, allocations: 4 kB / 1.02 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 8.366e-06/0.5024, allocations: 0 / 1.02 GB, free: 15.91 MB / 0.7794 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.0005351/0.503, allocations: 419.2 kB / 1.02 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.299e-05/0.503, allocations: 8.031 kB / 1.02 GB, free: 15.44 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.095e-05/0.5031, allocations: 38.73 kB / 1.02 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.53e-05/0.5031, allocations: 8.844 kB / 1.02 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.64e-05/0.5032, allocations: 184 kB / 1.021 GB, free: 15.17 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.572e-05/0.5032, allocations: 8.375 kB / 1.021 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.212e-05/0.5033, allocations: 8.375 kB / 1.021 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001903/0.5034, allocations: 81.89 kB / 1.021 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.843e-06/0.5035, allocations: 0 / 1.021 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.297e-05/0.5035, allocations: 8 kB / 1.021 GB, free: 15.06 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.716e-06/0.5035, allocations: 0 / 1.021 GB, free: 15.06 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001922/0.5037, allocations: 47.89 kB / 1.021 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004466/0.5041, allocations: 344.6 kB / 1.021 GB, free: 14.63 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001688/0.5043, allocations: 62.58 kB / 1.021 GB, free: 14.56 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001005/0.5044, allocations: 36.95 kB / 1.021 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.713e-05/0.5045, allocations: 0 / 1.021 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001961/0.5047, allocations: 87.36 kB / 1.021 GB, free: 14.42 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=8): time 1.402e-06/0.5047, allocations: 0 / 1.021 GB, free: 14.42 MB / 0.7794 GB Notification: Performance of matching and sorting (n=8): time 0.0004204/0.5051, allocations: 153.5 kB / 1.021 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.73e-05/0.5051, allocations: 55.39 kB / 1.021 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.751e-05/0.5052, allocations: 125.8 kB / 1.021 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.295e-05/0.5053, allocations: 29.7 kB / 1.022 GB, free: 14.03 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.973e-05/0.5053, allocations: 96.03 kB / 1.022 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.747e-05/0.5053, allocations: 15.81 kB / 1.022 GB, free: 13.92 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.689e-05/0.5054, allocations: 37.7 kB / 1.022 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.016e-05/0.5055, allocations: 326.8 kB / 1.022 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001548/0.5057, allocations: 47.97 kB / 1.022 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001647/0.5058, allocations: 90.23 kB / 1.022 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002747/0.5061, allocations: 158.7 kB / 1.022 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.947e-06/0.5061, allocations: 4 kB / 1.022 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.00043/0.5066, allocations: 207.1 kB / 1.022 GB, free: 13 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 3.566e-05/0.5066, allocations: 33.7 kB / 1.022 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.583e-06/0.5066, allocations: 8.094 kB / 1.022 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.105e-05/0.5066, allocations: 4 kB / 1.023 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001009/0.5067, allocations: 19.98 kB / 1.023 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.091e-06/0.5068, allocations: 0 / 1.023 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002264/0.507, allocations: 39.8 kB / 1.023 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.081e-05/0.507, allocations: 15.92 kB / 1.023 GB, free: 12.87 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 8.9e-05/0.5071, allocations: 125.8 kB / 1.023 GB, free: 12.74 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.407e-05/0.5071, allocations: 8 kB / 1.023 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002981/0.5074, allocations: 122.3 kB / 1.023 GB, free: 12.6 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.5075, allocations: 4 kB / 1.023 GB, free: 12.6 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.5075, allocations: 0 / 1.023 GB, free: 12.6 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.5075, allocations: 0 / 1.023 GB, free: 12.6 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004043/0.5079, allocations: 382.4 kB / 1.023 GB, free: 12.17 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.5079, allocations: 3.938 kB / 1.023 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.392e-05/0.508, allocations: 15.98 kB / 1.023 GB, free: 12.15 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.428e-06/0.508, allocations: 4.031 kB / 1.023 GB, free: 12.14 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.285e-06/0.508, allocations: 0 / 1.023 GB, free: 12.14 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.996e-06/0.508, allocations: 3.938 kB / 1.023 GB, free: 12.14 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.508, allocations: 0 / 1.023 GB, free: 12.14 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002984/0.5083, allocations: 223.4 kB / 1.023 GB, free: 11.91 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.355e-05/0.5083, allocations: 81.02 kB / 1.024 GB, free: 11.81 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.717e-05/0.5084, allocations: 4 kB / 1.024 GB, free: 11.8 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.487e-05/0.5085, allocations: 7.922 kB / 1.024 GB, free: 11.8 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.79e-05/0.5085, allocations: 8 kB / 1.024 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.815e-06/0.5085, allocations: 4 kB / 1.024 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.015e-05/0.5086, allocations: 91.27 kB / 1.024 GB, free: 11.7 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5086, allocations: 0 / 1.024 GB, free: 11.7 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002726/0.5088, allocations: 20 kB / 1.024 GB, free: 11.68 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.0005647/0.5094, allocations: 0.7553 MB / 1.024 GB, free: 10.89 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003661/0.5098, allocations: 187.2 kB / 1.025 GB, free: 10.7 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.5098, allocations: 0 / 1.025 GB, free: 10.7 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001199/0.5099, allocations: 39.97 kB / 1.025 GB, free: 10.66 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002689/0.5102, allocations: 33.36 kB / 1.025 GB, free: 10.63 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001851/0.5121, allocations: 1.691 MB / 1.026 GB, free: 8.824 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000212/0.5123, allocations: 0.6885 MB / 1.027 GB, free: 8.109 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.362e-05/0.5123, allocations: 8 kB / 1.027 GB, free: 8.102 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.189e-05/0.5124, allocations: 23.42 kB / 1.027 GB, free: 8.078 MB / 0.7794 GB Notification: Performance of SimCode: time 2.21e-07/0.5124, allocations: 0 / 1.027 GB, free: 8.078 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01653/0.5289, allocations: 2.525 MB / 1.029 GB, free: 5.652 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.774/7.302, allocations: 7.922 kB / 1.029 GB, free: 5.645 MB / 0.7794 GB (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 & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler_res.csv","/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