Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_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_latest_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.001172/0.001172, allocations: 108 kB / 15.61 MB, free: 152 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.001448/0.001448, allocations: 195.7 kB / 16.53 MB, free: 6.664 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.289/1.289, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.73/2.73, allocations: 469.4 MB / 0.742 GB, free: 7.75 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001391/0.001391, allocations: 63.97 kB / 0.9083 GB, free: 34.51 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2702/0.2716, allocations: 159.1 MB / 1.064 GB, free: 14.55 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime): time 0.002046/0.2737, allocations: 0.759 MB / 1.064 GB, free: 13.79 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001214/0.2749, allocations: 1.074 MB / 1.065 GB, free: 12.7 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.247e-05/0.275, allocations: 4 kB / 1.065 GB, free: 12.7 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.839e-05/0.275, allocations: 11.81 kB / 1.066 GB, free: 12.68 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 7.368e-05/0.2751, allocations: 15.86 kB / 1.066 GB, free: 12.67 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003088/0.2754, allocations: 47.89 kB / 1.066 GB, free: 12.62 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 9.462e-05/0.2755, allocations: 71.78 kB / 1.066 GB, free: 12.55 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001093/0.2757, allocations: 20.17 kB / 1.066 GB, free: 12.53 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 7.241e-05/0.2757, allocations: 31.84 kB / 1.066 GB, free: 12.5 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 6.09e-05/0.2758, allocations: 31.91 kB / 1.066 GB, free: 12.46 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.706e-05/0.2758, allocations: 4 kB / 1.066 GB, free: 12.46 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 6.292e-05/0.2759, allocations: 19.92 kB / 1.066 GB, free: 12.44 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.147e-05/0.2759, allocations: 23.97 kB / 1.066 GB, free: 12.42 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 4.008e-05/0.276, allocations: 23.88 kB / 1.066 GB, free: 12.39 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001327/0.2761, allocations: 79.73 kB / 1.066 GB, free: 12.32 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.2761, allocations: 0 / 1.066 GB, free: 12.32 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.483e-06/0.2761, allocations: 0 / 1.066 GB, free: 12.32 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.401e-06/0.2761, allocations: 0 / 1.066 GB, free: 12.32 MB / 0.8262 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.0004866/0.2766, allocations: 379.5 kB / 1.066 GB, free: 11.9 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.407e-05/0.2767, allocations: 8.031 kB / 1.066 GB, free: 11.89 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.548e-05/0.2767, allocations: 42.73 kB / 1.066 GB, free: 11.84 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.848e-05/0.2768, allocations: 16.78 kB / 1.066 GB, free: 11.82 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001099/0.2769, allocations: 176.2 kB / 1.066 GB, free: 11.61 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.788e-06/0.2769, allocations: 4.375 kB / 1.066 GB, free: 11.61 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.468e-05/0.2769, allocations: 4.375 kB / 1.066 GB, free: 11.61 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001859/0.2771, allocations: 69.97 kB / 1.067 GB, free: 11.53 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.263e-06/0.2771, allocations: 0 / 1.067 GB, free: 11.53 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.678e-06/0.2771, allocations: 4 kB / 1.067 GB, free: 11.53 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.46e-06/0.2771, allocations: 4 kB / 1.067 GB, free: 11.52 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001725/0.2773, allocations: 47.89 kB / 1.067 GB, free: 11.48 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005988/0.2779, allocations: 316.8 kB / 1.067 GB, free: 11.12 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001597/0.2781, allocations: 54.59 kB / 1.067 GB, free: 11.05 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.776e-05/0.2782, allocations: 36.95 kB / 1.067 GB, free: 11.02 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.895e-05/0.2782, allocations: 0 / 1.067 GB, free: 11.02 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002015/0.2784, allocations: 79.36 kB / 1.067 GB, free: 10.93 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 1.432e-06/0.2784, allocations: 0 / 1.067 GB, free: 10.93 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.000401/0.2788, allocations: 133.5 kB / 1.067 GB, free: 10.79 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.798e-05/0.2789, allocations: 55.34 kB / 1.067 GB, free: 10.72 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.366e-05/0.279, allocations: 121.8 kB / 1.067 GB, free: 10.59 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.904e-05/0.279, allocations: 33.64 kB / 1.067 GB, free: 10.55 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 4.833e-05/0.2791, allocations: 92.12 kB / 1.067 GB, free: 10.46 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.24e-05/0.2791, allocations: 19.73 kB / 1.067 GB, free: 10.44 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.21e-05/0.2792, allocations: 29.7 kB / 1.068 GB, free: 10.41 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001203/0.2793, allocations: 322.8 kB / 1.068 GB, free: 10.08 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001103/0.2794, allocations: 27.98 kB / 1.068 GB, free: 10.05 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001403/0.2795, allocations: 82.3 kB / 1.068 GB, free: 9.953 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000229/0.2798, allocations: 113.8 kB / 1.068 GB, free: 9.82 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.2798, allocations: 0 / 1.068 GB, free: 9.82 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003113/0.2801, allocations: 133.4 kB / 1.068 GB, free: 9.684 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.469e-05/0.2801, allocations: 4 kB / 1.068 GB, free: 9.68 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.553e-06/0.2801, allocations: 4 kB / 1.068 GB, free: 9.676 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.232e-05/0.2802, allocations: 0 / 1.068 GB, free: 9.676 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000121/0.2803, allocations: 15.98 kB / 1.068 GB, free: 9.66 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.676e-06/0.2803, allocations: 7.938 kB / 1.068 GB, free: 9.652 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.296e-05/0.2804, allocations: 16.2 kB / 1.068 GB, free: 9.637 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.314e-05/0.2804, allocations: 4 kB / 1.068 GB, free: 9.633 MB / 0.8262 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.59e-05/0.2805, allocations: 127.3 kB / 1.068 GB, free: 9.5 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.351e-05/0.2805, allocations: 3.906 kB / 1.068 GB, free: 9.496 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.588e-05/0.2806, allocations: 12.38 kB / 1.068 GB, free: 9.484 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.894e-06/0.2806, allocations: 0 / 1.068 GB, free: 9.484 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.66e-06/0.2806, allocations: 3.984 kB / 1.068 GB, free: 9.48 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.165e-06/0.2806, allocations: 0 / 1.068 GB, free: 9.48 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004292/0.281, allocations: 378.3 kB / 1.069 GB, free: 9.055 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.582e-06/0.281, allocations: 0 / 1.069 GB, free: 9.055 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.271e-05/0.2811, allocations: 7.984 kB / 1.069 GB, free: 9.047 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.993e-06/0.2811, allocations: 4 kB / 1.069 GB, free: 9.043 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.348e-06/0.2811, allocations: 4 kB / 1.069 GB, free: 9.039 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.805e-06/0.2811, allocations: 3.938 kB / 1.069 GB, free: 9.035 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.2811, allocations: 0 / 1.069 GB, free: 9.035 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002636/0.2814, allocations: 207.8 kB / 1.069 GB, free: 8.816 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.454e-05/0.2814, allocations: 85.02 kB / 1.069 GB, free: 8.715 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.464e-05/0.2814, allocations: 0 / 1.069 GB, free: 8.715 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.161e-05/0.2815, allocations: 11.92 kB / 1.069 GB, free: 8.703 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.448e-05/0.2816, allocations: 7.984 kB / 1.069 GB, free: 8.695 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.333e-06/0.2816, allocations: 4 kB / 1.069 GB, free: 8.691 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.525e-05/0.2816, allocations: 99.27 kB / 1.069 GB, free: 8.594 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.222e-06/0.2816, allocations: 0 / 1.069 GB, free: 8.594 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002473/0.2819, allocations: 15.94 kB / 1.069 GB, free: 8.578 MB / 0.8262 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.0005343/0.2824, allocations: 0.7481 MB / 1.07 GB, free: 7.805 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002592/0.2827, allocations: 83.8 kB / 1.07 GB, free: 7.723 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.367e-06/0.2827, allocations: 4 kB / 1.07 GB, free: 7.719 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001085/0.2828, allocations: 35.92 kB / 1.07 GB, free: 7.684 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002547/0.2831, allocations: 12.36 kB / 1.07 GB, free: 7.672 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001569/0.2847, allocations: 1.513 MB / 1.071 GB, free: 6.039 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002073/0.2849, allocations: 0.6884 MB / 1.072 GB, free: 5.324 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.287e-05/0.2849, allocations: 7.984 kB / 1.072 GB, free: 5.316 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.153e-05/0.285, allocations: 23.38 kB / 1.072 GB, free: 5.293 MB / 0.8262 GB Notification: Performance of SimCode: time 2.3e-07/0.285, allocations: 0 / 1.072 GB, free: 5.293 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01689/0.3019, allocations: 2.077 MB / 1.074 GB, free: 3.379 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.169/7.471, allocations: 9.125 kB / 1.074 GB, free: 3.375 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.sim & python3 -m fmpy simulate --output-file Buildings_latest_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_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Error: Could not read variable samTri.y in file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.csv. Warning: Get data of variable samTri.y from file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.csv failed! Error: Could not read variable triggeredSampler.u in file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.csv. Warning: Get data of variable triggeredSampler.u from file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.csv failed! Error: Could not read variable samTri1.y in file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.csv. Warning: Get data of variable samTri1.y from file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.csv failed! " Variables in the reference:time,samTri.y,triggeredSampler.u,triggeredSampler.y,samTri1.y,triggeredSampler1.u,triggeredSampler1.y Variables in the result:time,triggeredSampler1.u,triggeredSampler.y,triggeredSampler1.y,ramp.duration,ramp.height