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.503/1.503, allocations: 249.5 MB / 257 MB, free: 6.957 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.0009963/0.0009962, allocations: 179.5 kB / 316.3 MB, free: 3.215 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.606/1.606, allocations: 205.3 MB / 0.5671 GB, free: 15.78 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.0008977/0.0008974, allocations: 92.58 kB / 0.6714 GB, free: 4.898 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.214e-05/2.213e-05, allocations: 4 kB / 0.7815 GB, free: 102.6 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.237/0.237, allocations: 106.3 MB / 0.8853 GB, free: 12.13 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7918/1.029, allocations: 131.9 MB / 1.014 GB, free: 5.809 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002871/1.029, allocations: 72.94 kB / 1.014 GB, free: 5.766 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.002537/1.032, allocations: 0.8649 MB / 1.015 GB, free: 4.988 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.403e-06/1.032, allocations: 0 / 1.015 GB, free: 4.988 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 7.264e-06/1.032, allocations: 0 / 1.015 GB, free: 4.988 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.0004297/1.032, allocations: 359 kB / 1.015 GB, free: 4.598 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.628e-05/1.032, allocations: 8.031 kB / 1.015 GB, free: 4.59 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.674e-05/1.032, allocations: 15.08 kB / 1.015 GB, free: 4.578 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001223/1.033, allocations: 167 kB / 1.016 GB, free: 4.375 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.581e-05/1.033, allocations: 4 kB / 1.016 GB, free: 4.371 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.134e-05/1.033, allocations: 0 / 1.016 GB, free: 4.371 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.302e-05/1.033, allocations: 22.62 kB / 1.016 GB, free: 4.355 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.869e-05/1.033, allocations: 44.69 kB / 1.016 GB, free: 4.309 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.115e-06/1.033, allocations: 4 kB / 1.016 GB, free: 4.305 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.164e-05/1.033, allocations: 0 / 1.016 GB, free: 4.305 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.629e-06/1.033, allocations: 0 / 1.016 GB, free: 4.305 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003757/1.033, allocations: 254.8 kB / 1.016 GB, free: 4.031 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 8.591e-05/1.033, allocations: 45.81 kB / 1.016 GB, free: 3.984 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.118e-05/1.033, allocations: 20.36 kB / 1.016 GB, free: 3.969 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.071e-05/1.033, allocations: 0 / 1.016 GB, free: 3.969 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001034/1.033, allocations: 59.47 kB / 1.016 GB, free: 3.906 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=6): time 2.344e-06/1.033, allocations: 0 / 1.016 GB, free: 3.906 MB / 0.6355 GB Notification: Performance of matching and sorting (n=6): time 0.0001794/1.034, allocations: 73.95 kB / 1.016 GB, free: 3.84 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.564e-05/1.034, allocations: 51.41 kB / 1.016 GB, free: 3.777 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.005e-05/1.034, allocations: 99.8 kB / 1.016 GB, free: 3.676 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.626e-05/1.034, allocations: 29.7 kB / 1.016 GB, free: 3.641 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 4.451e-05/1.034, allocations: 83.7 kB / 1.016 GB, free: 3.559 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 1.85e-05/1.034, allocations: 11.81 kB / 1.016 GB, free: 3.547 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.839e-06/1.034, allocations: 3.938 kB / 1.016 GB, free: 3.543 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001109/1.034, allocations: 322 kB / 1.017 GB, free: 3.223 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.645e-05/1.034, allocations: 11.5 kB / 1.017 GB, free: 3.215 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.324e-05/1.034, allocations: 38.25 kB / 1.017 GB, free: 3.172 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.227e-05/1.034, allocations: 15.05 kB / 1.017 GB, free: 3.16 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/1.034, allocations: 4 kB / 1.017 GB, free: 3.156 MB / 0.6355 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001029/1.034, allocations: 68.59 kB / 1.017 GB, free: 3.09 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.503e-05/1.034, allocations: 4 kB / 1.017 GB, free: 3.086 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.947e-05/1.034, allocations: 4 kB / 1.017 GB, free: 3.082 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.35e-05/1.034, allocations: 0 / 1.017 GB, free: 3.082 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001029/1.034, allocations: 20.08 kB / 1.017 GB, free: 3.062 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.656e-06/1.034, allocations: 0.875 kB / 1.017 GB, free: 3.062 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.255e-05/1.034, allocations: 11.98 kB / 1.017 GB, free: 3.051 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.477e-06/1.034, allocations: 4 kB / 1.017 GB, free: 3.047 MB / 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.806e-05/1.035, allocations: 112.5 kB / 1.017 GB, free: 2.934 MB / 0.6355 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 9.482e-05/1.035, allocations: 69.5 kB / 1.017 GB, free: 2.871 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.191e-05/1.035, allocations: 7.906 kB / 1.017 GB, free: 2.863 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001359/1.035, allocations: 80.98 kB / 1.017 GB, free: 2.789 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.488e-06/1.035, allocations: 0 / 1.017 GB, free: 2.789 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/1.035, allocations: 3.938 kB / 1.017 GB, free: 2.785 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/1.035, allocations: 0 / 1.017 GB, free: 2.785 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002738/1.035, allocations: 312.6 kB / 1.017 GB, free: 2.457 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-06/1.035, allocations: 0 / 1.017 GB, free: 2.457 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.772e-05/1.035, allocations: 11.98 kB / 1.017 GB, free: 2.445 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.334e-06/1.035, allocations: 4 kB / 1.017 GB, free: 2.441 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.869e-06/1.035, allocations: 0 / 1.017 GB, free: 2.441 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/1.035, allocations: 0 / 1.017 GB, free: 2.441 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/1.035, allocations: 48 / 1.017 GB, free: 2.441 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001702/1.035, allocations: 180.8 kB / 1.018 GB, free: 2.262 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 5.633e-05/1.036, allocations: 81.11 kB / 1.018 GB, free: 2.164 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.675e-05/1.036, allocations: 0 / 1.018 GB, free: 2.164 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001027/1.036, allocations: 19.61 kB / 1.018 GB, free: 2.148 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.073e-05/1.036, allocations: 0 / 1.018 GB, free: 2.148 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.245e-05/1.036, allocations: 4 kB / 1.018 GB, free: 2.145 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 5.677e-05/1.036, allocations: 91.28 kB / 1.018 GB, free: 2.059 MB / 0.6355 GB Notification: Performance of sort global known variables: time 1.3e-07/1.036, allocations: 0 / 1.018 GB, free: 2.059 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0002218/1.036, allocations: 8 kB / 1.018 GB, free: 2.051 MB / 0.6355 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.0005135/1.037, allocations: 0.6952 MB / 1.018 GB, free: 1.344 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001112/1.037, allocations: 43.3 kB / 1.018 GB, free: 1.309 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/1.037, allocations: 0 / 1.018 GB, free: 1.309 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 5.055e-05/1.037, allocations: 23.12 kB / 1.018 GB, free: 1.293 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000197/1.037, allocations: 4 kB / 1.018 GB, free: 1.289 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004053/1.037, allocations: 109 kB / 1.019 GB, free: 1.152 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003549/1.038, allocations: 0.6886 MB / 1.019 GB, free: 448 kB / 0.6355 GB Notification: Performance of simCode: alias equations: time 3.688e-05/1.038, allocations: 4.188 kB / 1.019 GB, free: 440 kB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.23e-05/1.038, allocations: 10.88 kB / 1.019 GB, free: 436 kB / 0.6355 GB Notification: Performance of SimCode: time 1.532e-06/1.038, allocations: 0 / 1.019 GB, free: 436 kB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01941/1.057, allocations: 1.018 MB / 1.02 GB, free: 15.42 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001899/1.057, allocations: 160.2 kB / 1.02 GB, free: 15.23 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.418/2.475, allocations: 0 / 1.02 GB, free: 15.23 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)