Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.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.TriggeredSampler,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler",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.316/2.316, allocations: 393.5 MB / 408.4 MB, free: 11 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.001274/0.001274, allocations: 190.6 kB / 0.4902 GB, free: 2.23 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.642/1.642, allocations: 223.1 MB / 0.7992 GB, free: 14.75 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.0009801/0.0009802, allocations: 96.22 kB / 0.9396 GB, free: 1.922 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003709/0.0003709, allocations: 8.312 kB / 1.09 GB, free: 216.4 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3025/0.3029, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1918/0.4947, allocations: 150.5 MB / 1.376 GB, free: 2.988 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003167/0.4951, allocations: 75.89 kB / 1.376 GB, free: 2.914 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.006974/0.5021, allocations: 2.287 MB / 1.379 GB, free: 0.625 MB / 0.8698 GB Notification: Performance of FrontEnd: time 3.216e-06/0.5021, allocations: 0 / 1.379 GB, free: 0.625 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 7.805e-06/0.5022, allocations: 0 / 1.379 GB, free: 0.625 MB / 0.8698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0006219/0.5028, allocations: 416.8 kB / 1.379 GB, free: 168 kB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 5.156e-05/0.5028, allocations: 12.56 kB / 1.379 GB, free: 156 kB / 0.8698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.687e-05/0.5029, allocations: 34.55 kB / 1.379 GB, free: 112 kB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.059e-05/0.503, allocations: 15.95 kB / 1.379 GB, free: 96 kB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001522/0.5031, allocations: 170.9 kB / 1.379 GB, free: 15.89 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.941e-05/0.5031, allocations: 4 kB / 1.379 GB, free: 15.88 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.038e-05/0.5032, allocations: 8 kB / 1.379 GB, free: 15.88 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002173/0.5034, allocations: 85.53 kB / 1.379 GB, free: 15.79 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.655e-06/0.5034, allocations: 0 / 1.379 GB, free: 15.79 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.624e-05/0.5034, allocations: 3.984 kB / 1.379 GB, free: 15.78 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.29e-06/0.5035, allocations: 7.938 kB / 1.379 GB, free: 15.77 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001953/0.5037, allocations: 55.95 kB / 1.379 GB, free: 15.72 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005275/0.5042, allocations: 344.6 kB / 1.38 GB, free: 15.33 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001797/0.5044, allocations: 66.55 kB / 1.38 GB, free: 15.26 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 2.782e-05/0.5044, allocations: 0 / 1.38 GB, free: 15.26 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002507/0.5047, allocations: 99.55 kB / 1.38 GB, free: 15.15 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=8): time 1.864e-06/0.5047, allocations: 3.938 kB / 1.38 GB, free: 15.14 MB / 0.8855 GB Notification: Performance of matching and sorting (n=8): time 0.0004565/0.5052, allocations: 173.5 kB / 1.38 GB, free: 14.97 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.916e-05/0.5052, allocations: 51.41 kB / 1.38 GB, free: 14.91 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.297e-05/0.5053, allocations: 109 kB / 1.38 GB, free: 14.79 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 2.839e-05/0.5053, allocations: 29.7 kB / 1.38 GB, free: 14.76 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 6.129e-05/0.5054, allocations: 96.03 kB / 1.38 GB, free: 14.66 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 2.669e-05/0.5054, allocations: 23.73 kB / 1.38 GB, free: 14.64 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.261e-05/0.5055, allocations: 4 kB / 1.38 GB, free: 14.63 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001082/0.5056, allocations: 322.8 kB / 1.381 GB, free: 14.31 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001623/0.5057, allocations: 55.97 kB / 1.381 GB, free: 14.25 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001705/0.5059, allocations: 100.8 kB / 1.381 GB, free: 14.14 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000171/0.5061, allocations: 85.67 kB / 1.381 GB, free: 14.05 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.5061, allocations: 0 / 1.381 GB, free: 14.05 MB / 0.8855 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0005361/0.5067, allocations: 223.1 kB / 1.381 GB, free: 13.82 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 3.963e-05/0.5067, allocations: 33.7 kB / 1.381 GB, free: 13.78 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.855e-06/0.5067, allocations: 4 kB / 1.381 GB, free: 13.78 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.498e-05/0.5067, allocations: 3.953 kB / 1.381 GB, free: 13.77 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001124/0.5069, allocations: 20.14 kB / 1.381 GB, free: 13.75 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.232e-05/0.5069, allocations: 11.92 kB / 1.381 GB, free: 13.74 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002274/0.5071, allocations: 43.97 kB / 1.381 GB, free: 13.7 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.706e-05/0.5072, allocations: 15.98 kB / 1.381 GB, free: 13.68 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.triSam1.y,triSam1.y,$PRE.triSam.y,triSam.y,$whenCondition3,$PRE.booPul.y,booPul.y,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 1 * 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 0.0001008/0.5073, allocations: 113.8 kB / 1.381 GB, free: 13.56 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.583e-05/0.5073, allocations: 7.906 kB / 1.381 GB, free: 13.55 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003373/0.5076, allocations: 141.9 kB / 1.381 GB, free: 13.41 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.608e-06/0.5076, allocations: 7.938 kB / 1.381 GB, free: 13.4 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.626e-06/0.5077, allocations: 7.953 kB / 1.381 GB, free: 13.39 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.5077, allocations: 0 / 1.381 GB, free: 13.39 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004253/0.5081, allocations: 374.5 kB / 1.382 GB, free: 12.97 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.983e-06/0.5081, allocations: 4.047 kB / 1.382 GB, free: 12.96 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.049e-05/0.5082, allocations: 15.97 kB / 1.382 GB, free: 12.95 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.096e-06/0.5082, allocations: 0 / 1.382 GB, free: 12.95 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.722e-05/0.5082, allocations: 15.89 kB / 1.382 GB, free: 12.93 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/0.5082, allocations: 0 / 1.382 GB, free: 12.93 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.5082, allocations: 0 / 1.382 GB, free: 12.93 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003105/0.5085, allocations: 227.3 kB / 1.382 GB, free: 12.7 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 3.722e-05/0.5086, allocations: 85 kB / 1.382 GB, free: 12.59 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.68e-05/0.5086, allocations: 0 / 1.382 GB, free: 12.59 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.299e-05/0.5087, allocations: 15.94 kB / 1.382 GB, free: 12.58 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.334e-05/0.5088, allocations: 4 kB / 1.382 GB, free: 12.57 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.813e-06/0.5088, allocations: 4 kB / 1.382 GB, free: 12.57 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 4.741e-05/0.5088, allocations: 95.27 kB / 1.382 GB, free: 12.48 MB / 0.8855 GB Notification: Performance of sort global known variables: time 2.61e-07/0.5088, allocations: 4 kB / 1.382 GB, free: 12.47 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0002752/0.5091, allocations: 27.92 kB / 1.382 GB, free: 12.45 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: 6 ($whenCondition3,$whenCondition1,$whenCondition2,booPul.y,triSam.y,triSam1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0006286/0.5098, allocations: 0.7678 MB / 1.383 GB, free: 11.65 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0003877/0.5102, allocations: 191.9 kB / 1.383 GB, free: 11.45 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.5102, allocations: 0 / 1.383 GB, free: 11.45 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0001251/0.5103, allocations: 43.97 kB / 1.383 GB, free: 11.41 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002296/0.5105, allocations: 18.83 kB / 1.383 GB, free: 11.39 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009244/0.5115, allocations: 1.178 MB / 1.384 GB, free: 10.14 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002447/0.5117, allocations: 0.6965 MB / 1.385 GB, free: 9.418 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 3.85e-05/0.5118, allocations: 7.781 kB / 1.385 GB, free: 9.41 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.446e-05/0.5118, allocations: 23.42 kB / 1.385 GB, free: 9.387 MB / 0.8855 GB Notification: Performance of SimCode: time 3.3e-07/0.5118, allocations: 0 / 1.385 GB, free: 9.387 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01447/0.5263, allocations: 2.179 MB / 1.387 GB, free: 7.371 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002043/0.5266, allocations: 202 kB / 1.387 GB, free: 7.125 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.604/2.13, allocations: 0 / 1.387 GB, free: 7.125 MB / 0.8855 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler_res.mat does not exist to compare? outputFormat=mat