Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 2.298/2.298, allocations: 390.3 MB / 405.3 MB, free: 13.45 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.0009795/0.0009794, allocations: 177.1 kB / 498.1 MB, free: 5.691 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.574/1.574, allocations: 223.2 MB / 0.7948 GB, free: 17.85 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.0009332/0.0009332, allocations: 90.92 kB / 0.9346 GB, free: 6.133 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004136/0.0004136, allocations: 10.25 kB / 1.084 GB, free: 221.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2839/0.2843, allocations: 142.3 MB / 1.223 GB, free: 114.1 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1752/0.4596, allocations: 149.2 MB / 1.369 GB, free: 12.67 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001821/0.4598, allocations: 71.95 kB / 1.369 GB, free: 12.6 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.003391/0.4632, allocations: 1.098 MB / 1.37 GB, free: 11.5 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.202e-06/0.4632, allocations: 0 / 1.37 GB, free: 11.5 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 5.941e-06/0.4633, allocations: 0 / 1.37 GB, free: 11.5 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004898/0.4638, allocations: 375.2 kB / 1.37 GB, free: 11.09 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 3.851e-05/0.4638, allocations: 8.031 kB / 1.37 GB, free: 11.08 MB / 0.8698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.456e-05/0.4639, allocations: 34.5 kB / 1.37 GB, free: 11.04 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.761e-05/0.4639, allocations: 11.84 kB / 1.37 GB, free: 11.02 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001208/0.464, allocations: 171 kB / 1.37 GB, free: 10.82 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.226e-05/0.464, allocations: 7.984 kB / 1.37 GB, free: 10.81 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.301e-05/0.4641, allocations: 4 kB / 1.37 GB, free: 10.8 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002309/0.4643, allocations: 65.67 kB / 1.37 GB, free: 10.73 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.736e-06/0.4643, allocations: 0 / 1.37 GB, free: 10.73 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.979e-06/0.4643, allocations: 0 / 1.37 GB, free: 10.73 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.978e-06/0.4643, allocations: 0 / 1.37 GB, free: 10.73 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001955/0.4645, allocations: 63.88 kB / 1.371 GB, free: 10.67 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004317/0.465, allocations: 284.7 kB / 1.371 GB, free: 10.34 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001592/0.4652, allocations: 58.55 kB / 1.371 GB, free: 10.28 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.839e-05/0.4652, allocations: 0 / 1.371 GB, free: 10.28 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002034/0.4654, allocations: 87.48 kB / 1.371 GB, free: 10.18 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=6): time 1.582e-06/0.4654, allocations: 0 / 1.371 GB, free: 10.18 MB / 0.8698 GB Notification: Performance of matching and sorting (n=6): time 0.0004307/0.4658, allocations: 141.5 kB / 1.371 GB, free: 10.04 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.95e-05/0.4659, allocations: 55.36 kB / 1.371 GB, free: 9.969 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.808e-05/0.466, allocations: 93 kB / 1.371 GB, free: 9.871 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 1.821e-05/0.466, allocations: 33.7 kB / 1.371 GB, free: 9.832 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 4.065e-05/0.4661, allocations: 84.12 kB / 1.371 GB, free: 9.746 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 2.232e-05/0.4661, allocations: 15.81 kB / 1.371 GB, free: 9.73 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.218e-06/0.4661, allocations: 0 / 1.371 GB, free: 9.73 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001182/0.4662, allocations: 314.8 kB / 1.372 GB, free: 9.414 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001089/0.4663, allocations: 31.97 kB / 1.372 GB, free: 9.383 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001146/0.4665, allocations: 63.39 kB / 1.372 GB, free: 9.309 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00011/0.4666, allocations: 31.92 kB / 1.372 GB, free: 9.277 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.4666, allocations: 0 / 1.372 GB, free: 9.277 MB / 0.8698 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.000283/0.4669, allocations: 117.6 kB / 1.372 GB, free: 9.156 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.405e-05/0.4669, allocations: 4 kB / 1.372 GB, free: 9.152 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.358e-06/0.4669, allocations: 0 / 1.372 GB, free: 9.152 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.589e-05/0.4669, allocations: 4 kB / 1.372 GB, free: 9.148 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001088/0.467, allocations: 15.98 kB / 1.372 GB, free: 9.133 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.694e-06/0.4671, allocations: 3.938 kB / 1.372 GB, free: 9.129 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.07e-05/0.4671, allocations: 23.94 kB / 1.372 GB, free: 9.105 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.088e-05/0.4672, allocations: 4 kB / 1.372 GB, free: 9.102 MB / 0.8698 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 8.171e-05/0.4672, allocations: 113.8 kB / 1.372 GB, free: 8.98 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.949e-05/0.4673, allocations: 0 / 1.372 GB, free: 8.98 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000297/0.4676, allocations: 118 kB / 1.372 GB, free: 8.855 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/0.4676, allocations: 0 / 1.372 GB, free: 8.855 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.4676, allocations: 4.562 kB / 1.372 GB, free: 8.852 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.4676, allocations: 0 / 1.372 GB, free: 8.852 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004577/0.4681, allocations: 378.5 kB / 1.373 GB, free: 8.426 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.4681, allocations: 4 kB / 1.373 GB, free: 8.422 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.898e-05/0.4682, allocations: 11.98 kB / 1.373 GB, free: 8.41 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.197e-06/0.4682, allocations: 0 / 1.373 GB, free: 8.41 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.027e-05/0.4682, allocations: 0 / 1.373 GB, free: 8.41 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.4682, allocations: 0 / 1.373 GB, free: 8.41 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.746e-06/0.4682, allocations: 3.953 kB / 1.373 GB, free: 8.406 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003057/0.4685, allocations: 211.3 kB / 1.373 GB, free: 8.184 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 3.309e-05/0.4686, allocations: 77.11 kB / 1.373 GB, free: 8.09 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.445e-05/0.4686, allocations: 4 kB / 1.373 GB, free: 8.086 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001082/0.4687, allocations: 19.92 kB / 1.373 GB, free: 8.066 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.585e-05/0.4687, allocations: 7.938 kB / 1.373 GB, free: 8.059 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.648e-06/0.4688, allocations: 4 kB / 1.373 GB, free: 8.055 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 4.485e-05/0.4688, allocations: 83.28 kB / 1.373 GB, free: 7.973 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4688, allocations: 0 / 1.373 GB, free: 7.973 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0002418/0.4691, allocations: 27.89 kB / 1.373 GB, free: 7.945 MB / 0.8698 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.0005947/0.4697, allocations: 0.7395 MB / 1.374 GB, free: 7.18 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0002599/0.4699, allocations: 79.89 kB / 1.374 GB, free: 7.102 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.4699, allocations: 0 / 1.374 GB, free: 7.102 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001268/0.4701, allocations: 35.97 kB / 1.374 GB, free: 7.066 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001609/0.4702, allocations: 1.75 kB / 1.374 GB, free: 7.066 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000691/0.471, allocations: 0.8253 MB / 1.375 GB, free: 6.18 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002422/0.4712, allocations: 0.6809 MB / 1.375 GB, free: 5.473 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 3.548e-05/0.4712, allocations: 8.172 kB / 1.375 GB, free: 5.461 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.727e-05/0.4713, allocations: 15.44 kB / 1.375 GB, free: 5.445 MB / 0.8698 GB Notification: Performance of SimCode: time 3.21e-07/0.4713, allocations: 0 / 1.375 GB, free: 5.445 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01166/0.483, allocations: 1.438 MB / 1.377 GB, free: 4.133 MB / 0.8698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001749/0.4832, allocations: 180.7 kB / 1.377 GB, free: 3.895 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.55/2.033, allocations: 0 / 1.377 GB, free: 3.895 MB / 0.8698 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler_res.mat does not exist to compare? outputFormat=mat