Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.564/1.564, allocations: 285.6 MB / 293.1 MB, free: 10.24 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009387/0.0009389, allocations: 180.9 kB / 361.4 MB, free: 6.863 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.629/1.629, allocations: 205.3 MB / 0.62 GB, free: 11.64 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001106/0.001106, allocations: 91.02 kB / 0.733 GB, free: 44.16 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.229e-05/2.232e-05, allocations: 4 kB / 0.8518 GB, free: 2.629 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7296/0.7296, allocations: 115.3 MB / 0.9645 GB, free: 78.82 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1971/0.9268, allocations: 137.2 MB / 1.098 GB, free: 2.535 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002948/0.9272, allocations: 74.23 kB / 1.099 GB, free: 2.465 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 0.003338/0.9305, allocations: 1.092 MB / 1.1 GB, free: 1.406 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.482e-06/0.9305, allocations: 0.5312 kB / 1.1 GB, free: 1.406 MB / 0.698 GB Notification: Performance of Transformations before backend: time 5.711e-06/0.9306, allocations: 0 / 1.1 GB, free: 1.406 MB / 0.698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004728/0.931, allocations: 364.9 kB / 1.1 GB, free: 1.008 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.839e-05/0.9311, allocations: 12.81 kB / 1.1 GB, free: 0.9961 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.794e-05/0.9311, allocations: 5.875 kB / 1.1 GB, free: 0.9922 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001473/0.9313, allocations: 167 kB / 1.1 GB, free: 0.7891 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.996e-05/0.9313, allocations: 4.656 kB / 1.1 GB, free: 0.7852 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.991e-05/0.9313, allocations: 4.5 kB / 1.1 GB, free: 0.7812 MB / 0.698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.588e-05/0.9314, allocations: 19.98 kB / 1.1 GB, free: 0.7617 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.556e-05/0.9315, allocations: 42.81 kB / 1.1 GB, free: 0.7148 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.049e-05/0.9316, allocations: 0 / 1.1 GB, free: 0.7148 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.248e-05/0.9316, allocations: 5.344 kB / 1.1 GB, free: 0.7109 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.899e-06/0.9316, allocations: 0 / 1.1 GB, free: 0.7109 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004776/0.9321, allocations: 266 kB / 1.1 GB, free: 428 kB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 9.71e-05/0.9322, allocations: 42.56 kB / 1.1 GB, free: 376 kB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.515e-05/0.9322, allocations: 17.77 kB / 1.101 GB, free: 356 kB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.366e-05/0.9323, allocations: 0 / 1.101 GB, free: 356 kB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001184/0.9324, allocations: 56.69 kB / 1.101 GB, free: 288 kB / 0.698 GB Notification: Performance of pre-optimization done (n=6): time 1.502e-06/0.9324, allocations: 0.6875 kB / 1.101 GB, free: 288 kB / 0.698 GB Notification: Performance of matching and sorting (n=6): time 0.000206/0.9326, allocations: 69.62 kB / 1.101 GB, free: 212 kB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.919e-05/0.9327, allocations: 52.06 kB / 1.101 GB, free: 148 kB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.818e-05/0.9328, allocations: 101.3 kB / 1.101 GB, free: 44 kB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 1.588e-05/0.9328, allocations: 30.48 kB / 1.101 GB, free: 8 kB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 6.9e-05/0.9329, allocations: 88.05 kB / 1.101 GB, free: 15.92 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 1.922e-05/0.9329, allocations: 12.72 kB / 1.101 GB, free: 15.91 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.573e-06/0.9329, allocations: 0 / 1.101 GB, free: 15.91 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.000128/0.933, allocations: 328.3 kB / 1.101 GB, free: 15.58 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.996e-05/0.9331, allocations: 12 kB / 1.101 GB, free: 15.57 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.729e-05/0.9331, allocations: 34.12 kB / 1.101 GB, free: 15.53 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001588/0.9333, allocations: 27 kB / 1.101 GB, free: 15.5 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.9333, allocations: 0 / 1.101 GB, free: 15.5 MB / 0.7136 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001868/0.9335, allocations: 85.52 kB / 1.101 GB, free: 15.41 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.64e-05/0.9335, allocations: 7.375 kB / 1.101 GB, free: 15.41 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.211e-06/0.9335, allocations: 0 / 1.101 GB, free: 15.41 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.642e-05/0.9336, allocations: 4 kB / 1.101 GB, free: 15.41 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001143/0.9337, allocations: 19.92 kB / 1.101 GB, free: 15.39 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.179e-06/0.9337, allocations: 0 / 1.101 GB, free: 15.39 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.194e-05/0.9338, allocations: 11.98 kB / 1.101 GB, free: 15.38 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.149e-05/0.9338, allocations: 4.094 kB / 1.101 GB, free: 15.37 MB / 0.7136 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.sampler1.firstTrigger,sampler1.firstTrigger,$whenCondition1,sampler1.sampleTrigger,sampler1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.216e-05/0.9339, allocations: 114 kB / 1.102 GB, free: 15.26 MB / 0.7136 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001071/0.934, allocations: 77.53 kB / 1.102 GB, free: 15.18 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.115e-06/0.934, allocations: 0 / 1.102 GB, free: 15.18 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001379/0.9342, allocations: 78.3 kB / 1.102 GB, free: 15.09 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-06/0.9342, allocations: 2.062 kB / 1.102 GB, free: 15.09 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.069e-06/0.9342, allocations: 0 / 1.102 GB, free: 15.09 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.9342, allocations: 0 / 1.102 GB, free: 15.09 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002734/0.9345, allocations: 311 kB / 1.102 GB, free: 14.74 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.016e-06/0.9345, allocations: 4 kB / 1.102 GB, free: 14.74 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.645e-05/0.9346, allocations: 8 kB / 1.102 GB, free: 14.73 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.275e-06/0.9346, allocations: 0 / 1.102 GB, free: 14.73 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.312e-05/0.9346, allocations: 7.859 kB / 1.102 GB, free: 14.73 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.9346, allocations: 0 / 1.102 GB, free: 14.73 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.544e-06/0.9346, allocations: 0 / 1.102 GB, free: 14.73 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001563/0.9348, allocations: 167.5 kB / 1.102 GB, free: 14.55 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 4.251e-05/0.9348, allocations: 77.11 kB / 1.102 GB, free: 14.45 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.657e-05/0.9348, allocations: 4 kB / 1.102 GB, free: 14.45 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001024/0.935, allocations: 15.98 kB / 1.102 GB, free: 14.43 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.752e-05/0.935, allocations: 7.922 kB / 1.102 GB, free: 14.43 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.077e-06/0.935, allocations: 7.938 kB / 1.102 GB, free: 14.42 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 3.241e-05/0.9351, allocations: 79.28 kB / 1.102 GB, free: 14.34 MB / 0.7136 GB Notification: Performance of sort global known variables: time 1.31e-07/0.9351, allocations: 0 / 1.102 GB, free: 14.34 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0002504/0.9353, allocations: 27.91 kB / 1.102 GB, free: 14.31 MB / 0.7136 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 (sampler1.sampleTrigger,$whenCondition1,sampler1.y,sampler1.firstTrigger) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000476/0.9358, allocations: 0.7105 MB / 1.103 GB, free: 13.58 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0001257/0.9359, allocations: 43.92 kB / 1.103 GB, free: 13.54 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.936, allocations: 0 / 1.103 GB, free: 13.54 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 4.702e-05/0.936, allocations: 16 kB / 1.103 GB, free: 13.52 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001961/0.9362, allocations: 8.188 kB / 1.103 GB, free: 13.51 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000397/0.9366, allocations: 115.9 kB / 1.103 GB, free: 13.36 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002371/0.9369, allocations: 0.6859 MB / 1.104 GB, free: 12.65 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 3.502e-05/0.9369, allocations: 4.188 kB / 1.104 GB, free: 12.64 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.662e-05/0.937, allocations: 15.44 kB / 1.104 GB, free: 12.63 MB / 0.7136 GB Notification: Performance of SimCode: time 2.21e-07/0.937, allocations: 0 / 1.104 GB, free: 12.63 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02144/0.9584, allocations: 1.148 MB / 1.105 GB, free: 11.54 MB / 0.7136 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002421/0.9588, allocations: 152.1 kB / 1.105 GB, free: 11.35 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.537/2.496, allocations: 4 kB / 1.105 GB, free: 11.34 MB / 0.7136 GB (rm -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler.fmu > Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe 2>&1)