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.006049/0.006049, allocations: 100.5 kB / 15.73 MB, free: 6.031 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.001661/0.001661, allocations: 186.6 kB / 16.67 MB, free: 5.965 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.406/1.406, allocations: 222.9 MB / 240.4 MB, free: 4.34 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.457/2.457, allocations: 390.3 MB / 0.6648 GB, free: 196 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001207/0.001207, allocations: 64.38 kB / 0.9504 GB, free: 5.938 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2776/0.2788, allocations: 140.4 MB / 1.087 GB, free: 2.004 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime): time 0.001863/0.2807, allocations: 0.7484 MB / 1.088 GB, free: 1.254 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.00127/0.282, allocations: 1.079 MB / 1.089 GB, free: 164 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.893e-05/0.2821, allocations: 0 / 1.089 GB, free: 164 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 3.138e-05/0.2821, allocations: 3.938 kB / 1.089 GB, free: 160 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 7.001e-05/0.2822, allocations: 15.84 kB / 1.089 GB, free: 144 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002938/0.2825, allocations: 50.28 kB / 1.089 GB, free: 96 kB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0001117/0.2827, allocations: 75.75 kB / 1.089 GB, free: 20 kB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001015/0.2828, allocations: 12.19 kB / 1.089 GB, free: 4 kB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 8.942e-05/0.2829, allocations: 31.94 kB / 1.089 GB, free: 15.97 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 5.658e-05/0.2829, allocations: 35.81 kB / 1.089 GB, free: 15.94 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.587e-05/0.283, allocations: 4 kB / 1.089 GB, free: 15.93 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 6.655e-05/0.283, allocations: 23.98 kB / 1.09 GB, free: 15.91 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.111e-05/0.2831, allocations: 15.92 kB / 1.09 GB, free: 15.89 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.231e-05/0.2831, allocations: 27.86 kB / 1.09 GB, free: 15.87 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001475/0.2833, allocations: 87.62 kB / 1.09 GB, free: 15.78 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.466e-06/0.2833, allocations: 0 / 1.09 GB, free: 15.78 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.052e-06/0.2833, allocations: 0 / 1.09 GB, free: 15.78 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 8.115e-06/0.2833, allocations: 0 / 1.09 GB, free: 15.78 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.0005198/0.2838, allocations: 386.9 kB / 1.09 GB, free: 15.36 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.611e-05/0.2839, allocations: 8.031 kB / 1.09 GB, free: 15.35 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.345e-05/0.2839, allocations: 34.75 kB / 1.09 GB, free: 15.31 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.309e-05/0.2839, allocations: 12.78 kB / 1.09 GB, free: 15.3 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001059/0.284, allocations: 180.2 kB / 1.09 GB, free: 15.08 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.297e-05/0.2841, allocations: 8.375 kB / 1.09 GB, free: 15.07 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.781e-05/0.2841, allocations: 8.359 kB / 1.09 GB, free: 15.07 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000196/0.2843, allocations: 69.92 kB / 1.09 GB, free: 14.99 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.744e-06/0.2843, allocations: 0 / 1.09 GB, free: 14.99 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.826e-06/0.2843, allocations: 4 kB / 1.09 GB, free: 14.99 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.597e-06/0.2843, allocations: 0 / 1.09 GB, free: 14.99 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001815/0.2845, allocations: 43.95 kB / 1.09 GB, free: 14.95 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006046/0.2851, allocations: 320.7 kB / 1.091 GB, free: 14.58 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001723/0.2853, allocations: 58.55 kB / 1.091 GB, free: 14.52 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001003/0.2854, allocations: 28.97 kB / 1.091 GB, free: 14.48 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.415e-05/0.2854, allocations: 0 / 1.091 GB, free: 14.48 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000221/0.2857, allocations: 75.38 kB / 1.091 GB, free: 14.4 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.523e-06/0.2857, allocations: 0 / 1.091 GB, free: 14.4 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0004315/0.2861, allocations: 145.5 kB / 1.091 GB, free: 14.25 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.849e-05/0.2862, allocations: 51.41 kB / 1.091 GB, free: 14.19 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.319e-05/0.2863, allocations: 129.7 kB / 1.091 GB, free: 14.05 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.788e-05/0.2863, allocations: 25.7 kB / 1.091 GB, free: 14.02 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.809e-05/0.2864, allocations: 92.14 kB / 1.091 GB, free: 13.93 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.001e-05/0.2864, allocations: 15.75 kB / 1.091 GB, free: 13.91 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.263e-05/0.2864, allocations: 33.64 kB / 1.091 GB, free: 13.87 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 9.867e-05/0.2865, allocations: 330.8 kB / 1.092 GB, free: 13.54 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001128/0.2867, allocations: 27.97 kB / 1.092 GB, free: 13.51 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001309/0.2868, allocations: 69.98 kB / 1.092 GB, free: 13.42 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000237/0.287, allocations: 105.9 kB / 1.092 GB, free: 13.3 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.2871, allocations: 8 kB / 1.092 GB, free: 13.29 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003197/0.2874, allocations: 133.4 kB / 1.092 GB, free: 13.15 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.502e-05/0.2874, allocations: 8 kB / 1.092 GB, free: 13.14 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-06/0.2874, allocations: 0 / 1.092 GB, free: 13.14 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.521e-05/0.2874, allocations: 4 kB / 1.092 GB, free: 13.14 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000129/0.2876, allocations: 24.14 kB / 1.092 GB, free: 13.12 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.512e-06/0.2876, allocations: 0 / 1.092 GB, free: 13.12 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001041/0.2877, allocations: 15.98 kB / 1.092 GB, free: 13.1 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.327e-05/0.2877, allocations: 4 kB / 1.092 GB, free: 13.1 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 9.171e-05/0.2878, allocations: 125.1 kB / 1.092 GB, free: 12.97 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.56e-05/0.2878, allocations: 11.84 kB / 1.092 GB, free: 12.96 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.63e-05/0.2879, allocations: 12.36 kB / 1.092 GB, free: 12.95 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.637e-06/0.2879, allocations: 4 kB / 1.092 GB, free: 12.94 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.499e-06/0.2879, allocations: 0 / 1.092 GB, free: 12.94 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.795e-06/0.2879, allocations: 4 kB / 1.092 GB, free: 12.94 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004591/0.2884, allocations: 374.3 kB / 1.093 GB, free: 12.52 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.2884, allocations: 0 / 1.093 GB, free: 12.52 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.635e-05/0.2884, allocations: 11.94 kB / 1.093 GB, free: 12.5 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.735e-06/0.2884, allocations: 0 / 1.093 GB, free: 12.5 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.638e-06/0.2885, allocations: 3.984 kB / 1.093 GB, free: 12.5 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.306e-06/0.2885, allocations: 3.938 kB / 1.093 GB, free: 12.5 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.2885, allocations: 8 kB / 1.093 GB, free: 12.49 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002786/0.2888, allocations: 187.5 kB / 1.093 GB, free: 12.29 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.916e-05/0.2888, allocations: 85 kB / 1.093 GB, free: 12.19 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.822e-05/0.2888, allocations: 8 kB / 1.093 GB, free: 12.18 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.457e-05/0.2889, allocations: 11.88 kB / 1.093 GB, free: 12.17 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.804e-05/0.289, allocations: 7.969 kB / 1.093 GB, free: 12.16 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.095e-06/0.289, allocations: 8 kB / 1.093 GB, free: 12.15 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.6e-05/0.289, allocations: 91.27 kB / 1.093 GB, free: 12.06 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.553e-06/0.289, allocations: 0 / 1.093 GB, free: 12.06 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002658/0.2893, allocations: 19.94 kB / 1.093 GB, free: 12.04 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.0005713/0.2899, allocations: 0.7441 MB / 1.094 GB, free: 11.27 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.000271/0.2902, allocations: 75.88 kB / 1.094 GB, free: 11.2 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.2902, allocations: 0 / 1.094 GB, free: 11.2 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.000116/0.2903, allocations: 35.91 kB / 1.094 GB, free: 11.16 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002756/0.2906, allocations: 17.8 kB / 1.094 GB, free: 11.15 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001713/0.2923, allocations: 1.524 MB / 1.095 GB, free: 9.512 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002242/0.2925, allocations: 0.6924 MB / 1.096 GB, free: 8.793 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.933e-05/0.2926, allocations: 7.984 kB / 1.096 GB, free: 8.785 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.739e-05/0.2926, allocations: 19.44 kB / 1.096 GB, free: 8.766 MB / 0.8575 GB Notification: Performance of SimCode: time 3.9e-07/0.2927, allocations: 0 / 1.096 GB, free: 8.766 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01723/0.3099, allocations: 2.126 MB / 1.098 GB, free: 6.82 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.741/8.051, allocations: 8.438 kB / 1.098 GB, free: 6.812 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