Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_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.007717/0.007718, allocations: 103.7 kB / 15.74 MB, free: 6.449 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.001833/0.001833, allocations: 196 kB / 16.67 MB, free: 6.355 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.497/1.497, 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 11.1.0-maint.11.x/package.mo): time 3.071/3.071, allocations: 469.8 MB / 0.7425 GB, free: 7.324 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001908/0.001908, allocations: 63.89 kB / 1.065 GB, free: 13.53 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3825/0.3844, allocations: 159.1 MB / 1.22 GB, free: 14.27 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime): time 0.002191/0.3867, allocations: 0.7589 MB / 1.221 GB, free: 13.51 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001595/0.3883, allocations: 1.069 MB / 1.222 GB, free: 12.43 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.377e-05/0.3884, allocations: 3.938 kB / 1.222 GB, free: 12.43 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 4.833e-05/0.3884, allocations: 7.922 kB / 1.222 GB, free: 12.42 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 8.849e-05/0.3886, allocations: 15.86 kB / 1.222 GB, free: 12.4 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003931/0.389, allocations: 47.89 kB / 1.222 GB, free: 12.36 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001493/0.3891, allocations: 75.77 kB / 1.222 GB, free: 12.28 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001316/0.3893, allocations: 16.19 kB / 1.222 GB, free: 12.26 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 9.113e-05/0.3894, allocations: 31.86 kB / 1.222 GB, free: 12.23 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 7.449e-05/0.3894, allocations: 31.89 kB / 1.222 GB, free: 12.2 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.01e-05/0.3895, allocations: 4 kB / 1.222 GB, free: 12.2 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 8.937e-05/0.3896, allocations: 19.98 kB / 1.222 GB, free: 12.18 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.723e-05/0.3896, allocations: 15.92 kB / 1.222 GB, free: 12.16 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 5.324e-05/0.3896, allocations: 31.86 kB / 1.222 GB, free: 12.13 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001793/0.3898, allocations: 79.69 kB / 1.222 GB, free: 12.05 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.3898, allocations: 0 / 1.222 GB, free: 12.05 MB / 0.9825 GB Notification: Performance of FrontEnd: time 5.76e-06/0.3899, allocations: 0 / 1.222 GB, free: 12.05 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 9.638e-06/0.3899, allocations: 3.938 kB / 1.222 GB, free: 12.05 MB / 0.9825 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.0007542/0.3906, allocations: 391.1 kB / 1.223 GB, free: 11.62 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.23e-05/0.3907, allocations: 8.031 kB / 1.223 GB, free: 11.61 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.942e-05/0.3907, allocations: 34.75 kB / 1.223 GB, free: 11.57 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.028e-05/0.3908, allocations: 8.891 kB / 1.223 GB, free: 11.56 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000194/0.391, allocations: 180.2 kB / 1.223 GB, free: 11.34 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.536e-05/0.391, allocations: 4.375 kB / 1.223 GB, free: 11.34 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.367e-05/0.391, allocations: 4.375 kB / 1.223 GB, free: 11.34 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002324/0.3913, allocations: 77.92 kB / 1.223 GB, free: 11.25 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.496e-06/0.3913, allocations: 0 / 1.223 GB, free: 11.25 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.328e-05/0.3913, allocations: 3.984 kB / 1.223 GB, free: 11.25 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.168e-06/0.3913, allocations: 0 / 1.223 GB, free: 11.25 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001839/0.3915, allocations: 43.91 kB / 1.223 GB, free: 11.21 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006901/0.3922, allocations: 312.9 kB / 1.223 GB, free: 10.85 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001884/0.3924, allocations: 66.48 kB / 1.223 GB, free: 10.78 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001065/0.3925, allocations: 24.97 kB / 1.223 GB, free: 10.75 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.69e-05/0.3925, allocations: 0 / 1.223 GB, free: 10.75 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002076/0.3928, allocations: 79.33 kB / 1.224 GB, free: 10.66 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=7): time 1.572e-06/0.3928, allocations: 4 kB / 1.224 GB, free: 10.66 MB / 0.9825 GB Notification: Performance of matching and sorting (n=7): time 0.000463/0.3932, allocations: 137.5 kB / 1.224 GB, free: 10.52 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.095e-05/0.3933, allocations: 51.41 kB / 1.224 GB, free: 10.45 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001228/0.3934, allocations: 129.8 kB / 1.224 GB, free: 10.32 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.244e-05/0.3935, allocations: 25.7 kB / 1.224 GB, free: 10.29 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 6.332e-05/0.3935, allocations: 92.08 kB / 1.224 GB, free: 10.19 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.434e-05/0.3936, allocations: 23.89 kB / 1.224 GB, free: 10.17 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.636e-05/0.3936, allocations: 29.7 kB / 1.224 GB, free: 10.13 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001532/0.3938, allocations: 318.8 kB / 1.224 GB, free: 9.812 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001176/0.3939, allocations: 35.91 kB / 1.224 GB, free: 9.777 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001521/0.3941, allocations: 74.3 kB / 1.224 GB, free: 9.684 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002636/0.3943, allocations: 113.8 kB / 1.225 GB, free: 9.551 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.3943, allocations: 0 / 1.225 GB, free: 9.551 MB / 0.9825 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003221/0.3947, allocations: 129.5 kB / 1.225 GB, free: 9.418 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.943e-05/0.3947, allocations: 8 kB / 1.225 GB, free: 9.41 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.641e-06/0.3947, allocations: 224 / 1.225 GB, free: 9.41 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.94e-05/0.3947, allocations: 8 kB / 1.225 GB, free: 9.402 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000148/0.3949, allocations: 19.92 kB / 1.225 GB, free: 9.383 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.214e-05/0.3949, allocations: 7.969 kB / 1.225 GB, free: 9.375 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.925e-05/0.395, allocations: 11.95 kB / 1.225 GB, free: 9.363 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.756e-05/0.395, allocations: 4 kB / 1.225 GB, free: 9.359 MB / 0.9825 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 0.000119/0.3951, allocations: 130.2 kB / 1.225 GB, free: 9.223 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.51e-05/0.3952, allocations: 7.953 kB / 1.225 GB, free: 9.215 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.527e-05/0.3952, allocations: 4.375 kB / 1.225 GB, free: 9.203 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.589e-06/0.3952, allocations: 11.94 kB / 1.225 GB, free: 9.191 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.3952, allocations: 0 / 1.225 GB, free: 9.191 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.417e-06/0.3952, allocations: 0 / 1.225 GB, free: 9.191 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005753/0.3958, allocations: 370.5 kB / 1.225 GB, free: 8.773 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.3958, allocations: 0 / 1.225 GB, free: 8.773 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.663e-05/0.3959, allocations: 15.92 kB / 1.225 GB, free: 8.758 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.803e-06/0.3959, allocations: 0 / 1.225 GB, free: 8.758 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.056e-05/0.3959, allocations: 4 kB / 1.225 GB, free: 8.754 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.987e-06/0.3959, allocations: 3.938 kB / 1.225 GB, free: 8.75 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.51e-07/0.3959, allocations: 0 / 1.225 GB, free: 8.75 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003201/0.3963, allocations: 199.5 kB / 1.225 GB, free: 8.539 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 5.983e-05/0.3963, allocations: 81.06 kB / 1.225 GB, free: 8.441 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.693e-05/0.3964, allocations: 7.938 kB / 1.225 GB, free: 8.434 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.526e-05/0.3964, allocations: 15.92 kB / 1.225 GB, free: 8.418 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.004e-05/0.3965, allocations: 7.984 kB / 1.226 GB, free: 8.41 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.121e-05/0.3965, allocations: 4 kB / 1.226 GB, free: 8.406 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 6.194e-05/0.3966, allocations: 95.86 kB / 1.226 GB, free: 8.312 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.21e-07/0.3966, allocations: 0 / 1.226 GB, free: 8.312 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002552/0.3968, allocations: 16 kB / 1.226 GB, free: 8.297 MB / 0.9825 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.0008991/0.3977, allocations: 0.7495 MB / 1.226 GB, free: 7.523 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0003034/0.3981, allocations: 71.89 kB / 1.226 GB, free: 7.453 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 3.377e-06/0.3981, allocations: 0 / 1.226 GB, free: 7.453 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001254/0.3982, allocations: 40.34 kB / 1.226 GB, free: 7.414 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003324/0.3985, allocations: 19.88 kB / 1.226 GB, free: 7.395 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002143/0.4007, allocations: 1.533 MB / 1.228 GB, free: 5.742 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005225/0.4012, allocations: 0.6924 MB / 1.229 GB, free: 5.023 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 4.082e-05/0.4013, allocations: 8 kB / 1.229 GB, free: 5.016 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.711e-05/0.4014, allocations: 23.42 kB / 1.229 GB, free: 4.992 MB / 0.9825 GB Notification: Performance of SimCode: time 3.1e-07/0.4014, allocations: 0 / 1.229 GB, free: 4.992 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02506/0.4264, allocations: 2.115 MB / 1.231 GB, free: 3.062 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.281/8.707, allocations: 6.406 kB / 1.231 GB, free: 3.059 MB / 0.9825 GB (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.sim & python3 -m fmpy simulate --output-file Buildings_11_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_11_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches