Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001688/0.001688, allocations: 103 kB / 16.45 MB, free: 6.449 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.002148/0.002148, allocations: 212.9 kB / 19.43 MB, free: 3.637 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.494/1.494, allocations: 230.6 MB / 252.8 MB, free: 9.117 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.216/3.216, allocations: 0.49 GB / 0.7916 GB, free: 33.49 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.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_12_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_12_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.002003/0.002003, allocations: 71.39 kB / 1.149 GB, free: 26.49 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3734/0.3754, allocations: 176.1 MB / 1.321 GB, free: 3.371 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime): time 0.00241/0.3778, allocations: 0.7693 MB / 1.322 GB, free: 2.605 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001985/0.3798, allocations: 1.1 MB / 1.323 GB, free: 1.492 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.909e-05/0.3799, allocations: 0 / 1.323 GB, free: 1.492 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 3.995e-05/0.3799, allocations: 11.88 kB / 1.323 GB, free: 1.48 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 8.039e-05/0.38, allocations: 7.922 kB / 1.323 GB, free: 1.473 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003351/0.3803, allocations: 51.81 kB / 1.323 GB, free: 1.422 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0001482/0.3805, allocations: 75.78 kB / 1.323 GB, free: 1.348 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001215/0.3806, allocations: 20.17 kB / 1.323 GB, free: 1.324 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 9.447e-05/0.3807, allocations: 31.86 kB / 1.323 GB, free: 1.293 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 7.114e-05/0.3808, allocations: 35.83 kB / 1.323 GB, free: 1.258 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 2.01e-05/0.3808, allocations: 12 kB / 1.323 GB, free: 1.246 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 7.494e-05/0.3809, allocations: 23.92 kB / 1.323 GB, free: 1.223 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 2.534e-05/0.3809, allocations: 11.98 kB / 1.323 GB, free: 1.211 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 5.005e-05/0.3809, allocations: 31.8 kB / 1.323 GB, free: 1.18 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.000186/0.3811, allocations: 83.95 kB / 1.323 GB, free: 1.098 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.3811, allocations: 0 / 1.323 GB, free: 1.098 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.463e-06/0.3811, allocations: 0 / 1.323 GB, free: 1.098 MB / 1.014 GB Notification: Performance of Transformations before backend: time 5.631e-06/0.3811, allocations: 0 / 1.323 GB, free: 1.098 MB / 1.014 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.0007191/0.3819, allocations: 379.1 kB / 1.323 GB, free: 0.6797 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.378e-05/0.3819, allocations: 15.98 kB / 1.323 GB, free: 0.6641 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.132e-05/0.3819, allocations: 38.73 kB / 1.323 GB, free: 0.6172 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.78e-05/0.382, allocations: 8.891 kB / 1.323 GB, free: 0.6094 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001699/0.3822, allocations: 172.3 kB / 1.324 GB, free: 412 kB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.747e-05/0.3822, allocations: 4.375 kB / 1.324 GB, free: 408 kB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.917e-05/0.3822, allocations: 8.375 kB / 1.324 GB, free: 400 kB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002192/0.3824, allocations: 69.97 kB / 1.324 GB, free: 324 kB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.674e-06/0.3824, allocations: 0 / 1.324 GB, free: 324 kB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.036e-05/0.3824, allocations: 0 / 1.324 GB, free: 324 kB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.33e-06/0.3824, allocations: 4 kB / 1.324 GB, free: 320 kB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001872/0.3826, allocations: 47.89 kB / 1.324 GB, free: 272 kB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008282/0.3834, allocations: 320.7 kB / 1.324 GB, free: 15.9 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003023/0.3838, allocations: 62.56 kB / 1.324 GB, free: 15.83 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001058/0.3839, allocations: 28.95 kB / 1.324 GB, free: 15.8 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.729e-05/0.3839, allocations: 4 kB / 1.324 GB, free: 15.8 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002155/0.3841, allocations: 71.38 kB / 1.324 GB, free: 15.71 MB / 1.029 GB Notification: Performance of pre-optimization done (n=7): time 1.422e-06/0.3841, allocations: 4 kB / 1.324 GB, free: 15.71 MB / 1.029 GB Notification: Performance of matching and sorting (n=7): time 0.0004438/0.3845, allocations: 133.6 kB / 1.324 GB, free: 15.57 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.452e-05/0.3846, allocations: 59.34 kB / 1.324 GB, free: 15.5 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001139/0.3847, allocations: 118.1 kB / 1.325 GB, free: 15.38 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.495e-05/0.3847, allocations: 33.7 kB / 1.325 GB, free: 15.34 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 6.536e-05/0.3848, allocations: 92.08 kB / 1.325 GB, free: 15.25 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.28e-05/0.3848, allocations: 15.91 kB / 1.325 GB, free: 15.23 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.424e-05/0.3849, allocations: 25.7 kB / 1.325 GB, free: 15.2 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001516/0.385, allocations: 330.8 kB / 1.325 GB, free: 14.87 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001166/0.3851, allocations: 27.98 kB / 1.325 GB, free: 14.84 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001522/0.3853, allocations: 74.03 kB / 1.325 GB, free: 14.75 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002474/0.3855, allocations: 109.8 kB / 1.325 GB, free: 14.62 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.3856, allocations: 7.938 kB / 1.325 GB, free: 14.61 MB / 1.029 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003305/0.3859, allocations: 125.5 kB / 1.325 GB, free: 14.48 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.811e-05/0.3859, allocations: 11.98 kB / 1.325 GB, free: 14.47 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.659e-06/0.3859, allocations: 0 / 1.325 GB, free: 14.47 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.681e-05/0.3859, allocations: 4 kB / 1.325 GB, free: 14.46 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001297/0.3861, allocations: 20.2 kB / 1.325 GB, free: 14.45 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.556e-06/0.3861, allocations: 11.94 kB / 1.325 GB, free: 14.43 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.986e-05/0.3861, allocations: 15.92 kB / 1.325 GB, free: 14.42 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.545e-05/0.3862, allocations: 4 kB / 1.325 GB, free: 14.41 MB / 1.029 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.3863, allocations: 119.5 kB / 1.325 GB, free: 14.29 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.636e-05/0.3863, allocations: 7.953 kB / 1.325 GB, free: 14.28 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.265e-05/0.3863, allocations: 12.38 kB / 1.326 GB, free: 14.27 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.963e-06/0.3863, allocations: 0 / 1.326 GB, free: 14.27 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.578e-06/0.3863, allocations: 0 / 1.326 GB, free: 14.27 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/0.3863, allocations: 7.984 kB / 1.326 GB, free: 14.26 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005472/0.3869, allocations: 374.4 kB / 1.326 GB, free: 13.84 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.3869, allocations: 0 / 1.326 GB, free: 13.84 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.81e-05/0.387, allocations: 7.984 kB / 1.326 GB, free: 13.83 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.387, allocations: 0 / 1.326 GB, free: 13.83 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.288e-05/0.387, allocations: 8 kB / 1.326 GB, free: 13.82 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.216e-06/0.387, allocations: 7.875 kB / 1.326 GB, free: 13.81 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.387, allocations: 0 / 1.326 GB, free: 13.81 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003858/0.3874, allocations: 207.4 kB / 1.326 GB, free: 13.59 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 5.41e-05/0.3874, allocations: 85.06 kB / 1.326 GB, free: 13.49 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.655e-05/0.3874, allocations: 0 / 1.326 GB, free: 13.49 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.929e-05/0.3875, allocations: 11.92 kB / 1.326 GB, free: 13.48 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.458e-05/0.3876, allocations: 11.98 kB / 1.326 GB, free: 13.47 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.551e-06/0.3876, allocations: 0 / 1.326 GB, free: 13.47 MB / 1.029 GB Notification: Performance of sorting global known variables: time 6.517e-05/0.3876, allocations: 95.27 kB / 1.326 GB, free: 13.38 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.3876, allocations: 0 / 1.326 GB, free: 13.38 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002679/0.3879, allocations: 19.94 kB / 1.326 GB, free: 13.36 MB / 1.029 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.0007101/0.3886, allocations: 0.7397 MB / 1.327 GB, free: 12.59 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002942/0.3889, allocations: 75.88 kB / 1.327 GB, free: 12.52 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.3889, allocations: 0 / 1.327 GB, free: 12.52 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001177/0.389, allocations: 32.47 kB / 1.327 GB, free: 12.48 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002691/0.3893, allocations: 17.78 kB / 1.327 GB, free: 12.47 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001949/0.3912, allocations: 1.52 MB / 1.329 GB, free: 10.82 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003887/0.3916, allocations: 0.6924 MB / 1.329 GB, free: 10.11 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 3.155e-05/0.3917, allocations: 4 kB / 1.329 GB, free: 10.1 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.158e-05/0.3917, allocations: 23.42 kB / 1.329 GB, free: 10.08 MB / 1.029 GB Notification: Performance of SimCode: time 3.11e-07/0.3917, allocations: 3.938 kB / 1.329 GB, free: 10.07 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02759/0.4193, allocations: 2.128 MB / 1.331 GB, free: 8.125 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.104/8.523, allocations: 6.312 kB / 1.331 GB, free: 8.121 MB / 1.029 GB " [Timeout remaining time 291] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime_fmu --startTime=1 --stopTime=6 --stepSize=0.002 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 15.23563240794465]