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.341/2.341, allocations: 390.3 MB / 402.8 MB, free: 6.672 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.001075/0.001075, allocations: 184.9 kB / 496.1 MB, free: 12.84 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.538/1.538, allocations: 221.3 MB / 0.7915 GB, free: 5.352 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.001065/0.001065, allocations: 91.47 kB / 0.9317 GB, free: 5.656 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.769e-05/2.783e-05, allocations: 0 / 1.079 GB, free: 140.4 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3486/0.3487, allocations: 143 MB / 1.219 GB, free: 13.39 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.105/1.453, allocations: 150 MB / 1.365 GB, free: 4.035 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002495/1.454, allocations: 67.34 kB / 1.365 GB, free: 4 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.003508/1.457, allocations: 1.091 MB / 1.366 GB, free: 3.027 MB / 0.823 GB Notification: Performance of FrontEnd: time 1.222e-06/1.457, allocations: 0 / 1.366 GB, free: 3.027 MB / 0.823 GB Notification: Performance of Transformations before backend: time 8.155e-06/1.457, allocations: 4 kB / 1.366 GB, free: 3.023 MB / 0.823 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.0005389/1.458, allocations: 369.7 kB / 1.367 GB, free: 2.625 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 5.279e-05/1.458, allocations: 8.031 kB / 1.367 GB, free: 2.617 MB / 0.823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.781e-05/1.458, allocations: 38.55 kB / 1.367 GB, free: 2.57 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.49e-05/1.458, allocations: 7.906 kB / 1.367 GB, free: 2.562 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001418/1.458, allocations: 171 kB / 1.367 GB, free: 2.355 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.594e-05/1.458, allocations: 5.5 kB / 1.367 GB, free: 2.355 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.801e-05/1.458, allocations: 4 kB / 1.367 GB, free: 2.352 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001371/1.458, allocations: 47.38 kB / 1.367 GB, free: 2.305 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.977e-06/1.458, allocations: 0 / 1.367 GB, free: 2.305 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.294e-05/1.458, allocations: 3.562 kB / 1.367 GB, free: 2.305 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.162e-05/1.458, allocations: 3.984 kB / 1.367 GB, free: 2.301 MB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.517e-05/1.459, allocations: 23.36 kB / 1.367 GB, free: 2.281 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004845/1.459, allocations: 276.9 kB / 1.367 GB, free: 1.977 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001077/1.459, allocations: 48.25 kB / 1.367 GB, free: 1.93 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.639e-05/1.459, allocations: 17.17 kB / 1.367 GB, free: 1.914 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.371e-05/1.459, allocations: 80 / 1.367 GB, free: 1.914 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001304/1.459, allocations: 70.64 kB / 1.367 GB, free: 1.84 MB / 0.823 GB Notification: Performance of pre-optimization done (n=6): time 1.744e-06/1.459, allocations: 0 / 1.367 GB, free: 1.84 MB / 0.823 GB Notification: Performance of matching and sorting (n=6): time 0.0001978/1.46, allocations: 77.89 kB / 1.368 GB, free: 1.773 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.718e-05/1.46, allocations: 55.39 kB / 1.368 GB, free: 1.707 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.335e-05/1.46, allocations: 96.81 kB / 1.368 GB, free: 1.609 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 1.727e-05/1.46, allocations: 25.7 kB / 1.368 GB, free: 1.578 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 4.858e-05/1.46, allocations: 83.52 kB / 1.368 GB, free: 1.496 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 2.338e-05/1.46, allocations: 19.73 kB / 1.368 GB, free: 1.477 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.476e-06/1.46, allocations: 7.75 kB / 1.368 GB, free: 1.473 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 0.0001331/1.46, allocations: 311.5 kB / 1.368 GB, free: 1.16 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.354e-05/1.46, allocations: 15.81 kB / 1.368 GB, free: 1.148 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.034e-05/1.46, allocations: 41.75 kB / 1.368 GB, free: 1.102 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.197e-05/1.46, allocations: 15.61 kB / 1.368 GB, free: 1.09 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/1.46, allocations: 4 kB / 1.368 GB, free: 1.086 MB / 0.823 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.000205/1.46, allocations: 79.72 kB / 1.368 GB, free: 1.012 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 1.747e-05/1.46, allocations: 11.92 kB / 1.368 GB, free: 1 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.022e-06/1.46, allocations: 0 / 1.368 GB, free: 1 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.673e-05/1.46, allocations: 4 kB / 1.368 GB, free: 0.9961 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001261/1.461, allocations: 15.98 kB / 1.368 GB, free: 0.9805 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.405e-06/1.461, allocations: 7.891 kB / 1.368 GB, free: 0.9727 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.535e-05/1.461, allocations: 14.97 kB / 1.368 GB, free: 0.9609 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.21e-05/1.461, allocations: 4 kB / 1.368 GB, free: 0.957 MB / 0.823 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 8.225e-05/1.461, allocations: 108.9 kB / 1.368 GB, free: 0.8477 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.495e-05/1.461, allocations: 7.906 kB / 1.368 GB, free: 0.8398 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000175/1.461, allocations: 76.19 kB / 1.369 GB, free: 0.7695 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.192e-06/1.461, allocations: 3.984 kB / 1.369 GB, free: 0.7656 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.887e-06/1.461, allocations: 3.938 kB / 1.369 GB, free: 0.7617 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.731e-06/1.461, allocations: 3.953 kB / 1.369 GB, free: 0.7578 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003315/1.461, allocations: 326.2 kB / 1.369 GB, free: 416 kB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.989e-06/1.461, allocations: 4 kB / 1.369 GB, free: 412 kB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.42e-05/1.461, allocations: 11.98 kB / 1.369 GB, free: 400 kB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.516e-06/1.461, allocations: 0 / 1.369 GB, free: 400 kB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.003e-05/1.461, allocations: 0 / 1.369 GB, free: 400 kB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.589e-06/1.461, allocations: 3.953 kB / 1.369 GB, free: 396 kB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/1.461, allocations: 0 / 1.369 GB, free: 396 kB / 0.823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001775/1.462, allocations: 177 kB / 1.369 GB, free: 216 kB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 5.22e-05/1.462, allocations: 81.02 kB / 1.369 GB, free: 116 kB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.665e-05/1.462, allocations: 0 / 1.369 GB, free: 116 kB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001064/1.462, allocations: 15.55 kB / 1.369 GB, free: 104 kB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.951e-05/1.462, allocations: 7.953 kB / 1.369 GB, free: 96 kB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.02e-05/1.462, allocations: 3.984 kB / 1.369 GB, free: 92 kB / 0.823 GB Notification: Performance of sorting global known variables: time 4.46e-05/1.462, allocations: 86.72 kB / 1.369 GB, free: 8 kB / 0.823 GB Notification: Performance of sort global known variables: time 1.3e-07/1.462, allocations: 4 kB / 1.369 GB, free: 4 kB / 0.823 GB Notification: Performance of remove unused functions: time 0.0002505/1.462, allocations: 16.05 kB / 1.369 GB, free: 15.98 MB / 0.8386 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.0005784/1.463, allocations: 0.709 MB / 1.37 GB, free: 15.27 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001371/1.463, allocations: 50.45 kB / 1.37 GB, free: 15.23 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.927e-06/1.463, allocations: 192 / 1.37 GB, free: 15.23 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 5.14e-05/1.463, allocations: 23.19 kB / 1.37 GB, free: 15.21 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002108/1.463, allocations: 16.47 kB / 1.37 GB, free: 15.2 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005336/1.464, allocations: 120.8 kB / 1.37 GB, free: 15.05 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004622/1.464, allocations: 0.6861 MB / 1.371 GB, free: 14.34 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 4.335e-05/1.464, allocations: 4.188 kB / 1.371 GB, free: 14.34 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.71e-05/1.464, allocations: 18.88 kB / 1.371 GB, free: 14.32 MB / 0.8386 GB Notification: Performance of SimCode: time 3.1e-07/1.464, allocations: 4 kB / 1.371 GB, free: 14.32 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01499/1.479, allocations: 1.461 MB / 1.372 GB, free: 13 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000225/1.48, allocations: 161.2 kB / 1.372 GB, free: 12.77 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.576/3.056, allocations: 0 / 1.372 GB, free: 12.77 MB / 0.8386 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