Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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.Logical.Sources.Validation.SampleTriggerPositiveStartTime,fileNamePrefix="Buildings_10_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_10_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.001537/0.001537, allocations: 108 kB / 15.6 MB, free: 132 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.001988/0.001988, allocations: 195.4 kB / 16.53 MB, free: 6.391 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.293/1.293, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.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.503/2.503, allocations: 437.1 MB / 0.7104 GB, free: 5.047 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001352/0.001352, allocations: 63.91 kB / 0.8694 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6036/0.605, allocations: 151.6 MB / 1.017 GB, free: 2.457 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime): time 0.002327/0.6074, allocations: 0.7466 MB / 1.018 GB, free: 1.711 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001665/0.6091, allocations: 1.074 MB / 1.019 GB, free: 0.6211 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.041e-05/0.6092, allocations: 3.938 kB / 1.019 GB, free: 0.6172 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.225e-05/0.6092, allocations: 3.938 kB / 1.019 GB, free: 0.6133 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 8.228e-05/0.6093, allocations: 11.88 kB / 1.019 GB, free: 0.6016 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003585/0.6097, allocations: 55.81 kB / 1.019 GB, free: 0.5469 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.000107/0.6098, allocations: 71.84 kB / 1.019 GB, free: 488 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001004/0.6099, allocations: 16.17 kB / 1.019 GB, free: 468 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 8.527e-05/0.61, allocations: 39.78 kB / 1.019 GB, free: 428 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 5.691e-05/0.6101, allocations: 27.91 kB / 1.019 GB, free: 400 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.921e-05/0.6101, allocations: 8 kB / 1.019 GB, free: 392 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 7.143e-05/0.6102, allocations: 23.98 kB / 1.019 GB, free: 368 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.938e-05/0.6102, allocations: 15.91 kB / 1.019 GB, free: 352 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 4.906e-05/0.6103, allocations: 31.86 kB / 1.02 GB, free: 320 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001368/0.6104, allocations: 75.75 kB / 1.02 GB, free: 244 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.6104, allocations: 4 kB / 1.02 GB, free: 240 kB / 0.7637 GB Notification: Performance of FrontEnd: time 1.252e-06/0.6104, allocations: 0 / 1.02 GB, free: 240 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 8.887e-06/0.6104, allocations: 0 / 1.02 GB, free: 240 kB / 0.7637 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.0005806/0.611, allocations: 385.4 kB / 1.02 GB, free: 15.81 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.789e-05/0.6111, allocations: 8.031 kB / 1.02 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.319e-05/0.6111, allocations: 34.75 kB / 1.02 GB, free: 15.76 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.29e-05/0.6111, allocations: 4.938 kB / 1.02 GB, free: 15.76 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001226/0.6113, allocations: 172.2 kB / 1.02 GB, free: 15.55 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.837e-05/0.6113, allocations: 16.3 kB / 1.02 GB, free: 15.54 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.68e-05/0.6113, allocations: 8.312 kB / 1.02 GB, free: 15.53 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001939/0.6115, allocations: 73.92 kB / 1.02 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.324e-06/0.6115, allocations: 0 / 1.02 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.1e-05/0.6115, allocations: 4 kB / 1.02 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.379e-06/0.6116, allocations: 0 / 1.02 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001795/0.6117, allocations: 43.95 kB / 1.02 GB, free: 15.4 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006688/0.6124, allocations: 332.5 kB / 1.021 GB, free: 15.03 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001855/0.6126, allocations: 58.55 kB / 1.021 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001035/0.6127, allocations: 24.97 kB / 1.021 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.636e-05/0.6128, allocations: 8 kB / 1.021 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002335/0.613, allocations: 79.39 kB / 1.021 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.673e-06/0.613, allocations: 0 / 1.021 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0004239/0.6134, allocations: 129.5 kB / 1.021 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.115e-05/0.6135, allocations: 55.41 kB / 1.021 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.559e-05/0.6136, allocations: 129.8 kB / 1.021 GB, free: 14.5 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.552e-05/0.6136, allocations: 29.7 kB / 1.021 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.023e-05/0.6137, allocations: 88.05 kB / 1.021 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.318e-05/0.6137, allocations: 19.8 kB / 1.021 GB, free: 14.36 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.007e-05/0.6138, allocations: 29.7 kB / 1.021 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001148/0.6139, allocations: 322.8 kB / 1.022 GB, free: 14 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001076/0.614, allocations: 31.97 kB / 1.022 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001258/0.6141, allocations: 77.92 kB / 1.022 GB, free: 13.87 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002318/0.6144, allocations: 109.9 kB / 1.022 GB, free: 13.74 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.6144, allocations: 0 / 1.022 GB, free: 13.74 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003021/0.6147, allocations: 133.5 kB / 1.022 GB, free: 13.6 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.539e-05/0.6147, allocations: 8 kB / 1.022 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.979e-06/0.6147, allocations: 3.938 kB / 1.022 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.402e-05/0.6147, allocations: 4 kB / 1.022 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001185/0.6149, allocations: 15.98 kB / 1.022 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.566e-06/0.6149, allocations: 4 kB / 1.022 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.239e-05/0.615, allocations: 15.83 kB / 1.022 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.361e-05/0.615, allocations: 4 kB / 1.022 GB, free: 13.55 MB / 0.7794 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.233e-05/0.6151, allocations: 131.9 kB / 1.022 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.714e-05/0.6151, allocations: 11.89 kB / 1.022 GB, free: 13.4 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.9e-05/0.6152, allocations: 4.375 kB / 1.022 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.344e-06/0.6152, allocations: 4 kB / 1.022 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.6152, allocations: 0 / 1.022 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.427e-06/0.6152, allocations: 0 / 1.022 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004741/0.6157, allocations: 382.4 kB / 1.022 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.6157, allocations: 0 / 1.022 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.212e-05/0.6157, allocations: 4 kB / 1.022 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.468e-06/0.6157, allocations: 3.984 kB / 1.022 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.814e-06/0.6158, allocations: 0 / 1.022 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.855e-06/0.6158, allocations: 7.938 kB / 1.022 GB, free: 12.94 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.6158, allocations: 0 / 1.022 GB, free: 12.94 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002847/0.6161, allocations: 207.7 kB / 1.023 GB, free: 12.72 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.383e-05/0.6161, allocations: 89 kB / 1.023 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.256e-05/0.6161, allocations: 4 kB / 1.023 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.039e-05/0.6162, allocations: 7.938 kB / 1.023 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.981e-05/0.6163, allocations: 11.98 kB / 1.023 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.661e-06/0.6163, allocations: 0 / 1.023 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.74e-05/0.6163, allocations: 91.27 kB / 1.023 GB, free: 12.5 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1e-07/0.6163, allocations: 0 / 1.023 GB, free: 12.5 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002721/0.6166, allocations: 24 kB / 1.023 GB, free: 12.48 MB / 0.7794 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.0005954/0.6172, allocations: 0.728 MB / 1.024 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002796/0.6175, allocations: 91.8 kB / 1.024 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.6175, allocations: 0 / 1.024 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001108/0.6176, allocations: 31.97 kB / 1.024 GB, free: 11.61 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002588/0.6179, allocations: 20.62 kB / 1.024 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001718/0.6196, allocations: 1.506 MB / 1.025 GB, free: 9.965 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002728/0.6199, allocations: 0.6963 MB / 1.026 GB, free: 9.242 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.686e-05/0.62, allocations: 4 kB / 1.026 GB, free: 9.238 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.928e-05/0.62, allocations: 23.42 kB / 1.026 GB, free: 9.215 MB / 0.7794 GB Notification: Performance of SimCode: time 2.01e-07/0.62, allocations: 0 / 1.026 GB, free: 9.215 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01784/0.6379, allocations: 2.079 MB / 1.028 GB, free: 7.297 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.088/7.726, allocations: 15.16 kB / 1.028 GB, free: 7.285 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.sim & python3 -m fmpy simulate --output-file Buildings_10_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_10_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.csv. Warning: Get data of variable samTri.y from file Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.csv failed! Error: Could not read variable triggeredSampler.u in file Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.csv. Warning: Get data of variable triggeredSampler.u from file Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.csv failed! Error: Could not read variable samTri1.y in file Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.csv. Warning: Get data of variable samTri1.y from file Buildings_10_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