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.008427/0.008427, allocations: 98.73 kB / 15.73 MB, free: 6.055 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.0021/0.0021, allocations: 196.3 kB / 16.68 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.405/2.405, allocations: 222.9 MB / 240.4 MB, free: 15.14 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 4.722/4.722, allocations: 437 MB / 0.7105 GB, free: 4.379 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.00337/0.003369, allocations: 67.89 kB / 1.018 GB, free: 9.934 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.247/1.251, allocations: 151.6 MB / 1.166 GB, free: 3.812 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler): time 0.003035/1.254, allocations: 0.758 MB / 1.167 GB, free: 3.051 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.002657/1.256, allocations: 1.166 MB / 1.168 GB, free: 1.871 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.256e-05/1.256, allocations: 0 / 1.168 GB, free: 1.871 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 4.369e-05/1.257, allocations: 3.938 kB / 1.168 GB, free: 1.867 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0001104/1.257, allocations: 19.8 kB / 1.168 GB, free: 1.848 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007748/1.257, allocations: 138.9 kB / 1.168 GB, free: 1.715 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0002876/1.258, allocations: 127.8 kB / 1.168 GB, free: 1.59 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001522/1.258, allocations: 24.17 kB / 1.168 GB, free: 1.562 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001349/1.258, allocations: 47.84 kB / 1.168 GB, free: 1.516 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001496/1.258, allocations: 51.86 kB / 1.168 GB, free: 1.465 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 5.003e-05/1.258, allocations: 16 kB / 1.168 GB, free: 1.449 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001056/1.258, allocations: 27.92 kB / 1.168 GB, free: 1.422 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 4.513e-05/1.258, allocations: 15.92 kB / 1.168 GB, free: 1.406 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 9.875e-05/1.259, allocations: 43.84 kB / 1.169 GB, free: 1.363 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0003017/1.259, allocations: 122.3 kB / 1.169 GB, free: 1.246 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 8.336e-06/1.259, allocations: 4 kB / 1.169 GB, free: 1.242 MB / 0.8887 GB Notification: Performance of FrontEnd: time 2.034e-06/1.259, allocations: 0 / 1.169 GB, free: 1.242 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 1.219e-05/1.259, allocations: 0 / 1.169 GB, free: 1.242 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.0009483/1.26, allocations: 425.8 kB / 1.169 GB, free: 0.7734 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 5.912e-05/1.26, allocations: 8.922 kB / 1.169 GB, free: 0.7656 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.087e-05/1.26, allocations: 42.73 kB / 1.169 GB, free: 0.7148 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.797e-05/1.26, allocations: 8.891 kB / 1.169 GB, free: 0.707 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002016/1.26, allocations: 172.3 kB / 1.169 GB, free: 0.5 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.895e-05/1.26, allocations: 8.375 kB / 1.169 GB, free: 0.4922 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.183e-05/1.26, allocations: 12.36 kB / 1.169 GB, free: 492 kB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000313/1.261, allocations: 73.97 kB / 1.169 GB, free: 412 kB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.161e-05/1.261, allocations: 0 / 1.169 GB, free: 412 kB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.389e-05/1.261, allocations: 4 kB / 1.169 GB, free: 408 kB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.232e-06/1.261, allocations: 4 kB / 1.169 GB, free: 404 kB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003108/1.261, allocations: 47.89 kB / 1.169 GB, free: 356 kB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000803/1.262, allocations: 340.7 kB / 1.17 GB, free: 15.96 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002923/1.262, allocations: 70.56 kB / 1.17 GB, free: 15.89 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01632/1.279, allocations: 28.97 kB / 1.17 GB, free: 15.86 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 4.634e-05/1.279, allocations: 0 / 1.17 GB, free: 15.86 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005267/1.279, allocations: 95.3 kB / 1.17 GB, free: 15.75 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=8): time 2.766e-06/1.279, allocations: 0 / 1.17 GB, free: 15.75 MB / 0.9044 GB Notification: Performance of matching and sorting (n=8): time 0.0008317/1.28, allocations: 145.6 kB / 1.17 GB, free: 15.6 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.061e-05/1.28, allocations: 59.34 kB / 1.17 GB, free: 15.53 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001731/1.28, allocations: 117.8 kB / 1.17 GB, free: 15.41 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 5.448e-05/1.28, allocations: 33.7 kB / 1.17 GB, free: 15.37 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001027/1.281, allocations: 100 kB / 1.17 GB, free: 15.27 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 4.762e-05/1.281, allocations: 23.84 kB / 1.17 GB, free: 15.24 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001368/1.281, allocations: 41.64 kB / 1.17 GB, free: 15.2 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.000221/1.281, allocations: 326.8 kB / 1.171 GB, free: 14.87 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000226/1.281, allocations: 51.95 kB / 1.171 GB, free: 14.82 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000254/1.282, allocations: 89.11 kB / 1.171 GB, free: 14.71 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004144/1.282, allocations: 146.8 kB / 1.171 GB, free: 14.54 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/1.282, allocations: 0 / 1.171 GB, free: 14.54 MB / 0.9044 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0007274/1.283, allocations: 215.1 kB / 1.171 GB, free: 14.32 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 7.883e-05/1.283, allocations: 37.69 kB / 1.171 GB, free: 14.28 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.716e-06/1.283, allocations: 0 / 1.171 GB, free: 14.28 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.253e-05/1.283, allocations: 4 kB / 1.171 GB, free: 14.27 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000166/1.283, allocations: 23.92 kB / 1.171 GB, free: 14.25 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.005e-06/1.283, allocations: 0 / 1.171 GB, free: 14.25 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003153/1.283, allocations: 36.06 kB / 1.171 GB, free: 14.21 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.335e-05/1.283, allocations: 15.92 kB / 1.171 GB, free: 14.2 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 0.0001698/1.284, allocations: 128 kB / 1.171 GB, free: 14.07 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.551e-05/1.284, allocations: 7.953 kB / 1.171 GB, free: 14.06 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004701/1.284, allocations: 122 kB / 1.172 GB, free: 13.93 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.969e-06/1.284, allocations: 0 / 1.172 GB, free: 13.93 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.59e-06/1.284, allocations: 4 kB / 1.172 GB, free: 13.93 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/1.284, allocations: 4 kB / 1.172 GB, free: 13.93 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007276/1.285, allocations: 382.8 kB / 1.172 GB, free: 13.5 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/1.285, allocations: 0 / 1.172 GB, free: 13.5 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.437e-05/1.285, allocations: 11.98 kB / 1.172 GB, free: 13.48 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.763e-06/1.285, allocations: 4 kB / 1.172 GB, free: 13.48 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.204e-05/1.285, allocations: 0 / 1.172 GB, free: 13.48 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.56e-06/1.285, allocations: 3.938 kB / 1.172 GB, free: 13.48 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.325e-06/1.285, allocations: 4 kB / 1.172 GB, free: 13.47 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004683/1.286, allocations: 207.5 kB / 1.172 GB, free: 13.25 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 7.144e-05/1.286, allocations: 85.06 kB / 1.172 GB, free: 13.15 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.252e-05/1.286, allocations: 0 / 1.172 GB, free: 13.15 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001337/1.286, allocations: 11.92 kB / 1.172 GB, free: 13.14 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.098e-05/1.286, allocations: 11.94 kB / 1.172 GB, free: 13.13 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.375e-05/1.286, allocations: 8 kB / 1.172 GB, free: 13.12 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 9.312e-05/1.286, allocations: 95.2 kB / 1.172 GB, free: 13.03 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.8e-07/1.286, allocations: 0 / 1.172 GB, free: 13.03 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0004558/1.287, allocations: 20 kB / 1.172 GB, free: 13.01 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.0009475/1.287, allocations: 0.7631 MB / 1.173 GB, free: 12.22 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.000595/1.288, allocations: 175.3 kB / 1.173 GB, free: 12.04 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 6.131e-06/1.288, allocations: 0 / 1.173 GB, free: 12.04 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0001821/1.288, allocations: 43.91 kB / 1.173 GB, free: 11.99 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004609/1.289, allocations: 26.89 kB / 1.173 GB, free: 11.97 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003345/1.292, allocations: 1.701 MB / 1.175 GB, free: 10.15 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004454/1.293, allocations: 0.6924 MB / 1.176 GB, free: 9.434 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 5.449e-05/1.293, allocations: 8 kB / 1.176 GB, free: 9.426 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.194e-05/1.293, allocations: 23.42 kB / 1.176 GB, free: 9.402 MB / 0.9044 GB Notification: Performance of SimCode: time 8.51e-07/1.293, allocations: 0 / 1.176 GB, free: 9.402 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1179/1.411, allocations: 2.565 MB / 1.178 GB, free: 6.961 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.69/18.1, allocations: 12.38 kB / 1.178 GB, free: 6.953 MB / 0.9044 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