Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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.Logical.Sources.Validation.SampleTriggerPositiveStartTime,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime",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.008372/0.008372, allocations: 97.64 kB / 15.73 MB, free: 5.988 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.001931/0.001931, allocations: 191.8 kB / 16.67 MB, free: 5.918 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.482/1.482, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.458/2.458, allocations: 390.2 MB / 0.6648 GB, free: 208 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001288/0.001288, allocations: 64.39 kB / 0.9504 GB, free: 5.871 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2717/0.273, allocations: 140.4 MB / 1.087 GB, free: 1.965 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime): time 0.002176/0.2752, allocations: 0.76 MB / 1.088 GB, free: 1.203 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001324/0.2766, allocations: 1.071 MB / 1.089 GB, free: 120 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.288e-05/0.2766, allocations: 4 kB / 1.089 GB, free: 116 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 3.059e-05/0.2767, allocations: 7.922 kB / 1.089 GB, free: 108 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 8.29e-05/0.2768, allocations: 11.86 kB / 1.089 GB, free: 96 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003218/0.2771, allocations: 51.83 kB / 1.089 GB, free: 44 kB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0001298/0.2772, allocations: 75.91 kB / 1.089 GB, free: 15.96 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001151/0.2774, allocations: 12.19 kB / 1.089 GB, free: 15.95 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 8.938e-05/0.2775, allocations: 35.75 kB / 1.089 GB, free: 15.92 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 6.761e-05/0.2775, allocations: 27.92 kB / 1.089 GB, free: 15.89 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.142e-05/0.2776, allocations: 4 kB / 1.09 GB, free: 15.89 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 7.85e-05/0.2777, allocations: 23.92 kB / 1.09 GB, free: 15.86 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.907e-05/0.2777, allocations: 19.92 kB / 1.09 GB, free: 15.84 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.978e-05/0.2777, allocations: 31.84 kB / 1.09 GB, free: 15.81 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001897/0.2779, allocations: 83.91 kB / 1.09 GB, free: 15.73 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.278, allocations: 4 kB / 1.09 GB, free: 15.73 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.104e-06/0.278, allocations: 0 / 1.09 GB, free: 15.73 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.951e-06/0.278, allocations: 0 / 1.09 GB, free: 15.73 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0005774/0.2786, allocations: 379.2 kB / 1.09 GB, free: 15.31 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.729e-05/0.2786, allocations: 12.03 kB / 1.09 GB, free: 15.3 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.251e-05/0.2787, allocations: 34.75 kB / 1.09 GB, free: 15.25 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.254e-05/0.2787, allocations: 8.891 kB / 1.09 GB, free: 15.25 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001215/0.2788, allocations: 180.2 kB / 1.09 GB, free: 15.03 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.794e-05/0.2789, allocations: 8.375 kB / 1.09 GB, free: 15.02 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.737e-05/0.2789, allocations: 8.375 kB / 1.09 GB, free: 15.02 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001964/0.2791, allocations: 65.97 kB / 1.09 GB, free: 14.95 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.296e-06/0.2791, allocations: 0 / 1.09 GB, free: 14.95 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.057e-05/0.2791, allocations: 4 kB / 1.09 GB, free: 14.94 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.689e-06/0.2791, allocations: 3.938 kB / 1.09 GB, free: 14.94 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001864/0.2793, allocations: 43.91 kB / 1.09 GB, free: 14.89 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006341/0.28, allocations: 328.7 kB / 1.091 GB, free: 14.52 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001626/0.2801, allocations: 54.55 kB / 1.091 GB, free: 14.46 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001217/0.2803, allocations: 32.97 kB / 1.091 GB, free: 14.43 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.591e-05/0.2803, allocations: 4.031 kB / 1.091 GB, free: 14.42 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002213/0.2805, allocations: 83.36 kB / 1.091 GB, free: 14.33 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.633e-06/0.2805, allocations: 0 / 1.091 GB, free: 14.33 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0004198/0.281, allocations: 129.6 kB / 1.091 GB, free: 14.2 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.572e-05/0.281, allocations: 51.41 kB / 1.091 GB, free: 14.13 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.163e-05/0.2811, allocations: 121.8 kB / 1.091 GB, free: 14 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.426e-05/0.2812, allocations: 29.7 kB / 1.091 GB, free: 13.97 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.393e-05/0.2812, allocations: 92.09 kB / 1.091 GB, free: 13.88 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.293e-05/0.2812, allocations: 23.83 kB / 1.091 GB, free: 13.85 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.308e-05/0.2813, allocations: 33.64 kB / 1.091 GB, free: 13.81 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001015/0.2814, allocations: 318.8 kB / 1.092 GB, free: 13.49 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001061/0.2815, allocations: 27.97 kB / 1.092 GB, free: 13.46 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001274/0.2817, allocations: 73.98 kB / 1.092 GB, free: 13.37 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000242/0.2819, allocations: 109.9 kB / 1.092 GB, free: 13.24 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.2819, allocations: 0 / 1.092 GB, free: 13.24 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003097/0.2822, allocations: 137.6 kB / 1.092 GB, free: 13.1 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.6e-05/0.2823, allocations: 4 kB / 1.092 GB, free: 13.1 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.093e-06/0.2823, allocations: 4 kB / 1.092 GB, free: 13.09 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.255e-05/0.2823, allocations: 0 / 1.092 GB, free: 13.09 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001233/0.2824, allocations: 23.97 kB / 1.092 GB, free: 13.07 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.963e-06/0.2824, allocations: 3.938 kB / 1.092 GB, free: 13.07 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.557e-05/0.2825, allocations: 11.94 kB / 1.092 GB, free: 13.05 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.825e-05/0.2826, allocations: 8 kB / 1.092 GB, free: 13.05 MB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 8 (triggeredSampler1.y,$PRE.triggeredSampler1.y,triggeredSampler.y,$PRE.triggeredSampler.y,samTri.y,$whenCondition1,samTri1.y,$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): 11 * Array equations: 0 * Algorithm blocks: 0 * 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.56e-05/0.2826, allocations: 131.5 kB / 1.092 GB, free: 12.91 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.579e-05/0.2827, allocations: 7.953 kB / 1.092 GB, free: 12.9 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.622e-05/0.2827, allocations: 8.375 kB / 1.092 GB, free: 12.89 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.2827, allocations: 0 / 1.092 GB, free: 12.89 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.399e-06/0.2827, allocations: 0 / 1.092 GB, free: 12.89 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.2827, allocations: 4 kB / 1.092 GB, free: 12.89 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004484/0.2832, allocations: 374.4 kB / 1.093 GB, free: 12.47 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.853e-06/0.2832, allocations: 0 / 1.093 GB, free: 12.47 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.964e-05/0.2833, allocations: 15.98 kB / 1.093 GB, free: 12.45 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.435e-06/0.2833, allocations: 0 / 1.093 GB, free: 12.45 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.065e-06/0.2833, allocations: 0 / 1.093 GB, free: 12.45 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.186e-06/0.2833, allocations: 3.938 kB / 1.093 GB, free: 12.45 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.624e-06/0.2833, allocations: 0 / 1.093 GB, free: 12.45 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000286/0.2836, allocations: 207.4 kB / 1.093 GB, free: 12.23 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.549e-05/0.2836, allocations: 85.06 kB / 1.093 GB, free: 12.13 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.046e-05/0.2837, allocations: 4 kB / 1.093 GB, free: 12.12 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.5e-05/0.2837, allocations: 15.86 kB / 1.093 GB, free: 12.11 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.797e-05/0.2838, allocations: 4 kB / 1.093 GB, free: 12.11 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.221e-05/0.2838, allocations: 8 kB / 1.093 GB, free: 12.1 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.842e-05/0.2839, allocations: 91.27 kB / 1.093 GB, free: 12.01 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.9e-07/0.2839, allocations: 0 / 1.093 GB, free: 12.01 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002632/0.2841, allocations: 19.94 kB / 1.093 GB, free: 11.99 MB / 0.8575 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 (samTri1.y,samTri.y,$whenCondition2,$whenCondition1,triggeredSampler.y,triggeredSampler1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.000581/0.2847, allocations: 0.7455 MB / 1.094 GB, free: 11.22 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002736/0.285, allocations: 76.27 kB / 1.094 GB, free: 11.14 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.285, allocations: 4.062 kB / 1.094 GB, free: 11.14 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001143/0.2851, allocations: 40.02 kB / 1.094 GB, free: 11.1 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002655/0.2854, allocations: 11.94 kB / 1.094 GB, free: 11.09 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001616/0.287, allocations: 1.522 MB / 1.095 GB, free: 9.453 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002208/0.2873, allocations: 0.6885 MB / 1.096 GB, free: 8.738 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.85e-05/0.2873, allocations: 4 kB / 1.096 GB, free: 8.734 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.151e-05/0.2874, allocations: 23.42 kB / 1.096 GB, free: 8.711 MB / 0.8575 GB Notification: Performance of SimCode: time 2.11e-07/0.2874, allocations: 0 / 1.096 GB, free: 8.711 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01861/0.306, allocations: 2.115 MB / 1.098 GB, free: 6.773 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.608/7.914, allocations: 18.48 kB / 1.098 GB, free: 6.758 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.csv --start-time 1 --stop-time 6 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Buildings_9_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches