Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001771/0.001771, allocations: 114 kB / 18.14 MB, free: 3.781 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001988/0.001988, allocations: 201.2 kB / 21.43 MB, free: 0.5 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.478/1.478, allocations: 225.6 MB / 250.2 MB, free: 13.26 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.832/2.832, allocations: 476.7 MB / 0.7637 GB, free: 10.11 MB / 0.6231 GB " [Timeout remaining time 177] 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.SampleTrigger,fileNamePrefix="Buildings_11_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_11_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.002914/0.002914, allocations: 67.91 kB / 1.108 GB, free: 7.062 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.976/0.979, allocations: 168.7 MB / 1.273 GB, free: 4.363 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.00225/0.9812, allocations: 0.7614 MB / 1.274 GB, free: 3.605 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001489/0.9827, allocations: 1.082 MB / 1.275 GB, free: 2.512 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.161e-05/0.9827, allocations: 0 / 1.275 GB, free: 2.512 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.677e-05/0.9828, allocations: 3.938 kB / 1.275 GB, free: 2.508 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 8.942e-05/0.9829, allocations: 19.84 kB / 1.275 GB, free: 2.488 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003213/0.9832, allocations: 47.84 kB / 1.275 GB, free: 2.441 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001512/0.9833, allocations: 71.83 kB / 1.275 GB, free: 2.371 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001155/0.9835, allocations: 16.11 kB / 1.275 GB, free: 2.352 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 7.667e-05/0.9835, allocations: 27.92 kB / 1.275 GB, free: 2.324 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 7.338e-05/0.9836, allocations: 35.89 kB / 1.275 GB, free: 2.289 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.699e-05/0.9836, allocations: 7.938 kB / 1.275 GB, free: 2.281 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 6.777e-05/0.9837, allocations: 19.98 kB / 1.275 GB, free: 2.262 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.463e-05/0.9837, allocations: 15.98 kB / 1.275 GB, free: 2.246 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 4.767e-05/0.9838, allocations: 31.8 kB / 1.275 GB, free: 2.215 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001722/0.9839, allocations: 81.45 kB / 1.275 GB, free: 2.137 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.099e-06/0.9839, allocations: 4 kB / 1.275 GB, free: 2.133 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.573e-06/0.9839, allocations: 0 / 1.275 GB, free: 2.133 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.58e-06/0.984, allocations: 0 / 1.275 GB, free: 2.133 MB / 0.9669 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.0006299/0.9846, allocations: 379.2 kB / 1.275 GB, free: 1.715 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.093e-05/0.9846, allocations: 8.031 kB / 1.275 GB, free: 1.707 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.895e-05/0.9847, allocations: 42.73 kB / 1.275 GB, free: 1.656 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.819e-05/0.9847, allocations: 8.891 kB / 1.275 GB, free: 1.648 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001558/0.9849, allocations: 176.3 kB / 1.276 GB, free: 1.438 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.502e-05/0.9849, allocations: 4.375 kB / 1.276 GB, free: 1.434 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.638e-05/0.9849, allocations: 8.375 kB / 1.276 GB, free: 1.426 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002176/0.9851, allocations: 81.84 kB / 1.276 GB, free: 1.34 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.498e-06/0.9851, allocations: 0 / 1.276 GB, free: 1.34 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.248e-06/0.9851, allocations: 0 / 1.276 GB, free: 1.34 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.662e-06/0.9851, allocations: 4 kB / 1.276 GB, free: 1.336 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001826/0.9853, allocations: 43.95 kB / 1.276 GB, free: 1.293 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007581/0.9861, allocations: 324.7 kB / 1.276 GB, free: 0.9258 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001731/0.9863, allocations: 46.56 kB / 1.276 GB, free: 0.8711 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001026/0.9864, allocations: 28.95 kB / 1.276 GB, free: 0.8398 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.356e-05/0.9864, allocations: 0 / 1.276 GB, free: 0.8398 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002381/0.9866, allocations: 87.36 kB / 1.276 GB, free: 0.7422 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 1.353e-06/0.9866, allocations: 0 / 1.276 GB, free: 0.7422 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7): time 0.0004586/0.9871, allocations: 129.8 kB / 1.276 GB, free: 0.6094 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.703e-05/0.9872, allocations: 51.41 kB / 1.276 GB, free: 0.5469 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000126/0.9873, allocations: 129.7 kB / 1.276 GB, free: 420 kB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.653e-05/0.9873, allocations: 37.69 kB / 1.277 GB, free: 376 kB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 7.982e-05/0.9874, allocations: 92.08 kB / 1.277 GB, free: 280 kB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.132e-05/0.9874, allocations: 15.84 kB / 1.277 GB, free: 264 kB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.586e-05/0.9875, allocations: 33.7 kB / 1.277 GB, free: 224 kB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001827/0.9876, allocations: 318.8 kB / 1.277 GB, free: 15.9 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001102/0.9878, allocations: 27.98 kB / 1.277 GB, free: 15.87 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001617/0.9879, allocations: 81.91 kB / 1.277 GB, free: 15.77 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002466/0.9882, allocations: 105.9 kB / 1.277 GB, free: 15.64 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.9882, allocations: 0 / 1.277 GB, free: 15.64 MB / 0.9825 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000331/0.9885, allocations: 137.5 kB / 1.277 GB, free: 15.5 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.587e-05/0.9885, allocations: 4 kB / 1.277 GB, free: 15.5 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.704e-06/0.9885, allocations: 4.078 kB / 1.277 GB, free: 15.5 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.597e-05/0.9885, allocations: 0 / 1.277 GB, free: 15.5 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001287/0.9887, allocations: 19.98 kB / 1.277 GB, free: 15.48 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.215e-06/0.9887, allocations: 7.984 kB / 1.277 GB, free: 15.47 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.854e-05/0.9888, allocations: 11.94 kB / 1.277 GB, free: 15.46 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.32e-05/0.9888, allocations: 8 kB / 1.277 GB, free: 15.45 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.0001142/0.9889, allocations: 131.3 kB / 1.277 GB, free: 15.31 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.671e-05/0.9889, allocations: 11.95 kB / 1.277 GB, free: 15.3 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.278e-05/0.9889, allocations: 12.36 kB / 1.278 GB, free: 15.28 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.903e-06/0.9889, allocations: 0 / 1.278 GB, free: 15.28 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/0.9889, allocations: 0 / 1.278 GB, free: 15.28 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.387e-06/0.9889, allocations: 0 / 1.278 GB, free: 15.28 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005092/0.9895, allocations: 378.3 kB / 1.278 GB, free: 14.86 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.432e-06/0.9895, allocations: 0 / 1.278 GB, free: 14.86 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.723e-05/0.9895, allocations: 16 kB / 1.278 GB, free: 14.84 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.9895, allocations: 0 / 1.278 GB, free: 14.84 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.584e-06/0.9895, allocations: 0 / 1.278 GB, free: 14.84 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.17e-06/0.9895, allocations: 7.922 kB / 1.278 GB, free: 14.83 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.9895, allocations: 0 / 1.278 GB, free: 14.83 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003153/0.9898, allocations: 203.4 kB / 1.278 GB, free: 14.62 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 4.845e-05/0.9899, allocations: 89 kB / 1.278 GB, free: 14.51 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.12e-05/0.9899, allocations: 3.984 kB / 1.278 GB, free: 14.51 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.244e-05/0.99, allocations: 7.938 kB / 1.278 GB, free: 14.5 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.375e-05/0.99, allocations: 11.98 kB / 1.278 GB, free: 14.49 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.25e-06/0.99, allocations: 0 / 1.278 GB, free: 14.49 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 7.044e-05/0.9901, allocations: 95.27 kB / 1.278 GB, free: 14.39 MB / 0.9825 GB Notification: Performance of sort global known variables: time 6e-08/0.9901, allocations: 0 / 1.278 GB, free: 14.39 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002468/0.9904, allocations: 12 kB / 1.278 GB, free: 14.38 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.0007286/0.9911, allocations: 0.7441 MB / 1.279 GB, free: 13.61 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0003009/0.9914, allocations: 80.12 kB / 1.279 GB, free: 13.54 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.9914, allocations: 4.125 kB / 1.279 GB, free: 13.53 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001135/0.9915, allocations: 27.98 kB / 1.279 GB, free: 13.5 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002792/0.9918, allocations: 15.92 kB / 1.279 GB, free: 13.49 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00187/0.9937, allocations: 1.536 MB / 1.281 GB, free: 11.83 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003122/0.994, allocations: 0.6885 MB / 1.281 GB, free: 11.12 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.406e-05/0.994, allocations: 7.984 kB / 1.281 GB, free: 11.11 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.494e-05/0.9941, allocations: 19.44 kB / 1.281 GB, free: 11.09 MB / 0.9825 GB Notification: Performance of SimCode: time 4.9e-07/0.9941, allocations: 4 kB / 1.281 GB, free: 11.09 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02582/1.02, allocations: 2.108 MB / 1.283 GB, free: 9.074 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.02/9.04, allocations: 13.69 kB / 1.283 GB, free: 9.066 MB / 0.9825 GB " [Timeout remaining time 291] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.mat --tempDir=temp_Buildings_11_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger_fmu --startTime=0 --stopTime=5 --stepSize=0.002 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_11_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: 15.230922990012914]