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.959/1.959, allocations: 289.9 MB / 297.4 MB, free: 6.352 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.00123/0.00123, allocations: 180.8 kB / 366.7 MB, free: 1.652 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.745/1.745, allocations: 205.2 MB / 0.626 GB, free: 7.172 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.0008077/0.0008078, allocations: 88.19 kB / 0.74 GB, free: 39.55 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.747e-05/2.736e-05, allocations: 4 kB / 0.8598 GB, free: 12.96 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6743/0.6743, allocations: 116.3 MB / 0.9733 GB, free: 76.33 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1781/0.8525, allocations: 138.2 MB / 1.108 GB, free: 11.98 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001848/0.8527, allocations: 68.58 kB / 1.108 GB, free: 11.91 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 0.003059/0.8558, allocations: 1.082 MB / 1.109 GB, free: 10.85 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.342e-06/0.8558, allocations: 0 / 1.109 GB, free: 10.85 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 7.725e-06/0.8558, allocations: 4 kB / 1.109 GB, free: 10.85 MB / 0.7136 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.0004162/0.8562, allocations: 365 kB / 1.11 GB, free: 10.45 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.905e-05/0.8563, allocations: 15.3 kB / 1.11 GB, free: 10.44 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.951e-05/0.8563, allocations: 6.844 kB / 1.11 GB, free: 10.43 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001066/0.8564, allocations: 170.9 kB / 1.11 GB, free: 10.23 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.258e-05/0.8564, allocations: 0 / 1.11 GB, free: 10.23 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.839e-05/0.8565, allocations: 4.5 kB / 1.11 GB, free: 10.22 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.304e-05/0.8565, allocations: 20.5 kB / 1.11 GB, free: 10.2 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.5e-05/0.8566, allocations: 43.16 kB / 1.11 GB, free: 10.16 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.503e-06/0.8566, allocations: 0 / 1.11 GB, free: 10.16 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.087e-06/0.8566, allocations: 0 / 1.11 GB, free: 10.16 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.591e-06/0.8567, allocations: 3.984 kB / 1.11 GB, free: 10.15 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003644/0.857, allocations: 260.8 kB / 1.11 GB, free: 9.863 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 7.548e-05/0.8571, allocations: 38.52 kB / 1.11 GB, free: 9.816 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.289e-05/0.8572, allocations: 16.98 kB / 1.11 GB, free: 9.797 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.066e-05/0.8572, allocations: 3.984 kB / 1.11 GB, free: 9.793 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001009/0.8573, allocations: 66.55 kB / 1.11 GB, free: 9.719 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=6): time 1.272e-06/0.8573, allocations: 0 / 1.11 GB, free: 9.719 MB / 0.7136 GB Notification: Performance of matching and sorting (n=6): time 0.0001513/0.8575, allocations: 64.88 kB / 1.11 GB, free: 9.652 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.153e-05/0.8575, allocations: 55.41 kB / 1.111 GB, free: 9.586 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.624e-05/0.8576, allocations: 96.94 kB / 1.111 GB, free: 9.484 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 1.375e-05/0.8576, allocations: 28.77 kB / 1.111 GB, free: 9.453 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 4.274e-05/0.8576, allocations: 96.03 kB / 1.111 GB, free: 9.355 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 1.725e-05/0.8577, allocations: 11.91 kB / 1.111 GB, free: 9.344 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.29e-06/0.8577, allocations: 0 / 1.111 GB, free: 9.344 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001134/0.8578, allocations: 326.1 kB / 1.111 GB, free: 9.02 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.392e-05/0.8578, allocations: 8 kB / 1.111 GB, free: 9.012 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.27e-05/0.8579, allocations: 40.05 kB / 1.111 GB, free: 8.965 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000123/0.858, allocations: 25.36 kB / 1.111 GB, free: 8.941 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.858, allocations: 0 / 1.111 GB, free: 8.941 MB / 0.7136 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001805/0.8582, allocations: 91.06 kB / 1.111 GB, free: 8.848 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.168e-05/0.8582, allocations: 4 kB / 1.111 GB, free: 8.844 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.627e-06/0.8582, allocations: 0 / 1.111 GB, free: 8.844 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.076e-05/0.8582, allocations: 4 kB / 1.111 GB, free: 8.84 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001088/0.8584, allocations: 24.02 kB / 1.111 GB, free: 8.816 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.292e-06/0.8584, allocations: 0 / 1.111 GB, free: 8.816 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.59e-05/0.8585, allocations: 11.98 kB / 1.111 GB, free: 8.805 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.066e-06/0.8585, allocations: 1.875 kB / 1.111 GB, free: 8.805 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 6.806e-05/0.8585, allocations: 110.8 kB / 1.111 GB, free: 8.691 MB / 0.7136 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 9.743e-05/0.8586, allocations: 73.59 kB / 1.111 GB, free: 8.613 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.116e-06/0.8587, allocations: 0 / 1.111 GB, free: 8.613 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001291/0.8588, allocations: 82.23 kB / 1.112 GB, free: 8.523 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.8588, allocations: 0 / 1.112 GB, free: 8.523 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.03e-06/0.8588, allocations: 4 kB / 1.112 GB, free: 8.52 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.956e-06/0.8588, allocations: 0 / 1.112 GB, free: 8.52 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002482/0.8591, allocations: 301.5 kB / 1.112 GB, free: 8.184 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.916e-06/0.8591, allocations: 0 / 1.112 GB, free: 8.184 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.905e-05/0.8592, allocations: 15.92 kB / 1.112 GB, free: 8.168 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.749e-06/0.8592, allocations: 4 kB / 1.112 GB, free: 8.164 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.125e-06/0.8592, allocations: 4 kB / 1.112 GB, free: 8.16 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.8592, allocations: 0 / 1.112 GB, free: 8.16 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.8592, allocations: 0 / 1.112 GB, free: 8.16 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001473/0.8594, allocations: 167.5 kB / 1.112 GB, free: 7.98 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 3.134e-05/0.8594, allocations: 77.11 kB / 1.112 GB, free: 7.887 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.573e-05/0.8594, allocations: 0 / 1.112 GB, free: 7.887 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001094/0.8595, allocations: 23.92 kB / 1.112 GB, free: 7.863 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.435e-05/0.8596, allocations: 4 kB / 1.112 GB, free: 7.859 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.604e-06/0.8596, allocations: 4.781 kB / 1.112 GB, free: 7.859 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 3.81e-05/0.8596, allocations: 83.27 kB / 1.112 GB, free: 7.777 MB / 0.7136 GB Notification: Performance of sort global known variables: time 1.6e-07/0.8596, allocations: 4 kB / 1.112 GB, free: 7.773 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.000225/0.8599, allocations: 19.91 kB / 1.112 GB, free: 7.754 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.0004217/0.8603, allocations: 0.7162 MB / 1.113 GB, free: 7.012 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 9.061e-05/0.8604, allocations: 35.94 kB / 1.113 GB, free: 6.977 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.453e-06/0.8604, allocations: 0 / 1.113 GB, free: 6.977 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 3.736e-05/0.8605, allocations: 16 kB / 1.113 GB, free: 6.961 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000166/0.8606, allocations: 7.984 kB / 1.113 GB, free: 6.953 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003382/0.861, allocations: 112.2 kB / 1.113 GB, free: 6.809 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002307/0.8612, allocations: 0.6855 MB / 1.114 GB, free: 6.098 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 3.155e-05/0.8613, allocations: 5.438 kB / 1.114 GB, free: 6.09 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.841e-05/0.8613, allocations: 15.42 kB / 1.114 GB, free: 6.074 MB / 0.7136 GB Notification: Performance of SimCode: time 3.21e-07/0.8613, allocations: 7.5 kB / 1.114 GB, free: 6.07 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01901/0.8803, allocations: 1.137 MB / 1.115 GB, free: 4.977 MB / 0.7136 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002072/0.8806, allocations: 141.7 kB / 1.115 GB, free: 4.785 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.582/2.462, allocations: 0 / 1.115 GB, free: 4.785 MB / 0.7136 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)