Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,fileNamePrefix="Buildings_maint_7_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_7_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 7.0.3-maint.7.0.x/package.mo): time 1.446/1.446, allocations: 249.3 MB / 261.9 MB, free: 5.867 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001185/0.001185, allocations: 184.3 kB / 321.3 MB, free: 14.64 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.664/1.664, allocations: 205.2 MB / 0.572 GB, free: 10.68 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008223/0.0008223, allocations: 90.45 kB / 0.6764 GB, free: 15.65 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.383e-05/3.388e-05, allocations: 4 kB / 0.788 GB, free: 96.99 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2355/0.2356, allocations: 106.3 MB / 0.8919 GB, free: 6.559 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8311/1.067, allocations: 131.6 MB / 1.02 GB, free: 3.148 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002867/1.067, allocations: 67.77 kB / 1.02 GB, free: 3.113 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.002711/1.07, allocations: 0.8756 MB / 1.021 GB, free: 2.32 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.104e-06/1.07, allocations: 0 / 1.021 GB, free: 2.32 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.032e-05/1.07, allocations: 0 / 1.021 GB, free: 2.32 MB / 0.6355 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.0005326/1.07, allocations: 362.1 kB / 1.022 GB, free: 1.926 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.862e-05/1.071, allocations: 8.031 kB / 1.022 GB, free: 1.918 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.314e-05/1.071, allocations: 33.56 kB / 1.022 GB, free: 1.879 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.547e-05/1.071, allocations: 7.906 kB / 1.022 GB, free: 1.871 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001669/1.071, allocations: 167 kB / 1.022 GB, free: 1.668 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.439e-05/1.071, allocations: 3.984 kB / 1.022 GB, free: 1.664 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.867e-05/1.071, allocations: 11.06 kB / 1.022 GB, free: 1.656 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001407/1.071, allocations: 47.75 kB / 1.022 GB, free: 1.609 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.274e-06/1.071, allocations: 7.938 kB / 1.022 GB, free: 1.602 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.137e-05/1.071, allocations: 0 / 1.022 GB, free: 1.602 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.741e-06/1.071, allocations: 0 / 1.022 GB, free: 1.602 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.127e-05/1.071, allocations: 22.05 kB / 1.022 GB, free: 1.586 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004461/1.072, allocations: 274.7 kB / 1.022 GB, free: 1.281 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001036/1.072, allocations: 49.02 kB / 1.022 GB, free: 1.234 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.972e-05/1.072, allocations: 20.23 kB / 1.022 GB, free: 1.215 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.564e-05/1.072, allocations: 4.062 kB / 1.022 GB, free: 1.211 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001331/1.072, allocations: 64 kB / 1.022 GB, free: 1.148 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=6): time 1.432e-06/1.072, allocations: 0 / 1.022 GB, free: 1.148 MB / 0.6355 GB Notification: Performance of matching and sorting (n=6): time 0.0002031/1.072, allocations: 75.64 kB / 1.022 GB, free: 1.082 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.259e-05/1.072, allocations: 63.36 kB / 1.022 GB, free: 1.008 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.133e-05/1.072, allocations: 104.4 kB / 1.023 GB, free: 0.9023 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.715e-05/1.072, allocations: 25.7 kB / 1.023 GB, free: 0.8711 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 6.008e-05/1.072, allocations: 84.02 kB / 1.023 GB, free: 0.7891 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.378e-05/1.072, allocations: 15.8 kB / 1.023 GB, free: 0.7734 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.358e-06/1.072, allocations: 3.062 kB / 1.023 GB, free: 0.7734 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001281/1.073, allocations: 310.8 kB / 1.023 GB, free: 472 kB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.825e-05/1.073, allocations: 11.62 kB / 1.023 GB, free: 464 kB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.164e-05/1.073, allocations: 46.92 kB / 1.023 GB, free: 412 kB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.529e-05/1.073, allocations: 11.12 kB / 1.023 GB, free: 404 kB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/1.073, allocations: 0 / 1.023 GB, free: 404 kB / 0.6355 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001324/1.073, allocations: 79.97 kB / 1.023 GB, free: 328 kB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.542e-05/1.073, allocations: 4 kB / 1.023 GB, free: 324 kB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.793e-06/1.073, allocations: 8.094 kB / 1.023 GB, free: 316 kB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.28e-05/1.073, allocations: 0 / 1.023 GB, free: 316 kB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001137/1.073, allocations: 15.98 kB / 1.023 GB, free: 300 kB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.758e-06/1.073, allocations: 4 kB / 1.023 GB, free: 296 kB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.693e-05/1.073, allocations: 11.94 kB / 1.023 GB, free: 284 kB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.869e-06/1.073, allocations: 7.625 kB / 1.023 GB, free: 280 kB / 0.6355 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 7.629e-05/1.073, allocations: 105.9 kB / 1.023 GB, free: 168 kB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.155e-05/1.073, allocations: 4 kB / 1.023 GB, free: 164 kB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001722/1.073, allocations: 88.8 kB / 1.023 GB, free: 80 kB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/1.073, allocations: 0 / 1.023 GB, free: 80 kB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/1.073, allocations: 0 / 1.023 GB, free: 80 kB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/1.073, allocations: 0 / 1.023 GB, free: 80 kB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003455/1.074, allocations: 340.1 kB / 1.024 GB, free: 15.71 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.203e-06/1.074, allocations: 0 / 1.024 GB, free: 15.71 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.204e-05/1.074, allocations: 15.36 kB / 1.024 GB, free: 15.7 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.974e-06/1.074, allocations: 4 kB / 1.024 GB, free: 15.7 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.327e-06/1.074, allocations: 0 / 1.024 GB, free: 15.7 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.288e-06/1.074, allocations: 4 kB / 1.024 GB, free: 15.69 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.554e-06/1.074, allocations: 7.891 kB / 1.024 GB, free: 15.68 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000171/1.074, allocations: 162 kB / 1.024 GB, free: 15.52 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 4.263e-05/1.074, allocations: 85.06 kB / 1.024 GB, free: 15.42 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.047e-05/1.074, allocations: 8 kB / 1.024 GB, free: 15.41 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001143/1.074, allocations: 15.98 kB / 1.024 GB, free: 15.4 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.233e-05/1.074, allocations: 0 / 1.024 GB, free: 15.4 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.641e-05/1.074, allocations: 11.33 kB / 1.024 GB, free: 15.39 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 4.591e-05/1.074, allocations: 87.2 kB / 1.024 GB, free: 15.3 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.41e-07/1.074, allocations: 0 / 1.024 GB, free: 15.3 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002089/1.075, allocations: 11.69 kB / 1.024 GB, free: 15.3 MB / 0.6511 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.0004793/1.075, allocations: 0.6954 MB / 1.025 GB, free: 14.59 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001231/1.075, allocations: 46.83 kB / 1.025 GB, free: 14.55 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/1.075, allocations: 0 / 1.025 GB, free: 14.55 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 4.723e-05/1.075, allocations: 15.88 kB / 1.025 GB, free: 14.54 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001771/1.076, allocations: 7.188 kB / 1.025 GB, free: 14.54 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004113/1.076, allocations: 123.5 kB / 1.025 GB, free: 14.39 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002916/1.076, allocations: 0.6887 MB / 1.026 GB, free: 13.68 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 3.328e-05/1.076, allocations: 4.188 kB / 1.026 GB, free: 13.67 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.33e-05/1.076, allocations: 18.25 kB / 1.026 GB, free: 13.66 MB / 0.6511 GB Notification: Performance of SimCode: time 3.31e-07/1.076, allocations: 0 / 1.026 GB, free: 13.66 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01218/1.089, allocations: 1.336 MB / 1.027 GB, free: 12.45 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002123/1.089, allocations: 168.3 kB / 1.027 GB, free: 12.22 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.519/2.608, allocations: 0 / 1.027 GB, free: 12.22 MB / 0.6511 GB (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler.fmu > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe 2>&1)