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.001578/0.001578, allocations: 101.5 kB / 19.73 MB, free: 2.23 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.00193/0.00193, allocations: 218 kB / 23.04 MB, free: 5.074 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.454/1.454, allocations: 230.6 MB / 256.8 MB, free: 7.977 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.204/3.204, allocations: 0.49 GB / 0.7959 GB, free: 33.46 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.002012/0.002012, allocations: 62.44 kB / 1.155 GB, free: 25.77 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3876/0.3896, allocations: 176.1 MB / 1.327 GB, free: 2.012 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.001966/0.3916, allocations: 0.7687 MB / 1.327 GB, free: 1.25 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.00162/0.3932, allocations: 1.205 MB / 1.329 GB, free: 32 kB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.606e-05/0.3932, allocations: 0 / 1.329 GB, free: 32 kB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 3.663e-05/0.3933, allocations: 7.922 kB / 1.329 GB, free: 24 kB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 9.628e-05/0.3934, allocations: 19.86 kB / 1.329 GB, free: 4 kB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005287/0.3939, allocations: 142.6 kB / 1.329 GB, free: 15.87 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0001992/0.3941, allocations: 119.8 kB / 1.329 GB, free: 15.75 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001089/0.3942, allocations: 20.16 kB / 1.329 GB, free: 15.73 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 9.785e-05/0.3943, allocations: 51.91 kB / 1.329 GB, free: 15.68 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001008/0.3944, allocations: 59.69 kB / 1.329 GB, free: 15.62 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 2.783e-05/0.3944, allocations: 15.98 kB / 1.329 GB, free: 15.6 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 7.766e-05/0.3945, allocations: 27.98 kB / 1.329 GB, free: 15.57 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 1.84e-05/0.3945, allocations: 4 kB / 1.329 GB, free: 15.57 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 8.074e-05/0.3946, allocations: 51.78 kB / 1.329 GB, free: 15.52 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0002012/0.3948, allocations: 131.8 kB / 1.329 GB, free: 15.39 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.3948, allocations: 0 / 1.329 GB, free: 15.39 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.112e-06/0.3948, allocations: 0 / 1.329 GB, free: 15.39 MB / 1.029 GB Notification: Performance of Transformations before backend: time 5.31e-06/0.3948, allocations: 0 / 1.329 GB, free: 15.39 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.0006058/0.3954, allocations: 343.8 kB / 1.33 GB, free: 15.02 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.896e-05/0.3955, allocations: 12.03 kB / 1.33 GB, free: 15.01 MB / 1.029 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.163e-05/0.3955, allocations: 8.188 kB / 1.33 GB, free: 15 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.737e-05/0.3955, allocations: 30.75 kB / 1.33 GB, free: 14.96 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.576e-05/0.3956, allocations: 16.89 kB / 1.33 GB, free: 14.95 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001112/0.3957, allocations: 122.4 kB / 1.33 GB, free: 14.8 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.553e-05/0.3958, allocations: 8.375 kB / 1.33 GB, free: 14.79 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.607e-05/0.3958, allocations: 8.375 kB / 1.33 GB, free: 14.79 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002047/0.396, allocations: 73.78 kB / 1.33 GB, free: 14.71 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.634e-06/0.396, allocations: 4 kB / 1.33 GB, free: 14.7 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.738e-06/0.396, allocations: 0 / 1.33 GB, free: 14.7 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.837e-06/0.396, allocations: 0 / 1.33 GB, free: 14.7 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001981/0.3962, allocations: 55.89 kB / 1.33 GB, free: 14.65 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005374/0.3967, allocations: 311.7 kB / 1.33 GB, free: 14.3 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001852/0.3969, allocations: 62.56 kB / 1.33 GB, free: 14.23 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001013/0.397, allocations: 24.97 kB / 1.33 GB, free: 14.2 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.006e-05/0.397, allocations: 12 kB / 1.33 GB, free: 14.19 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003159/0.3974, allocations: 95.33 kB / 1.33 GB, free: 14.09 MB / 1.029 GB Notification: Performance of pre-optimization done (n=8): time 1.342e-06/0.3974, allocations: 0 / 1.33 GB, free: 14.09 MB / 1.029 GB Notification: Performance of matching and sorting (n=8): time 0.0004647/0.3978, allocations: 153.5 kB / 1.33 GB, free: 13.93 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.665e-05/0.3979, allocations: 55.41 kB / 1.331 GB, free: 13.86 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001017/0.398, allocations: 117.8 kB / 1.331 GB, free: 13.74 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.962e-05/0.398, allocations: 25.7 kB / 1.331 GB, free: 13.71 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 8.357e-05/0.3981, allocations: 100.1 kB / 1.331 GB, free: 13.61 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.751e-05/0.3981, allocations: 23.78 kB / 1.331 GB, free: 13.58 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.984e-05/0.3982, allocations: 37.7 kB / 1.331 GB, free: 13.54 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001532/0.3984, allocations: 326.8 kB / 1.331 GB, free: 13.21 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001777/0.3985, allocations: 55.89 kB / 1.331 GB, free: 13.16 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001878/0.3987, allocations: 92.98 kB / 1.331 GB, free: 13.05 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003053/0.399, allocations: 150.8 kB / 1.331 GB, free: 12.88 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.849e-06/0.399, allocations: 4 kB / 1.331 GB, free: 12.88 MB / 1.029 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004924/0.3995, allocations: 215.1 kB / 1.332 GB, free: 12.65 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 4.335e-05/0.3996, allocations: 41.84 kB / 1.332 GB, free: 12.61 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.08e-06/0.3996, allocations: 0 / 1.332 GB, free: 12.61 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.659e-05/0.3996, allocations: 4 kB / 1.332 GB, free: 12.6 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00011/0.3997, allocations: 11.98 kB / 1.332 GB, free: 12.59 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.077e-06/0.3997, allocations: 4 kB / 1.332 GB, free: 12.59 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002129/0.3999, allocations: 35.91 kB / 1.332 GB, free: 12.55 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.591e-05/0.3999, allocations: 11.98 kB / 1.332 GB, free: 12.54 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.0001287/0.4001, allocations: 130.2 kB / 1.332 GB, free: 12.4 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.646e-05/0.4001, allocations: 7.953 kB / 1.332 GB, free: 12.39 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003336/0.4004, allocations: 126 kB / 1.332 GB, free: 12.26 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.775e-06/0.4004, allocations: 3.938 kB / 1.332 GB, free: 12.26 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.4004, allocations: 0 / 1.332 GB, free: 12.26 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.821e-06/0.4004, allocations: 3.938 kB / 1.332 GB, free: 12.25 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004851/0.4009, allocations: 345.6 kB / 1.332 GB, free: 11.87 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.4009, allocations: 0 / 1.332 GB, free: 11.87 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.56e-05/0.401, allocations: 11.98 kB / 1.332 GB, free: 11.86 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.275e-06/0.401, allocations: 0 / 1.332 GB, free: 11.86 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.124e-05/0.401, allocations: 4 kB / 1.332 GB, free: 11.85 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.479e-06/0.401, allocations: 7.938 kB / 1.332 GB, free: 11.84 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.401, allocations: 0 / 1.332 GB, free: 11.84 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003323/0.4013, allocations: 219.4 kB / 1.333 GB, free: 11.61 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.722e-05/0.4014, allocations: 11.95 kB / 1.333 GB, free: 11.6 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.56e-05/0.4014, allocations: 0 / 1.333 GB, free: 11.6 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.944e-05/0.4015, allocations: 11.92 kB / 1.333 GB, free: 11.59 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.094e-05/0.4015, allocations: 8 kB / 1.333 GB, free: 11.58 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.446e-06/0.4015, allocations: 3.984 kB / 1.333 GB, free: 11.58 MB / 1.029 GB Notification: Performance of sorting global known variables: time 6.29e-05/0.4016, allocations: 87.83 kB / 1.333 GB, free: 11.49 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.4016, allocations: 4 kB / 1.333 GB, free: 11.49 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002698/0.4018, allocations: 27.98 kB / 1.333 GB, free: 11.46 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.0006584/0.4025, allocations: 0.7437 MB / 1.333 GB, free: 10.69 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0004071/0.4029, allocations: 167.8 kB / 1.334 GB, free: 10.52 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.4029, allocations: 3.938 kB / 1.334 GB, free: 10.51 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.000124/0.403, allocations: 39.97 kB / 1.334 GB, free: 10.47 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002804/0.4033, allocations: 18.64 kB / 1.334 GB, free: 10.46 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002372/0.4057, allocations: 1.732 MB / 1.335 GB, free: 8.609 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003332/0.406, allocations: 0.6893 MB / 1.336 GB, free: 7.895 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 3.73e-05/0.4061, allocations: 4 kB / 1.336 GB, free: 7.891 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.085e-05/0.4061, allocations: 23.42 kB / 1.336 GB, free: 7.867 MB / 1.029 GB Notification: Performance of SimCode: time 8.51e-07/0.4061, allocations: 4 kB / 1.336 GB, free: 7.863 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02394/0.4301, allocations: 2.722 MB / 1.339 GB, free: 5.297 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.48/11.91, allocations: 10.19 kB / 1.339 GB, free: 5.289 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.637111050018575] Failed to read output from testmodel.py, exit status != 0: 12.07059970300179 12.087748849 11.689862958 Calling exit ...