Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 2.415/2.415, allocations: 393.5 MB / 408.4 MB, free: 11.02 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001359/0.001359, allocations: 190.6 kB / 0.4901 GB, free: 2.227 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.622/1.622, allocations: 223.1 MB / 0.7992 GB, free: 15.67 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001071/0.001071, allocations: 102.3 kB / 0.9396 GB, free: 2.836 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.000388/0.000388, allocations: 8.344 kB / 1.09 GB, free: 212.8 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2813/0.2817, allocations: 143 MB / 1.229 GB, free: 85.36 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1994/0.4812, allocations: 150 MB / 1.376 GB, free: 15.14 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002475/0.4815, allocations: 67.97 kB / 1.376 GB, free: 15.07 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.003476/0.485, allocations: 1.108 MB / 1.377 GB, free: 13.96 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.404e-06/0.485, allocations: 0 / 1.377 GB, free: 13.96 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 8.175e-06/0.4851, allocations: 0 / 1.377 GB, free: 13.96 MB / 0.8855 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.0005251/0.4856, allocations: 368.1 kB / 1.377 GB, free: 13.56 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.187e-05/0.4856, allocations: 24.48 kB / 1.377 GB, free: 13.54 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.823e-05/0.4857, allocations: 34.56 kB / 1.377 GB, free: 13.49 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.559e-05/0.4857, allocations: 7.906 kB / 1.377 GB, free: 13.48 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000129/0.4859, allocations: 171 kB / 1.378 GB, free: 13.28 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.046e-05/0.4859, allocations: 0 / 1.378 GB, free: 13.28 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.394e-05/0.4859, allocations: 4 kB / 1.378 GB, free: 13.27 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002027/0.4861, allocations: 69.66 kB / 1.378 GB, free: 13.2 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.046e-05/0.4861, allocations: 7.984 kB / 1.378 GB, free: 13.19 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.03e-05/0.4862, allocations: 0 / 1.378 GB, free: 13.19 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.328e-06/0.4862, allocations: 0 / 1.378 GB, free: 13.19 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001947/0.4864, allocations: 55.89 kB / 1.378 GB, free: 13.14 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000476/0.4869, allocations: 280.8 kB / 1.378 GB, free: 12.81 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001649/0.487, allocations: 58.48 kB / 1.378 GB, free: 12.75 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 2.376e-05/0.4871, allocations: 4 kB / 1.378 GB, free: 12.74 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002293/0.4873, allocations: 79.45 kB / 1.378 GB, free: 12.65 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=6): time 1.823e-06/0.4873, allocations: 0 / 1.378 GB, free: 12.65 MB / 0.8855 GB Notification: Performance of matching and sorting (n=6): time 0.0004338/0.4878, allocations: 137.7 kB / 1.378 GB, free: 12.51 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.11e-05/0.4878, allocations: 59.36 kB / 1.378 GB, free: 12.44 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.682e-05/0.4879, allocations: 105 kB / 1.378 GB, free: 12.33 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 2.097e-05/0.4879, allocations: 29.7 kB / 1.378 GB, free: 12.3 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 4.877e-05/0.488, allocations: 84.14 kB / 1.378 GB, free: 12.21 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 2.493e-05/0.488, allocations: 19.86 kB / 1.378 GB, free: 12.19 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.368e-06/0.488, allocations: 0 / 1.378 GB, free: 12.19 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001019/0.4881, allocations: 322.8 kB / 1.379 GB, free: 11.87 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001022/0.4883, allocations: 27.97 kB / 1.379 GB, free: 11.84 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001115/0.4884, allocations: 51.36 kB / 1.379 GB, free: 11.78 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001125/0.4885, allocations: 39.97 kB / 1.379 GB, free: 11.74 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.4885, allocations: 4 kB / 1.379 GB, free: 11.73 MB / 0.8855 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002655/0.4888, allocations: 109.7 kB / 1.379 GB, free: 11.62 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.642e-05/0.4888, allocations: 8 kB / 1.379 GB, free: 11.61 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.598e-06/0.4888, allocations: 0 / 1.379 GB, free: 11.61 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.353e-05/0.4888, allocations: 0 / 1.379 GB, free: 11.61 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001136/0.489, allocations: 19.92 kB / 1.379 GB, free: 11.59 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.055e-06/0.489, allocations: 4 kB / 1.379 GB, free: 11.59 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.796e-05/0.4891, allocations: 19.86 kB / 1.379 GB, free: 11.57 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.29e-05/0.4891, allocations: 3.984 kB / 1.379 GB, free: 11.57 MB / 0.8855 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 () * Number of clocked 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 9.299e-05/0.4892, allocations: 117.8 kB / 1.379 GB, free: 11.44 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.312e-05/0.4892, allocations: 4 kB / 1.379 GB, free: 11.44 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002941/0.4895, allocations: 118 kB / 1.379 GB, free: 11.31 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.375e-06/0.4895, allocations: 3.938 kB / 1.379 GB, free: 11.31 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.4895, allocations: 0 / 1.379 GB, free: 11.31 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.4895, allocations: 0 / 1.379 GB, free: 11.31 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000437/0.49, allocations: 362.5 kB / 1.38 GB, free: 10.9 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.49, allocations: 0 / 1.38 GB, free: 10.9 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.409e-05/0.49, allocations: 11.98 kB / 1.38 GB, free: 10.89 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.689e-06/0.4901, allocations: 4 kB / 1.38 GB, free: 10.88 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.327e-06/0.4901, allocations: 0 / 1.38 GB, free: 10.88 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.935e-06/0.4901, allocations: 0 / 1.38 GB, free: 10.88 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.556e-06/0.4901, allocations: 11.83 kB / 1.38 GB, free: 10.87 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002968/0.4904, allocations: 207.8 kB / 1.38 GB, free: 10.65 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 4.061e-05/0.4904, allocations: 77.11 kB / 1.38 GB, free: 10.56 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.688e-05/0.4905, allocations: 4.062 kB / 1.38 GB, free: 10.55 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001026/0.4906, allocations: 11.98 kB / 1.38 GB, free: 10.54 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.578e-05/0.4906, allocations: 15.95 kB / 1.38 GB, free: 10.53 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.143e-05/0.4906, allocations: 3.984 kB / 1.38 GB, free: 10.52 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 3.789e-05/0.4907, allocations: 83.28 kB / 1.38 GB, free: 10.44 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4907, allocations: 0 / 1.38 GB, free: 10.44 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0002398/0.4909, allocations: 23.91 kB / 1.38 GB, free: 10.42 MB / 0.8855 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 () * Number of clocked 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.0006203/0.4916, allocations: 0.7522 MB / 1.381 GB, free: 9.641 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0002686/0.4918, allocations: 75.89 kB / 1.381 GB, free: 9.566 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.4919, allocations: 0 / 1.381 GB, free: 9.566 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.000115/0.492, allocations: 31.98 kB / 1.381 GB, free: 9.535 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001762/0.4922, allocations: 11.98 kB / 1.381 GB, free: 9.523 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007606/0.4929, allocations: 0.8095 MB / 1.382 GB, free: 8.648 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002454/0.4932, allocations: 0.6887 MB / 1.382 GB, free: 7.934 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 3.334e-05/0.4932, allocations: 192 / 1.382 GB, free: 7.93 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.849e-05/0.4933, allocations: 19.42 kB / 1.382 GB, free: 7.914 MB / 0.8855 GB Notification: Performance of SimCode: time 2.9e-07/0.4933, allocations: 0 / 1.382 GB, free: 7.914 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01254/0.5058, allocations: 1.438 MB / 1.384 GB, free: 6.617 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001983/0.5061, allocations: 183.2 kB / 1.384 GB, free: 6.379 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.468/1.974, allocations: 4.062 kB / 1.384 GB, free: 6.375 MB / 0.8855 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler_res.mat does not exist to compare? outputFormat=mat