Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.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.001481/0.001481, allocations: 110.6 kB / 18.94 MB, free: 2.949 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.001553/0.001553, allocations: 220.3 kB / 22.26 MB, free: 5.125 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.492/1.492, allocations: 230.6 MB / 256 MB, free: 7.98 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.37/3.37, allocations: 0.505 GB / 0.8101 GB, free: 22.03 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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.SampleTriggerNegativeStartTime,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerNegativeStartTime",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerNegativeStartTime",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.002039/0.002039, allocations: 63.08 kB / 1.177 GB, free: 17.05 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4204/0.4224, allocations: 180.2 MB / 1.353 GB, free: 8.426 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime): time 0.002304/0.4247, allocations: 0.7519 MB / 1.354 GB, free: 7.676 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001738/0.4264, allocations: 1.116 MB / 1.355 GB, free: 6.547 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.163e-05/0.4265, allocations: 4 kB / 1.355 GB, free: 6.543 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 3.295e-05/0.4265, allocations: 3.938 kB / 1.355 GB, free: 6.539 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 8.588e-05/0.4266, allocations: 7.875 kB / 1.355 GB, free: 6.531 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003508/0.427, allocations: 63.75 kB / 1.355 GB, free: 6.469 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0001393/0.4271, allocations: 63.84 kB / 1.355 GB, free: 6.406 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001214/0.4272, allocations: 24.09 kB / 1.355 GB, free: 6.379 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 9.677e-05/0.4273, allocations: 31.92 kB / 1.355 GB, free: 6.348 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 7.375e-05/0.4274, allocations: 27.86 kB / 1.355 GB, free: 6.32 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 2.329e-05/0.4274, allocations: 8 kB / 1.355 GB, free: 6.312 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 7.47e-05/0.4275, allocations: 19.98 kB / 1.355 GB, free: 6.293 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 2.333e-05/0.4275, allocations: 11.97 kB / 1.355 GB, free: 6.281 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 5.281e-05/0.4276, allocations: 35.8 kB / 1.355 GB, free: 6.246 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0001934/0.4278, allocations: 87.84 kB / 1.355 GB, free: 6.16 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.4278, allocations: 0 / 1.355 GB, free: 6.16 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.934e-06/0.4278, allocations: 0 / 1.355 GB, free: 6.16 MB / 1.045 GB Notification: Performance of Transformations before backend: time 7.153e-06/0.4278, allocations: 0 / 1.355 GB, free: 6.16 MB / 1.045 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.0006334/0.4284, allocations: 310 kB / 1.355 GB, free: 5.828 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.493e-05/0.4285, allocations: 8.031 kB / 1.355 GB, free: 5.82 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.281e-05/0.4285, allocations: 38.75 kB / 1.355 GB, free: 5.773 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.936e-05/0.4286, allocations: 8.891 kB / 1.355 GB, free: 5.766 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001325/0.4287, allocations: 106.5 kB / 1.356 GB, free: 5.637 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.447e-05/0.4287, allocations: 384 / 1.356 GB, free: 5.637 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.094e-05/0.4287, allocations: 16.34 kB / 1.356 GB, free: 5.621 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002442/0.429, allocations: 69.92 kB / 1.356 GB, free: 5.547 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.949e-06/0.429, allocations: 4 kB / 1.356 GB, free: 5.543 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.898e-06/0.429, allocations: 0 / 1.356 GB, free: 5.543 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.759e-06/0.429, allocations: 4 kB / 1.356 GB, free: 5.539 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001782/0.4292, allocations: 43.95 kB / 1.356 GB, free: 5.496 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007296/0.4299, allocations: 303.7 kB / 1.356 GB, free: 5.156 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001784/0.4301, allocations: 50.56 kB / 1.356 GB, free: 5.098 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001006/0.4302, allocations: 28.95 kB / 1.356 GB, free: 5.066 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.474e-05/0.4302, allocations: 0 / 1.356 GB, free: 5.066 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002489/0.4305, allocations: 79.45 kB / 1.356 GB, free: 4.977 MB / 1.045 GB Notification: Performance of pre-optimization done (n=7): time 1.683e-06/0.4305, allocations: 7.938 kB / 1.356 GB, free: 4.969 MB / 1.045 GB Notification: Performance of matching and sorting (n=7): time 0.0004287/0.4309, allocations: 129.6 kB / 1.356 GB, free: 4.836 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.892e-05/0.4309, allocations: 51.41 kB / 1.356 GB, free: 4.773 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001201/0.431, allocations: 121.8 kB / 1.356 GB, free: 4.645 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 2.312e-05/0.4311, allocations: 29.7 kB / 1.356 GB, free: 4.609 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 6.476e-05/0.4311, allocations: 96.06 kB / 1.357 GB, free: 4.512 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 2.351e-05/0.4312, allocations: 23.83 kB / 1.357 GB, free: 4.488 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.255e-05/0.4312, allocations: 29.7 kB / 1.357 GB, free: 4.453 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001443/0.4314, allocations: 322.8 kB / 1.357 GB, free: 4.129 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001124/0.4315, allocations: 27.98 kB / 1.357 GB, free: 4.102 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001413/0.4316, allocations: 73.92 kB / 1.357 GB, free: 4.008 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002433/0.4319, allocations: 113.9 kB / 1.357 GB, free: 3.875 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.4319, allocations: 0 / 1.357 GB, free: 3.875 MB / 1.045 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003255/0.4322, allocations: 129.5 kB / 1.357 GB, free: 3.742 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.566e-05/0.4322, allocations: 4 kB / 1.357 GB, free: 3.738 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.4322, allocations: 7.938 kB / 1.357 GB, free: 3.73 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.668e-05/0.4322, allocations: 4.219 kB / 1.357 GB, free: 3.727 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000128/0.4324, allocations: 19.98 kB / 1.357 GB, free: 3.707 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.594e-06/0.4324, allocations: 0 / 1.357 GB, free: 3.707 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.339e-05/0.4325, allocations: 23.88 kB / 1.357 GB, free: 3.684 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.411e-05/0.4325, allocations: 4 kB / 1.357 GB, free: 3.68 MB / 1.045 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.0001226/0.4326, allocations: 123.4 kB / 1.357 GB, free: 3.551 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.539e-05/0.4326, allocations: 4 kB / 1.357 GB, free: 3.547 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.09e-05/0.4326, allocations: 8.375 kB / 1.357 GB, free: 3.539 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.198e-05/0.4327, allocations: 7.984 kB / 1.357 GB, free: 3.531 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.034e-06/0.4327, allocations: 4 kB / 1.357 GB, free: 3.527 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.006e-06/0.4327, allocations: 0 / 1.357 GB, free: 3.527 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004926/0.4332, allocations: 341.5 kB / 1.358 GB, free: 3.145 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.245e-06/0.4332, allocations: 0 / 1.358 GB, free: 3.145 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.899e-05/0.4332, allocations: 15.98 kB / 1.358 GB, free: 3.129 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.434e-06/0.4332, allocations: 0 / 1.358 GB, free: 3.129 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.078e-05/0.4332, allocations: 4 kB / 1.358 GB, free: 3.125 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.37e-06/0.4332, allocations: 7.938 kB / 1.358 GB, free: 3.117 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.4332, allocations: 0 / 1.358 GB, free: 3.117 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002989/0.4335, allocations: 203.4 kB / 1.358 GB, free: 2.902 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 1.372e-05/0.4336, allocations: 7.891 kB / 1.358 GB, free: 2.895 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.742e-05/0.4336, allocations: 4 kB / 1.358 GB, free: 2.891 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.578e-05/0.4337, allocations: 11.92 kB / 1.358 GB, free: 2.879 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.949e-05/0.4337, allocations: 15.92 kB / 1.358 GB, free: 2.863 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.295e-06/0.4337, allocations: 4 kB / 1.358 GB, free: 2.859 MB / 1.045 GB Notification: Performance of sorting global known variables: time 6.892e-05/0.4338, allocations: 91.92 kB / 1.358 GB, free: 2.77 MB / 1.045 GB Notification: Performance of sort global known variables: time 7e-08/0.4338, allocations: 0 / 1.358 GB, free: 2.77 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002642/0.434, allocations: 12 kB / 1.358 GB, free: 2.758 MB / 1.045 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.0007361/0.4348, allocations: 0.7359 MB / 1.359 GB, free: 1.996 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0002829/0.4351, allocations: 79.8 kB / 1.359 GB, free: 1.918 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.4351, allocations: 0 / 1.359 GB, free: 1.918 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0001055/0.4352, allocations: 32.36 kB / 1.359 GB, free: 1.887 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00028/0.4354, allocations: 24.25 kB / 1.359 GB, free: 1.863 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001981/0.4374, allocations: 1.521 MB / 1.36 GB, free: 228 kB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003595/0.4378, allocations: 0.6924 MB / 1.361 GB, free: 15.5 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 3.737e-05/0.4378, allocations: 8 kB / 1.361 GB, free: 15.5 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.052e-05/0.4379, allocations: 23.42 kB / 1.361 GB, free: 15.47 MB / 1.061 GB Notification: Performance of SimCode: time 4.51e-07/0.4379, allocations: 0 / 1.361 GB, free: 15.47 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03151/0.4694, allocations: 2.225 MB / 1.363 GB, free: 13.41 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.18/11.65, allocations: 12.64 kB / 1.363 GB, free: 13.41 MB / 1.061 GB " [Timeout remaining time 288] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerNegativeStartTime_fmu --startTime=-2 --stopTime=3 --stepSize=0.002 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerNegativeStartTime.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerNegativeStartTime.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.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.71887967782095]