Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,fileNamePrefix="Buildings_8_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.1.4-maint.8.1.x/package.mo): time 1.791/1.791, allocations: 289.7 MB / 302.2 MB, free: 2.16 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.00114/0.00114, allocations: 185.7 kB / 371.6 MB, free: 3.418 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.719/1.719, allocations: 205.1 MB / 0.6309 GB, free: 11.75 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.001072/0.001072, allocations: 93.58 kB / 0.745 GB, free: 54.41 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 3.31e-05/3.312e-05, allocations: 4 kB / 0.8663 GB, free: 14.97 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2744/0.2745, allocations: 116.3 MB / 0.9799 GB, free: 10.5 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8062/1.081, allocations: 138.9 MB / 1.116 GB, free: 44.73 MB / 0.7448 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002189/1.081, allocations: 69.06 kB / 1.116 GB, free: 44.7 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 0.002979/1.084, allocations: 1.087 MB / 1.117 GB, free: 43.97 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.653e-06/1.084, allocations: 0.5938 kB / 1.117 GB, free: 43.97 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 7.393e-06/1.084, allocations: 0 / 1.117 GB, free: 43.97 MB / 0.7448 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.0004108/1.084, allocations: 366.1 kB / 1.117 GB, free: 43.59 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.305e-05/1.084, allocations: 12.03 kB / 1.117 GB, free: 43.58 MB / 0.7448 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.308e-05/1.085, allocations: 35.75 kB / 1.117 GB, free: 43.54 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.837e-05/1.085, allocations: 4.062 kB / 1.117 GB, free: 43.54 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.815e-05/1.085, allocations: 170.8 kB / 1.117 GB, free: 43.34 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.15e-05/1.085, allocations: 4.422 kB / 1.117 GB, free: 43.34 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.355e-05/1.085, allocations: 4 kB / 1.117 GB, free: 43.33 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001113/1.085, allocations: 53.53 kB / 1.117 GB, free: 43.29 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.136e-06/1.085, allocations: 0 / 1.117 GB, free: 43.29 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.209e-05/1.085, allocations: 7.406 kB / 1.117 GB, free: 43.29 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.833e-06/1.085, allocations: 0 / 1.117 GB, free: 43.29 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.522e-05/1.085, allocations: 22.64 kB / 1.117 GB, free: 43.27 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000362/1.085, allocations: 282.1 kB / 1.118 GB, free: 42.98 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 8.761e-05/1.085, allocations: 51.53 kB / 1.118 GB, free: 42.93 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.093e-05/1.085, allocations: 16.98 kB / 1.118 GB, free: 42.92 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 2.338e-05/1.085, allocations: 0.5625 kB / 1.118 GB, free: 42.92 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.716e-05/1.086, allocations: 65.56 kB / 1.118 GB, free: 42.86 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=6): time 1.363e-06/1.086, allocations: 0 / 1.118 GB, free: 42.86 MB / 0.7448 GB Notification: Performance of matching and sorting (n=6): time 0.0001714/1.086, allocations: 69.23 kB / 1.118 GB, free: 42.8 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.109e-05/1.086, allocations: 54.41 kB / 1.118 GB, free: 42.73 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.378e-05/1.086, allocations: 104.9 kB / 1.118 GB, free: 42.63 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 9.538e-06/1.086, allocations: 25.7 kB / 1.118 GB, free: 42.6 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 3.336e-05/1.086, allocations: 91.92 kB / 1.118 GB, free: 42.51 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 1.543e-05/1.086, allocations: 7.844 kB / 1.118 GB, free: 42.5 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.729e-06/1.086, allocations: 0 / 1.118 GB, free: 42.5 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 5.325e-05/1.086, allocations: 326.3 kB / 1.118 GB, free: 42.18 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.925e-05/1.086, allocations: 11.44 kB / 1.118 GB, free: 42.18 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.76e-05/1.086, allocations: 43.42 kB / 1.118 GB, free: 42.13 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.798e-05/1.086, allocations: 19.39 kB / 1.118 GB, free: 42.12 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.492e-06/1.086, allocations: 0 / 1.118 GB, free: 42.12 MB / 0.7448 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001137/1.086, allocations: 78.98 kB / 1.118 GB, free: 42.05 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.458e-05/1.086, allocations: 8.75 kB / 1.118 GB, free: 42.04 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/1.086, allocations: 0 / 1.118 GB, free: 42.04 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.137e-05/1.086, allocations: 4.094 kB / 1.118 GB, free: 42.04 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001111/1.086, allocations: 20.56 kB / 1.119 GB, free: 42.02 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.304e-06/1.086, allocations: 4 kB / 1.119 GB, free: 42.02 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.87e-05/1.086, allocations: 7.328 kB / 1.119 GB, free: 42.02 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.154e-05/1.087, allocations: 8.516 kB / 1.119 GB, free: 42.01 MB / 0.7448 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 5.267e-05/1.087, allocations: 109.6 kB / 1.119 GB, free: 41.9 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.065e-05/1.087, allocations: 7.516 kB / 1.119 GB, free: 41.89 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000134/1.087, allocations: 83.03 kB / 1.119 GB, free: 41.83 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/1.087, allocations: 3.938 kB / 1.119 GB, free: 41.83 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/1.087, allocations: 4.422 kB / 1.119 GB, free: 41.83 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/1.087, allocations: 4 kB / 1.119 GB, free: 41.82 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002175/1.087, allocations: 330.9 kB / 1.119 GB, free: 41.49 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/1.087, allocations: 0 / 1.119 GB, free: 41.49 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.739e-05/1.087, allocations: 12.27 kB / 1.119 GB, free: 41.48 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-06/1.087, allocations: 0 / 1.119 GB, free: 41.48 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.237e-05/1.087, allocations: 8.5 kB / 1.119 GB, free: 41.47 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/1.087, allocations: 0 / 1.119 GB, free: 41.47 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/1.087, allocations: 3.938 kB / 1.119 GB, free: 41.47 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001374/1.087, allocations: 169.1 kB / 1.119 GB, free: 41.31 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 2.407e-05/1.087, allocations: 85.02 kB / 1.119 GB, free: 41.21 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.411e-05/1.087, allocations: 0 / 1.119 GB, free: 41.21 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001014/1.087, allocations: 19.25 kB / 1.119 GB, free: 41.2 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.585e-05/1.087, allocations: 3.984 kB / 1.119 GB, free: 41.2 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.458e-06/1.087, allocations: 4.938 kB / 1.119 GB, free: 41.19 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 2.961e-05/1.088, allocations: 83.09 kB / 1.119 GB, free: 41.11 MB / 0.7448 GB Notification: Performance of sort global known variables: time 1.3e-07/1.088, allocations: 0 / 1.119 GB, free: 41.11 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.000221/1.088, allocations: 23.56 kB / 1.119 GB, free: 41.09 MB / 0.7448 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.0003734/1.088, allocations: 0.7198 MB / 1.12 GB, free: 40.38 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0001217/1.088, allocations: 37.56 kB / 1.12 GB, free: 40.35 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/1.088, allocations: 2.953 kB / 1.12 GB, free: 40.35 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 4.412e-05/1.088, allocations: 24.22 kB / 1.12 GB, free: 40.33 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001648/1.088, allocations: 8.719 kB / 1.12 GB, free: 40.33 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003516/1.089, allocations: 113.8 kB / 1.12 GB, free: 40.2 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001093/1.089, allocations: 0.6879 MB / 1.121 GB, free: 39.49 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 3.304e-05/1.089, allocations: 10.62 kB / 1.121 GB, free: 39.48 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.308e-05/1.089, allocations: 13.94 kB / 1.121 GB, free: 39.48 MB / 0.7448 GB Notification: Performance of SimCode: time 3.51e-07/1.089, allocations: 0 / 1.121 GB, free: 39.48 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01253/1.102, allocations: 1.466 MB / 1.122 GB, free: 38.69 MB / 0.7448 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002302/1.102, allocations: 149 kB / 1.123 GB, free: 38.47 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.571/2.673, allocations: 2.953 kB / 1.123 GB, free: 38.47 MB / 0.7448 GB (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler.fmu > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe 2>&1)