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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001767/0.001767, allocations: 114.3 kB / 18.94 MB, free: 2.934 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002788/0.002788, allocations: 215.2 kB / 22.25 MB, free: 5.082 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.55/1.55, allocations: 230.6 MB / 256 MB, free: 8.02 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.956/2.956, allocations: 476.8 MB / 0.7707 GB, free: 4.281 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002007/0.002007, allocations: 69.16 kB / 1.117 GB, free: 8.996 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4119/0.4139, allocations: 169.9 MB / 1.283 GB, free: 3.816 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime): time 0.003611/0.4175, allocations: 0.7682 MB / 1.284 GB, free: 3.047 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.002272/0.4198, allocations: 1.106 MB / 1.285 GB, free: 1.93 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.459e-05/0.4199, allocations: 3.938 kB / 1.285 GB, free: 1.926 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.903e-05/0.4199, allocations: 3.938 kB / 1.285 GB, free: 1.922 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0001107/0.4201, allocations: 15.88 kB / 1.285 GB, free: 1.906 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004012/0.4205, allocations: 47.88 kB / 1.285 GB, free: 1.859 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001748/0.4206, allocations: 71.78 kB / 1.285 GB, free: 1.789 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001407/0.4208, allocations: 24.16 kB / 1.285 GB, free: 1.762 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001094/0.4209, allocations: 27.86 kB / 1.285 GB, free: 1.734 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 7.343e-05/0.421, allocations: 31.91 kB / 1.285 GB, free: 1.703 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.905e-05/0.421, allocations: 4 kB / 1.285 GB, free: 1.699 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 7.622e-05/0.4211, allocations: 23.92 kB / 1.285 GB, free: 1.676 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.551e-05/0.4211, allocations: 15.98 kB / 1.285 GB, free: 1.66 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 4.919e-05/0.4211, allocations: 27.86 kB / 1.286 GB, free: 1.633 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001894/0.4213, allocations: 83.91 kB / 1.286 GB, free: 1.551 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.4213, allocations: 3.938 kB / 1.286 GB, free: 1.547 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.563e-06/0.4213, allocations: 0 / 1.286 GB, free: 1.547 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.613e-06/0.4213, allocations: 0 / 1.286 GB, free: 1.547 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.0006393/0.422, allocations: 314 kB / 1.286 GB, free: 1.211 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.94e-05/0.422, allocations: 8.031 kB / 1.286 GB, free: 1.203 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.92e-05/0.4221, allocations: 30.75 kB / 1.286 GB, free: 1.164 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.473e-05/0.4221, allocations: 8.891 kB / 1.286 GB, free: 1.156 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001432/0.4223, allocations: 114.5 kB / 1.286 GB, free: 1.02 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.086e-05/0.4223, allocations: 8.375 kB / 1.286 GB, free: 1.012 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.626e-05/0.4223, allocations: 4.375 kB / 1.286 GB, free: 1.008 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002301/0.4225, allocations: 77.91 kB / 1.286 GB, free: 0.9258 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.071e-05/0.4225, allocations: 0 / 1.286 GB, free: 0.9258 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.388e-05/0.4225, allocations: 4 kB / 1.286 GB, free: 0.9219 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.604e-06/0.4226, allocations: 3.984 kB / 1.286 GB, free: 0.918 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001838/0.4227, allocations: 39.91 kB / 1.286 GB, free: 0.8789 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007542/0.4235, allocations: 303.7 kB / 1.286 GB, free: 0.5391 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001817/0.4237, allocations: 54.55 kB / 1.287 GB, free: 488 kB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000106/0.4238, allocations: 32.97 kB / 1.287 GB, free: 452 kB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.786e-05/0.4238, allocations: 0 / 1.287 GB, free: 452 kB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002855/0.4241, allocations: 75.38 kB / 1.287 GB, free: 364 kB / 0.9825 GB Notification: Performance of pre-optimization done (n=7): time 1.393e-06/0.4241, allocations: 4 kB / 1.287 GB, free: 360 kB / 0.9825 GB Notification: Performance of matching and sorting (n=7): time 0.0004653/0.4246, allocations: 129.6 kB / 1.287 GB, free: 224 kB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.879e-05/0.4246, allocations: 59.41 kB / 1.287 GB, free: 152 kB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001288/0.4248, allocations: 121.8 kB / 1.287 GB, free: 20 kB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 4.16e-05/0.4248, allocations: 29.7 kB / 1.287 GB, free: 15.98 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 8.297e-05/0.4249, allocations: 88.09 kB / 1.287 GB, free: 15.89 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 2.363e-05/0.4249, allocations: 23.89 kB / 1.287 GB, free: 15.87 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.166e-05/0.425, allocations: 33.64 kB / 1.287 GB, free: 15.83 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001741/0.4251, allocations: 326.8 kB / 1.287 GB, free: 15.5 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001155/0.4253, allocations: 27.97 kB / 1.287 GB, free: 15.48 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001496/0.4254, allocations: 73.98 kB / 1.287 GB, free: 15.38 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002575/0.4257, allocations: 109.8 kB / 1.288 GB, free: 15.25 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.21e-06/0.4257, allocations: 4 kB / 1.288 GB, free: 15.25 MB / 0.9981 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003514/0.426, allocations: 129.5 kB / 1.288 GB, free: 15.12 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.008e-05/0.426, allocations: 4 kB / 1.288 GB, free: 15.11 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.196e-06/0.4261, allocations: 224 / 1.288 GB, free: 15.11 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.181e-05/0.4261, allocations: 12 kB / 1.288 GB, free: 15.1 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001394/0.4262, allocations: 19.92 kB / 1.288 GB, free: 15.08 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.338e-06/0.4262, allocations: 4 kB / 1.288 GB, free: 15.08 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.942e-05/0.4263, allocations: 11.92 kB / 1.288 GB, free: 15.07 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.615e-05/0.4263, allocations: 4 kB / 1.288 GB, free: 15.06 MB / 0.9981 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.0001203/0.4265, allocations: 129.7 kB / 1.288 GB, free: 14.93 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.728e-05/0.4265, allocations: 7.938 kB / 1.288 GB, free: 14.92 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.469e-05/0.4265, allocations: 12.38 kB / 1.288 GB, free: 14.91 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.394e-06/0.4265, allocations: 4 kB / 1.288 GB, free: 14.9 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.4265, allocations: 0 / 1.288 GB, free: 14.9 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.857e-06/0.4265, allocations: 0 / 1.288 GB, free: 14.9 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005279/0.427, allocations: 345.5 kB / 1.288 GB, free: 14.52 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.893e-06/0.427, allocations: 0 / 1.288 GB, free: 14.52 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.928e-05/0.4271, allocations: 7.938 kB / 1.288 GB, free: 14.51 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.4271, allocations: 0 / 1.288 GB, free: 14.51 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.856e-06/0.4271, allocations: 8 kB / 1.288 GB, free: 14.5 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.472e-06/0.4271, allocations: 7.922 kB / 1.288 GB, free: 14.49 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.4271, allocations: 0 / 1.288 GB, free: 14.49 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003032/0.4274, allocations: 191.5 kB / 1.288 GB, free: 14.29 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 1.792e-05/0.4274, allocations: 7.938 kB / 1.288 GB, free: 14.28 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.158e-05/0.4275, allocations: 11.92 kB / 1.288 GB, free: 14.27 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.575e-05/0.4276, allocations: 11.94 kB / 1.288 GB, free: 14.26 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.116e-05/0.4276, allocations: 7.984 kB / 1.288 GB, free: 14.25 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.43e-06/0.4276, allocations: 0 / 1.288 GB, free: 14.25 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 6.952e-05/0.4277, allocations: 95.92 kB / 1.289 GB, free: 14.16 MB / 0.9981 GB Notification: Performance of sort global known variables: time 8e-08/0.4277, allocations: 0 / 1.289 GB, free: 14.16 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002633/0.4279, allocations: 23.89 kB / 1.289 GB, free: 14.13 MB / 0.9981 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.0006974/0.4286, allocations: 0.7323 MB / 1.289 GB, free: 13.38 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0002923/0.4289, allocations: 79.86 kB / 1.289 GB, free: 13.3 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.4289, allocations: 0 / 1.289 GB, free: 13.3 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001197/0.429, allocations: 36.34 kB / 1.289 GB, free: 13.26 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002888/0.4293, allocations: 22.22 kB / 1.289 GB, free: 13.24 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001997/0.4313, allocations: 1.52 MB / 1.291 GB, free: 11.6 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003281/0.4317, allocations: 0.6885 MB / 1.292 GB, free: 10.89 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 3.957e-05/0.4317, allocations: 7.984 kB / 1.292 GB, free: 10.88 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5e-05/0.4317, allocations: 19.44 kB / 1.292 GB, free: 10.86 MB / 0.9981 GB Notification: Performance of SimCode: time 3.11e-07/0.4317, allocations: 0 / 1.292 GB, free: 10.86 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03174/0.4635, allocations: 2.244 MB / 1.294 GB, free: 8.785 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.03/11.5, allocations: 8.859 kB / 1.294 GB, free: 8.781 MB / 0.9981 GB " [Timeout remaining time 288] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.mat --tempDir=temp_Buildings_11_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime_fmu --startTime=1 --stopTime=6 --stepSize=0.002 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.mat","/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) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.401789291994646]