Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001363/0.001363, allocations: 97.92 kB / 19.73 MB, free: 2.133 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.001401/0.001401, allocations: 219.8 kB / 23.03 MB, free: 4.945 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.472/1.472, allocations: 230.6 MB / 256.8 MB, free: 7.797 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.211/3.211, allocations: 0.49 GB / 0.7959 GB, free: 35.27 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.Discrete.Validation.TriggeredSampler,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler",fmuType="cs",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.002061/0.002061, allocations: 66.94 kB / 1.155 GB, free: 25.51 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3706/0.3727, allocations: 176.1 MB / 1.327 GB, free: 1.508 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.002809/0.3755, allocations: 0.7455 MB / 1.327 GB, free: 0.7695 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001966/0.3774, allocations: 1.182 MB / 1.328 GB, free: 15.57 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.686e-05/0.3775, allocations: 3.938 kB / 1.328 GB, free: 15.57 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 4.044e-05/0.3775, allocations: 7.875 kB / 1.328 GB, free: 15.56 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 8.344e-05/0.3776, allocations: 15.88 kB / 1.329 GB, free: 15.55 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005036/0.3781, allocations: 142.9 kB / 1.329 GB, free: 15.41 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0001996/0.3783, allocations: 123.8 kB / 1.329 GB, free: 15.29 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001041/0.3784, allocations: 12.19 kB / 1.329 GB, free: 15.27 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000106/0.3785, allocations: 51.89 kB / 1.329 GB, free: 15.22 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001035/0.3786, allocations: 51.81 kB / 1.329 GB, free: 15.17 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 2.981e-05/0.3787, allocations: 12 kB / 1.329 GB, free: 15.16 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 9.357e-05/0.3787, allocations: 27.98 kB / 1.329 GB, free: 15.13 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 3.127e-05/0.3788, allocations: 19.88 kB / 1.329 GB, free: 15.11 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 7.589e-05/0.3789, allocations: 47.83 kB / 1.329 GB, free: 15.07 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0002165/0.3791, allocations: 127.8 kB / 1.329 GB, free: 14.94 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.3791, allocations: 0 / 1.329 GB, free: 14.94 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.252e-06/0.3791, allocations: 4 kB / 1.329 GB, free: 14.94 MB / 1.029 GB Notification: Performance of Transformations before backend: time 5.681e-06/0.3791, allocations: 0 / 1.329 GB, free: 14.94 MB / 1.029 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.0006411/0.3797, allocations: 343.8 kB / 1.329 GB, free: 14.57 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 5.151e-05/0.3798, allocations: 8.031 kB / 1.329 GB, free: 14.56 MB / 1.029 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.749e-05/0.3798, allocations: 4.172 kB / 1.329 GB, free: 14.55 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.005e-05/0.3798, allocations: 34.75 kB / 1.329 GB, free: 14.51 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001323/0.38, allocations: 16.89 kB / 1.329 GB, free: 14.5 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001248/0.3801, allocations: 122.4 kB / 1.33 GB, free: 14.35 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.902e-05/0.3801, allocations: 4.375 kB / 1.33 GB, free: 14.35 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.138e-05/0.3802, allocations: 12.31 kB / 1.33 GB, free: 14.34 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000229/0.3804, allocations: 73.78 kB / 1.33 GB, free: 14.26 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.969e-06/0.3804, allocations: 0 / 1.33 GB, free: 14.26 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.261e-05/0.3804, allocations: 0 / 1.33 GB, free: 14.26 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.14e-06/0.3804, allocations: 0 / 1.33 GB, free: 14.26 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000197/0.3806, allocations: 51.95 kB / 1.33 GB, free: 14.21 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005857/0.3812, allocations: 295.8 kB / 1.33 GB, free: 13.88 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002913/0.3815, allocations: 54.55 kB / 1.33 GB, free: 13.81 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001074/0.3816, allocations: 32.95 kB / 1.33 GB, free: 13.78 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.345e-05/0.3816, allocations: 0 / 1.33 GB, free: 13.78 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002995/0.3819, allocations: 95.39 kB / 1.33 GB, free: 13.67 MB / 1.029 GB Notification: Performance of pre-optimization done (n=8): time 1.473e-06/0.3819, allocations: 4 kB / 1.33 GB, free: 13.67 MB / 1.029 GB Notification: Performance of matching and sorting (n=8): time 0.0004639/0.3824, allocations: 157.5 kB / 1.33 GB, free: 13.51 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.176e-05/0.3824, allocations: 51.41 kB / 1.33 GB, free: 13.45 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001211/0.3826, allocations: 117.8 kB / 1.331 GB, free: 13.32 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.88e-05/0.3826, allocations: 29.7 kB / 1.331 GB, free: 13.29 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 7.07e-05/0.3826, allocations: 96.08 kB / 1.331 GB, free: 13.19 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.778e-05/0.3827, allocations: 23.8 kB / 1.331 GB, free: 13.16 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001262/0.3828, allocations: 37.7 kB / 1.331 GB, free: 13.12 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001808/0.383, allocations: 326.8 kB / 1.331 GB, free: 12.79 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002179/0.3832, allocations: 85.59 kB / 1.331 GB, free: 12.7 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002171/0.3834, allocations: 122.8 kB / 1.331 GB, free: 12.56 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002994/0.3837, allocations: 146.8 kB / 1.331 GB, free: 12.39 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.3837, allocations: 3.938 kB / 1.331 GB, free: 12.39 MB / 1.029 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000536/0.3843, allocations: 252.8 kB / 1.332 GB, free: 12.12 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 4.23e-05/0.3843, allocations: 29.7 kB / 1.332 GB, free: 12.09 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.243e-06/0.3843, allocations: 4 kB / 1.332 GB, free: 12.08 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.418e-05/0.3843, allocations: 0 / 1.332 GB, free: 12.08 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001096/0.3844, allocations: 24.08 kB / 1.332 GB, free: 12.06 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.961e-06/0.3844, allocations: 0 / 1.332 GB, free: 12.06 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002102/0.3846, allocations: 43.89 kB / 1.332 GB, free: 12.02 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.248e-05/0.3847, allocations: 4 kB / 1.332 GB, free: 12.01 MB / 1.029 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 0.0001245/0.3848, allocations: 126.3 kB / 1.332 GB, free: 11.88 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.822e-05/0.3848, allocations: 7.953 kB / 1.332 GB, free: 11.87 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003268/0.3851, allocations: 133.9 kB / 1.332 GB, free: 11.73 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.3851, allocations: 0 / 1.332 GB, free: 11.73 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.3851, allocations: 3.984 kB / 1.332 GB, free: 11.73 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.3852, allocations: 3.938 kB / 1.332 GB, free: 11.72 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004699/0.3856, allocations: 333.7 kB / 1.332 GB, free: 11.35 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.3856, allocations: 0 / 1.332 GB, free: 11.35 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.336e-05/0.3857, allocations: 11.92 kB / 1.332 GB, free: 11.34 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.884e-06/0.3857, allocations: 7.938 kB / 1.332 GB, free: 11.33 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.122e-05/0.3857, allocations: 8 kB / 1.332 GB, free: 11.32 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.216e-06/0.3857, allocations: 3.938 kB / 1.332 GB, free: 11.32 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.3857, allocations: 0 / 1.332 GB, free: 11.32 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003313/0.386, allocations: 215.4 kB / 1.333 GB, free: 11.09 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.578e-05/0.3861, allocations: 11.95 kB / 1.333 GB, free: 11.08 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.814e-05/0.3861, allocations: 48 / 1.333 GB, free: 11.08 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.045e-05/0.3862, allocations: 15.91 kB / 1.333 GB, free: 11.06 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.987e-05/0.3862, allocations: 11.98 kB / 1.333 GB, free: 11.05 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.923e-06/0.3862, allocations: 0 / 1.333 GB, free: 11.05 MB / 1.029 GB Notification: Performance of sorting global known variables: time 6.903e-05/0.3863, allocations: 95.81 kB / 1.333 GB, free: 10.96 MB / 1.029 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3863, allocations: 4 kB / 1.333 GB, free: 10.95 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002667/0.3865, allocations: 24 kB / 1.333 GB, free: 10.93 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 ($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.0007331/0.3873, allocations: 0.7475 MB / 1.333 GB, free: 10.16 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0004318/0.3877, allocations: 193.8 kB / 1.334 GB, free: 9.949 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.3877, allocations: 4.062 kB / 1.334 GB, free: 9.945 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001244/0.3878, allocations: 43.91 kB / 1.334 GB, free: 9.902 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002844/0.3881, allocations: 20.28 kB / 1.334 GB, free: 9.883 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002506/0.3906, allocations: 1.847 MB / 1.335 GB, free: 7.895 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.64e-05/0.3907, allocations: 75.27 kB / 1.336 GB, free: 7.801 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 3.553e-05/0.3907, allocations: 4 kB / 1.336 GB, free: 7.797 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.524e-05/0.3908, allocations: 27.42 kB / 1.336 GB, free: 7.77 MB / 1.029 GB Notification: Performance of SimCode: time 4.71e-07/0.3908, allocations: 0 / 1.336 GB, free: 7.77 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02422/0.415, allocations: 2.844 MB / 1.338 GB, free: 5.109 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.57/11.98, allocations: 12.33 kB / 1.338 GB, free: 5.102 MB / 1.029 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe 2>&1) [Timeout 420.0] [Calling os._exit(0), Time elapsed: 18.693247964954935] Failed to read output from testmodel.py, exit status != 0: 12.143990309908986 12.160000674 11.777712419 Calling exit ...