Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_13_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.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.0008448/0.0008448, allocations: 80.55 kB / 19.96 MB, free: 4.602 MB / 18.57 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.0008685/0.0008685, allocations: 177.2 kB / 23.24 MB, free: 1.324 MB / 18.57 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 0.9241/0.9241, allocations: 177.1 MB / 203.5 MB, free: 5.723 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 13.0.2-maint.13.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 13.0.2-maint.13.x/package.mo): time 1.809/1.809, allocations: 389.5 MB / 0.6343 GB, free: 12.57 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 13.0.2-maint.13.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.Discrete.Validation.TriggeredSampler,fileNamePrefix="Buildings_13_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler,fileNamePrefix="Buildings_13_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.833e-06/1.833e-06, allocations: 0 / 1.001 GB, free: 13.54 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.301e-05/1.485e-05, allocations: 2.281 kB / 1.001 GB, free: 13.53 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.001283/0.001298, allocations: 0.7401 MB / 1.001 GB, free: 12.79 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.001046/0.002343, allocations: 1.19 MB / 1.003 GB, free: 11.59 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.611e-05/0.002389, allocations: 7.938 kB / 1.003 GB, free: 11.58 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 2.552e-05/0.002415, allocations: 3.938 kB / 1.003 GB, free: 11.58 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 6.224e-05/0.002477, allocations: 11.88 kB / 1.003 GB, free: 11.57 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003732/0.00285, allocations: 143.4 kB / 1.003 GB, free: 11.43 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 0.0001352/0.002986, allocations: 127.7 kB / 1.003 GB, free: 11.3 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 8.984e-05/0.003075, allocations: 20.11 kB / 1.003 GB, free: 11.28 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 9.946e-05/0.003175, allocations: 71.88 kB / 1.003 GB, free: 11.21 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 7.168e-05/0.003247, allocations: 39.92 kB / 1.003 GB, free: 11.17 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 2.061e-05/0.003267, allocations: 12 kB / 1.003 GB, free: 11.16 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 5.356e-05/0.003321, allocations: 20 kB / 1.003 GB, free: 11.14 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 2.202e-05/0.003343, allocations: 19.92 kB / 1.003 GB, free: 11.12 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 4.917e-05/0.003392, allocations: 43.89 kB / 1.003 GB, free: 11.08 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0001623/0.003554, allocations: 143.6 kB / 1.003 GB, free: 10.94 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 2.084e-06/0.003556, allocations: 4 kB / 1.003 GB, free: 10.93 MB / 0.9636 GB Notification: Performance of FrontEnd: time 7.01e-07/0.003557, allocations: 0 / 1.003 GB, free: 10.93 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 3.697e-06/0.003561, allocations: 7.938 kB / 1.003 GB, free: 10.93 MB / 0.9636 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0004072/0.003968, allocations: 339.7 kB / 1.004 GB, free: 10.56 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 3.531e-05/0.004003, allocations: 13.34 kB / 1.004 GB, free: 10.55 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.666e-05/0.00403, allocations: 34.73 kB / 1.004 GB, free: 10.5 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7e-05/0.0041, allocations: 12.89 kB / 1.004 GB, free: 10.49 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.847e-05/0.004168, allocations: 113.8 kB / 1.004 GB, free: 10.36 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.211e-05/0.00418, allocations: 4.375 kB / 1.004 GB, free: 10.35 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.486e-05/0.004195, allocations: 8.375 kB / 1.004 GB, free: 10.34 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001313/0.004326, allocations: 82.14 kB / 1.004 GB, free: 10.26 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.662e-06/0.004333, allocations: 192 / 1.004 GB, free: 10.26 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.358e-06/0.004343, allocations: 4.375 kB / 1.004 GB, free: 10.25 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.599e-06/0.004347, allocations: 3.938 kB / 1.004 GB, free: 10.25 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.77e-05/0.004445, allocations: 43.95 kB / 1.004 GB, free: 10.21 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003593/0.004804, allocations: 295.7 kB / 1.004 GB, free: 9.875 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000117/0.004921, allocations: 58.55 kB / 1.004 GB, free: 9.809 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.147e-05/0.004973, allocations: 24.97 kB / 1.004 GB, free: 9.781 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 1.59e-05/0.004988, allocations: 4 kB / 1.004 GB, free: 9.777 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001427/0.005131, allocations: 95.33 kB / 1.004 GB, free: 9.672 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=8): time 1.002e-06/0.005132, allocations: 0 / 1.004 GB, free: 9.672 MB / 0.9636 GB Notification: Performance of matching and sorting (n=8): time 0.0002723/0.005404, allocations: 157.6 kB / 1.004 GB, free: 9.512 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.6e-05/0.00543, allocations: 51.41 kB / 1.004 GB, free: 9.449 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.776e-05/0.005498, allocations: 125.8 kB / 1.005 GB, free: 9.316 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 1.717e-05/0.005515, allocations: 33.64 kB / 1.005 GB, free: 9.277 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 4.205e-05/0.005557, allocations: 96.09 kB / 1.005 GB, free: 9.18 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 1.575e-05/0.005573, allocations: 19.83 kB / 1.005 GB, free: 9.16 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.741e-05/0.005621, allocations: 37.69 kB / 1.005 GB, free: 9.117 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 7.126e-05/0.005692, allocations: 326.7 kB / 1.005 GB, free: 8.789 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001041/0.005796, allocations: 81.66 kB / 1.005 GB, free: 8.703 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001109/0.005907, allocations: 122.8 kB / 1.005 GB, free: 8.559 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001577/0.006065, allocations: 158.7 kB / 1.005 GB, free: 8.379 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.006067, allocations: 0 / 1.005 GB, free: 8.379 MB / 0.9636 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002621/0.006329, allocations: 244.8 kB / 1.006 GB, free: 8.121 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 2.664e-05/0.006355, allocations: 41.69 kB / 1.006 GB, free: 8.074 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.168e-06/0.006359, allocations: 0 / 1.006 GB, free: 8.074 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.076e-05/0.00637, allocations: 4 kB / 1.006 GB, free: 8.07 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.03e-05/0.00643, allocations: 11.98 kB / 1.006 GB, free: 8.059 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.2e-06/0.006436, allocations: 4 kB / 1.006 GB, free: 8.055 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001024/0.006538, allocations: 40.08 kB / 1.006 GB, free: 8.016 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.538e-05/0.006553, allocations: 11.98 kB / 1.006 GB, free: 8.004 MB / 0.9636 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 9 (triSam1.y,$PRE.triSam1.y,triSam.y,$PRE.triSam.y,booPul.y,$PRE.booPul.y,$whenCondition3,$whenCondition1,$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): 10 * Array equations: 0 * Algorithm blocks: 1 * 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 6.248e-05/0.006616, allocations: 121.7 kB / 1.006 GB, free: 7.875 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.105e-06/0.006624, allocations: 7.953 kB / 1.006 GB, free: 7.867 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001691/0.006793, allocations: 126.1 kB / 1.006 GB, free: 7.738 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.903e-06/0.006795, allocations: 0 / 1.006 GB, free: 7.738 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.006799, allocations: 0 / 1.006 GB, free: 7.738 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.895e-06/0.006802, allocations: 4 kB / 1.006 GB, free: 7.734 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002397/0.007041, allocations: 345.6 kB / 1.006 GB, free: 7.348 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.007043, allocations: 3.984 kB / 1.006 GB, free: 7.344 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.006e-05/0.007073, allocations: 11.98 kB / 1.006 GB, free: 7.332 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.007075, allocations: 0 / 1.006 GB, free: 7.332 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.512e-06/0.007081, allocations: 0 / 1.006 GB, free: 7.332 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.41e-07/0.007082, allocations: 0 / 1.006 GB, free: 7.332 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.007082, allocations: 0 / 1.006 GB, free: 7.332 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001622/0.007245, allocations: 223.3 kB / 1.007 GB, free: 7.098 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 8.405e-06/0.007253, allocations: 15.88 kB / 1.007 GB, free: 7.082 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.153e-05/0.007265, allocations: 7.938 kB / 1.007 GB, free: 7.074 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.162e-05/0.007306, allocations: 7.984 kB / 1.007 GB, free: 7.066 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.077e-05/0.007337, allocations: 4 kB / 1.007 GB, free: 7.062 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.643e-06/0.007344, allocations: 4 kB / 1.007 GB, free: 7.059 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 3.816e-05/0.007382, allocations: 95.2 kB / 1.007 GB, free: 6.965 MB / 0.9636 GB Notification: Performance of sort global known variables: time 7e-08/0.007382, allocations: 0 / 1.007 GB, free: 6.965 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0001734/0.007555, allocations: 24 kB / 1.007 GB, free: 6.941 MB / 0.9636 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 ($whenCondition3,$whenCondition1,$whenCondition2,booPul.y,triSam.y,triSam1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.00035/0.007905, allocations: 0.7592 MB / 1.007 GB, free: 6.152 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0002287/0.008134, allocations: 193 kB / 1.008 GB, free: 5.945 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.062e-06/0.008135, allocations: 0 / 1.008 GB, free: 5.945 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 6.177e-05/0.008197, allocations: 35.92 kB / 1.008 GB, free: 5.91 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001867/0.008383, allocations: 21.08 kB / 1.008 GB, free: 5.891 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001452/0.009836, allocations: 1.834 MB / 1.009 GB, free: 3.91 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.35e-05/0.009879, allocations: 79.33 kB / 1.01 GB, free: 3.812 MB / 0.9636 GB Notification: Performance of simCode: alias equations: time 2.232e-05/0.009902, allocations: 4 kB / 1.01 GB, free: 3.809 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.308e-05/0.009935, allocations: 20.48 kB / 1.01 GB, free: 3.789 MB / 0.9636 GB Notification: Performance of SimCode: time 4.81e-07/0.009935, allocations: 4 kB / 1.01 GB, free: 3.785 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07321/0.08315, allocations: 3.344 MB / 1.013 GB, free: 0.6133 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.102/7.185, allocations: 17.17 kB / 1.013 GB, free: 0.6016 MB / 0.9636 GB " [Timeout remaining time 293] (rm -f Buildings_13_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; mkfifo Buildings_13_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; head -c 1048576 < Buildings_13_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe >> ../files/Buildings_13_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.sim & (cd run_OMSimulator && /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --stripRoot --tempDir=temp_Buildings_13_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 ../Buildings_13_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler.fmu) > Buildings_13_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe 2>&1) [Timeout 52.5] (rm -f Buildings_13_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_fmpy.pipe ; mkfifo Buildings_13_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_fmpy.pipe ; head -c 1048576 < Buildings_13_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_fmpy.pipe >> /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_13_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_fmpy.sim & (cd run_fmpy && python3 -m fmpy simulate --output-file ../Buildings_13_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_fmpy_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 ../Buildings_13_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler.fmu) > Buildings_13_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_fmpy.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.683968614786863]