Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.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.001365/0.001365, allocations: 110.4 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.00182/0.00182, allocations: 218.2 kB / 22.25 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.51/1.51, allocations: 230.6 MB / 256 MB, free: 7.984 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.408/3.408, allocations: 0.505 GB / 0.8101 GB, free: 22.02 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.SampleTrigger,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger",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.00245/0.00245, allocations: 67.67 kB / 1.177 GB, free: 17.05 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4129/0.4154, allocations: 180.2 MB / 1.353 GB, free: 8.414 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.002842/0.4182, allocations: 0.7622 MB / 1.354 GB, free: 7.656 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.002155/0.4204, allocations: 1.104 MB / 1.355 GB, free: 6.539 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.521e-05/0.4204, allocations: 3.938 kB / 1.355 GB, free: 6.535 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 4.41e-05/0.4205, allocations: 7.922 kB / 1.355 GB, free: 6.527 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.000105/0.4206, allocations: 15.86 kB / 1.355 GB, free: 6.512 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003666/0.4209, allocations: 47.91 kB / 1.355 GB, free: 6.465 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0001694/0.4211, allocations: 79.75 kB / 1.355 GB, free: 6.387 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001314/0.4212, allocations: 12.12 kB / 1.355 GB, free: 6.371 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001013/0.4213, allocations: 27.92 kB / 1.355 GB, free: 6.344 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 9.511e-05/0.4214, allocations: 35.83 kB / 1.355 GB, free: 6.309 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 2.782e-05/0.4215, allocations: 8 kB / 1.355 GB, free: 6.301 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 8.594e-05/0.4215, allocations: 19.98 kB / 1.355 GB, free: 6.281 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 2.852e-05/0.4216, allocations: 15.98 kB / 1.355 GB, free: 6.266 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 6.666e-05/0.4216, allocations: 35.73 kB / 1.355 GB, free: 6.23 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0001973/0.4218, allocations: 79.91 kB / 1.355 GB, free: 6.152 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.4218, allocations: 4 kB / 1.355 GB, free: 6.148 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.703e-06/0.4218, allocations: 3.938 kB / 1.355 GB, free: 6.145 MB / 1.045 GB Notification: Performance of Transformations before backend: time 5.971e-06/0.4219, allocations: 0 / 1.355 GB, free: 6.145 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.0006969/0.4225, allocations: 306 kB / 1.355 GB, free: 5.816 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 5.041e-05/0.4226, allocations: 12.02 kB / 1.355 GB, free: 5.805 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.315e-05/0.4227, allocations: 34.75 kB / 1.355 GB, free: 5.762 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.904e-05/0.4227, allocations: 8.891 kB / 1.355 GB, free: 5.754 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001412/0.4228, allocations: 110.5 kB / 1.356 GB, free: 5.621 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.843e-05/0.4229, allocations: 8.375 kB / 1.356 GB, free: 5.613 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.577e-05/0.4229, allocations: 8.375 kB / 1.356 GB, free: 5.605 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002834/0.4232, allocations: 73.91 kB / 1.356 GB, free: 5.527 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.338e-06/0.4232, allocations: 0 / 1.356 GB, free: 5.527 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.609e-05/0.4232, allocations: 8 kB / 1.356 GB, free: 5.52 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.558e-06/0.4232, allocations: 0 / 1.356 GB, free: 5.52 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002553/0.4234, allocations: 39.95 kB / 1.356 GB, free: 5.48 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008913/0.4243, allocations: 299.7 kB / 1.356 GB, free: 5.145 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002488/0.4246, allocations: 50.55 kB / 1.356 GB, free: 5.086 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001524/0.4247, allocations: 36.94 kB / 1.356 GB, free: 5.047 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.665e-05/0.4248, allocations: 0 / 1.356 GB, free: 5.047 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003147/0.4251, allocations: 79.38 kB / 1.356 GB, free: 4.957 MB / 1.045 GB Notification: Performance of pre-optimization done (n=7): time 1.724e-06/0.4251, allocations: 0 / 1.356 GB, free: 4.957 MB / 1.045 GB Notification: Performance of matching and sorting (n=7): time 0.0006298/0.4257, allocations: 133.6 kB / 1.356 GB, free: 4.82 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.676e-05/0.4258, allocations: 55.39 kB / 1.356 GB, free: 4.754 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001517/0.4259, allocations: 121.8 kB / 1.356 GB, free: 4.625 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 2.601e-05/0.426, allocations: 29.7 kB / 1.356 GB, free: 4.59 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 8.098e-05/0.426, allocations: 100.1 kB / 1.357 GB, free: 4.488 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 2.502e-05/0.4261, allocations: 11.91 kB / 1.357 GB, free: 4.477 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.712e-05/0.4261, allocations: 29.7 kB / 1.357 GB, free: 4.441 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001782/0.4263, allocations: 322.8 kB / 1.357 GB, free: 4.117 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001625/0.4265, allocations: 23.98 kB / 1.357 GB, free: 4.094 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000206/0.4267, allocations: 77.98 kB / 1.357 GB, free: 3.996 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003691/0.4271, allocations: 109.8 kB / 1.357 GB, free: 3.867 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.4271, allocations: 0 / 1.357 GB, free: 3.867 MB / 1.045 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004897/0.4275, allocations: 137.6 kB / 1.357 GB, free: 3.727 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 2.675e-05/0.4276, allocations: 11.98 kB / 1.357 GB, free: 3.715 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.6e-06/0.4276, allocations: 0 / 1.357 GB, free: 3.715 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.81e-05/0.4276, allocations: 4 kB / 1.357 GB, free: 3.711 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001753/0.4278, allocations: 19.92 kB / 1.357 GB, free: 3.691 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.374e-06/0.4278, allocations: 0 / 1.357 GB, free: 3.691 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001383/0.4279, allocations: 19.88 kB / 1.357 GB, free: 3.672 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.001e-05/0.4279, allocations: 8 kB / 1.357 GB, free: 3.664 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.0001401/0.4281, allocations: 127.6 kB / 1.357 GB, free: 3.531 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.277e-05/0.4281, allocations: 7.938 kB / 1.357 GB, free: 3.523 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.19e-05/0.4281, allocations: 8.375 kB / 1.357 GB, free: 3.516 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.4281, allocations: 0 / 1.357 GB, free: 3.516 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.4281, allocations: 4 kB / 1.357 GB, free: 3.512 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.296e-06/0.4281, allocations: 3.984 kB / 1.357 GB, free: 3.508 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007129/0.4289, allocations: 337.5 kB / 1.358 GB, free: 3.129 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.4289, allocations: 0 / 1.358 GB, free: 3.129 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.957e-05/0.429, allocations: 19.92 kB / 1.358 GB, free: 3.109 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.374e-06/0.429, allocations: 0 / 1.358 GB, free: 3.109 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.798e-06/0.429, allocations: 0 / 1.358 GB, free: 3.109 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.129e-06/0.429, allocations: 3.938 kB / 1.358 GB, free: 3.105 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.429, allocations: 0 / 1.358 GB, free: 3.105 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004303/0.4294, allocations: 207.4 kB / 1.358 GB, free: 2.887 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 1.838e-05/0.4294, allocations: 11.89 kB / 1.358 GB, free: 2.875 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.38e-05/0.4294, allocations: 8 kB / 1.358 GB, free: 2.867 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001477/0.4296, allocations: 11.92 kB / 1.358 GB, free: 2.855 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.605e-05/0.4296, allocations: 0 / 1.358 GB, free: 2.855 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.304e-05/0.4296, allocations: 7.984 kB / 1.358 GB, free: 2.848 MB / 1.045 GB Notification: Performance of sorting global known variables: time 7.724e-05/0.4297, allocations: 87.94 kB / 1.358 GB, free: 2.762 MB / 1.045 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4297, allocations: 0 / 1.358 GB, free: 2.762 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0004964/0.4302, allocations: 19.98 kB / 1.358 GB, free: 2.742 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.0008405/0.4311, allocations: 0.7397 MB / 1.359 GB, free: 1.977 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0004053/0.4315, allocations: 76.19 kB / 1.359 GB, free: 1.902 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.4315, allocations: 4.125 kB / 1.359 GB, free: 1.898 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0001708/0.4316, allocations: 31.92 kB / 1.359 GB, free: 1.867 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004418/0.4321, allocations: 16.95 kB / 1.359 GB, free: 1.852 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002631/0.4347, allocations: 1.531 MB / 1.36 GB, free: 204 kB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000441/0.4351, allocations: 0.6885 MB / 1.361 GB, free: 15.48 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 4.542e-05/0.4352, allocations: 4 kB / 1.361 GB, free: 15.48 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.753e-05/0.4353, allocations: 23.42 kB / 1.361 GB, free: 15.46 MB / 1.061 GB Notification: Performance of SimCode: time 4.81e-07/0.4353, allocations: 0 / 1.361 GB, free: 15.46 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03178/0.467, allocations: 2.213 MB / 1.363 GB, free: 13.38 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.11/11.58, allocations: 24.55 kB / 1.363 GB, free: 13.36 MB / 1.061 GB " [Timeout remaining time 288] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger_fmu --startTime=0 --stopTime=5 --stepSize=0.002 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.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.683886707993224]