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.00482/0.00482, allocations: 98.97 kB / 15.73 MB, free: 6.004 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.001163/0.001163, allocations: 193.1 kB / 16.67 MB, free: 5.93 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.307/1.307, allocations: 222.9 MB / 240.4 MB, free: 15.09 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.407/2.407, allocations: 437 MB / 0.7105 GB, free: 4.43 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001306/0.001306, allocations: 60.12 kB / 1.018 GB, free: 9.949 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6836/0.6849, allocations: 151.6 MB / 1.166 GB, free: 3.809 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler): time 0.001851/0.6868, allocations: 0.7527 MB / 1.167 GB, free: 3.055 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001388/0.6882, allocations: 1.166 MB / 1.168 GB, free: 1.875 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.562e-05/0.6883, allocations: 4 kB / 1.168 GB, free: 1.871 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 3.296e-05/0.6884, allocations: 7.922 kB / 1.168 GB, free: 1.863 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 7.266e-05/0.6884, allocations: 7.875 kB / 1.168 GB, free: 1.855 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004927/0.6889, allocations: 142.5 kB / 1.168 GB, free: 1.719 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0001719/0.6891, allocations: 131.8 kB / 1.168 GB, free: 1.59 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 9.729e-05/0.6892, allocations: 16.19 kB / 1.168 GB, free: 1.57 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 9.559e-05/0.6893, allocations: 55.78 kB / 1.168 GB, free: 1.516 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 9.451e-05/0.6894, allocations: 51.86 kB / 1.168 GB, free: 1.465 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 3.009e-05/0.6895, allocations: 12 kB / 1.168 GB, free: 1.453 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 7.481e-05/0.6895, allocations: 27.98 kB / 1.168 GB, free: 1.426 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 2.244e-05/0.6896, allocations: 11.92 kB / 1.168 GB, free: 1.414 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 6.92e-05/0.6896, allocations: 47.84 kB / 1.169 GB, free: 1.367 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001882/0.6898, allocations: 123.2 kB / 1.169 GB, free: 1.25 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 2.565e-06/0.6898, allocations: 0 / 1.169 GB, free: 1.25 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.012e-06/0.6899, allocations: 4 kB / 1.169 GB, free: 1.246 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 5.019e-06/0.6899, allocations: 0 / 1.169 GB, free: 1.246 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.0005519/0.6904, allocations: 424.8 kB / 1.169 GB, free: 0.7773 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.534e-05/0.6905, allocations: 12.92 kB / 1.169 GB, free: 0.7656 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.534e-05/0.6905, allocations: 34.75 kB / 1.169 GB, free: 0.7227 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.455e-05/0.6906, allocations: 12.89 kB / 1.169 GB, free: 0.7109 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001133/0.6907, allocations: 176.2 kB / 1.169 GB, free: 0.5 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.302e-05/0.6907, allocations: 384 / 1.169 GB, free: 0.5 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.145e-05/0.6907, allocations: 12.31 kB / 1.169 GB, free: 500 kB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001999/0.6909, allocations: 77.97 kB / 1.169 GB, free: 416 kB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.945e-06/0.6909, allocations: 0 / 1.169 GB, free: 416 kB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.809e-06/0.691, allocations: 4 kB / 1.169 GB, free: 412 kB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.228e-06/0.691, allocations: 0 / 1.169 GB, free: 412 kB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001913/0.6912, allocations: 51.89 kB / 1.169 GB, free: 360 kB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005066/0.6917, allocations: 344.7 kB / 1.17 GB, free: 15.96 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001813/0.6919, allocations: 66.52 kB / 1.17 GB, free: 15.89 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001019/0.692, allocations: 28.97 kB / 1.17 GB, free: 15.86 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 2.016e-05/0.692, allocations: 0 / 1.17 GB, free: 15.86 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002315/0.6923, allocations: 95.3 kB / 1.17 GB, free: 15.75 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=8): time 1.683e-06/0.6923, allocations: 0 / 1.17 GB, free: 15.75 MB / 0.9044 GB Notification: Performance of matching and sorting (n=8): time 0.000456/0.6927, allocations: 149.8 kB / 1.17 GB, free: 15.6 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.26e-05/0.6928, allocations: 55.41 kB / 1.17 GB, free: 15.54 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.638e-05/0.6929, allocations: 121.8 kB / 1.17 GB, free: 15.41 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.344e-05/0.6929, allocations: 29.7 kB / 1.17 GB, free: 15.37 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 5.715e-05/0.693, allocations: 96.06 kB / 1.17 GB, free: 15.27 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 2.481e-05/0.693, allocations: 19.84 kB / 1.17 GB, free: 15.25 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.412e-05/0.6931, allocations: 45.62 kB / 1.17 GB, free: 15.2 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001164/0.6932, allocations: 326.8 kB / 1.171 GB, free: 14.88 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001597/0.6934, allocations: 51.95 kB / 1.171 GB, free: 14.82 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001719/0.6936, allocations: 90.86 kB / 1.171 GB, free: 14.72 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002874/0.6939, allocations: 146.8 kB / 1.171 GB, free: 14.55 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.328e-06/0.6939, allocations: 0 / 1.171 GB, free: 14.55 MB / 0.9044 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004588/0.6943, allocations: 223.1 kB / 1.171 GB, free: 14.32 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 4.036e-05/0.6944, allocations: 44.19 kB / 1.171 GB, free: 14.27 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.272e-06/0.6944, allocations: 80 / 1.171 GB, free: 14.27 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.427e-05/0.6944, allocations: 4 kB / 1.171 GB, free: 14.27 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001284/0.6945, allocations: 11.98 kB / 1.171 GB, free: 14.26 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.668e-05/0.6946, allocations: 7.984 kB / 1.171 GB, free: 14.25 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002113/0.6948, allocations: 36.06 kB / 1.171 GB, free: 14.21 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.667e-05/0.6948, 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 9.909e-05/0.6949, allocations: 121.8 kB / 1.171 GB, free: 14.07 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.787e-05/0.695, allocations: 7.953 kB / 1.171 GB, free: 14.06 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003103/0.6953, allocations: 122 kB / 1.172 GB, free: 13.94 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.826e-06/0.6953, allocations: 0 / 1.172 GB, free: 13.94 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.187e-06/0.6953, allocations: 3.938 kB / 1.172 GB, free: 13.93 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.6953, allocations: 4 kB / 1.172 GB, free: 13.93 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004325/0.6957, allocations: 382.4 kB / 1.172 GB, free: 13.5 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.6958, allocations: 3.984 kB / 1.172 GB, free: 13.5 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.044e-05/0.6958, allocations: 8 kB / 1.172 GB, free: 13.49 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.395e-06/0.6958, allocations: 0 / 1.172 GB, free: 13.49 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.147e-05/0.6958, allocations: 7.984 kB / 1.172 GB, free: 13.48 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.516e-06/0.6959, allocations: 3.938 kB / 1.172 GB, free: 13.48 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.6959, allocations: 8 kB / 1.172 GB, free: 13.47 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002977/0.6962, allocations: 207.4 kB / 1.172 GB, free: 13.25 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 3.721e-05/0.6962, allocations: 81.06 kB / 1.172 GB, free: 13.15 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.647e-05/0.6962, allocations: 4 kB / 1.172 GB, free: 13.15 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.089e-05/0.6963, allocations: 15.92 kB / 1.172 GB, free: 13.13 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.326e-05/0.6964, allocations: 0 / 1.172 GB, free: 13.13 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.847e-06/0.6964, allocations: 15.92 kB / 1.172 GB, free: 13.12 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 5.336e-05/0.6964, allocations: 87.28 kB / 1.172 GB, free: 13.03 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6965, allocations: 0 / 1.172 GB, free: 13.03 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002755/0.6967, allocations: 31.98 kB / 1.172 GB, free: 13 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.0005816/0.6973, allocations: 0.7475 MB / 1.173 GB, free: 12.23 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.000374/0.6977, allocations: 179.2 kB / 1.173 GB, free: 12.04 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/0.6977, allocations: 4 kB / 1.173 GB, free: 12.04 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0001219/0.6979, allocations: 39.97 kB / 1.173 GB, free: 12 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002782/0.6981, allocations: 20.23 kB / 1.173 GB, free: 11.98 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001924/0.7001, allocations: 1.704 MB / 1.175 GB, free: 10.16 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002177/0.7003, allocations: 0.6885 MB / 1.176 GB, free: 9.441 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 3.389e-05/0.7003, allocations: 8 kB / 1.176 GB, free: 9.434 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.25e-05/0.7004, allocations: 23.42 kB / 1.176 GB, free: 9.41 MB / 0.9044 GB Notification: Performance of SimCode: time 2.41e-07/0.7004, allocations: 0 / 1.176 GB, free: 9.41 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01774/0.7181, allocations: 2.566 MB / 1.178 GB, free: 6.965 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.431/8.15, allocations: 19.33 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