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/ModelicaServices 4.0.0+maint.om/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/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) 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) 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009576/0.0009576, allocations: 100.3 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001031/0.001031, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.402/1.402, allocations: 223.2 MB / 239.9 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.465/2.465, allocations: 390.3 MB / 0.6653 GB, free: 2.973 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003671/0.0003671, allocations: 12 kB / 0.8146 GB, free: 14.19 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7592/0.7596, allocations: 142.3 MB / 0.9536 GB, free: 8.102 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.0008295/0.7604, allocations: 386.8 kB / 0.954 GB, free: 7.812 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001227/0.7617, allocations: 1.034 MB / 0.955 GB, free: 6.98 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.573e-05/0.7617, allocations: 0 / 0.955 GB, free: 6.98 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.883e-05/0.7618, allocations: 3.984 kB / 0.955 GB, free: 6.977 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.966e-05/0.7619, allocations: 6.047 kB / 0.955 GB, free: 6.973 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002404/0.7621, allocations: 37.09 kB / 0.955 GB, free: 6.945 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.465e-05/0.7622, allocations: 25 kB / 0.955 GB, free: 6.93 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.673e-05/0.7623, allocations: 11.42 kB / 0.9551 GB, free: 6.922 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.142e-05/0.7624, allocations: 14.52 kB / 0.9551 GB, free: 6.914 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.588e-05/0.7624, allocations: 22.66 kB / 0.9551 GB, free: 6.898 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.227e-05/0.7625, allocations: 2.125 kB / 0.9551 GB, free: 6.898 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.189e-05/0.7625, allocations: 15.17 kB / 0.9551 GB, free: 6.891 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.628e-05/0.7625, allocations: 1.938 kB / 0.9551 GB, free: 6.891 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.374e-05/0.7626, allocations: 32.83 kB / 0.9551 GB, free: 6.855 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 8.902e-05/0.7627, allocations: 40.84 kB / 0.9552 GB, free: 6.824 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.765e-06/0.7627, allocations: 5.219 kB / 0.9552 GB, free: 6.82 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.673e-06/0.7627, allocations: 0 / 0.9552 GB, free: 6.82 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.967e-06/0.7627, allocations: 0 / 0.9552 GB, free: 6.82 MB / 0.7169 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.0005022/0.7632, allocations: 365.9 kB / 0.9555 GB, free: 6.445 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.256e-05/0.7633, allocations: 17.06 kB / 0.9555 GB, free: 6.438 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.152e-05/0.7633, allocations: 35.48 kB / 0.9556 GB, free: 6.395 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.075e-05/0.7633, allocations: 10.05 kB / 0.9556 GB, free: 6.387 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.686e-05/0.7634, allocations: 162 kB / 0.9557 GB, free: 6.191 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.321e-05/0.7635, allocations: 4.969 kB / 0.9557 GB, free: 6.188 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.509e-05/0.7635, allocations: 3.062 kB / 0.9558 GB, free: 6.188 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001942/0.7637, allocations: 66.97 kB / 0.9558 GB, free: 6.137 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.186e-06/0.7637, allocations: 5.312 kB / 0.9558 GB, free: 6.133 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.085e-05/0.7637, allocations: 4 kB / 0.9558 GB, free: 6.129 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.16e-06/0.7637, allocations: 1.219 kB / 0.9558 GB, free: 6.129 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001883/0.7639, allocations: 56 kB / 0.9559 GB, free: 6.105 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003824/0.7643, allocations: 271.3 kB / 0.9561 GB, free: 5.809 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001569/0.7645, allocations: 61.55 kB / 0.9562 GB, free: 5.766 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.393e-05/0.7645, allocations: 5.578 kB / 0.9562 GB, free: 5.762 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002123/0.7647, allocations: 88.31 kB / 0.9563 GB, free: 5.684 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=6): time 1.613e-06/0.7647, allocations: 4.906 kB / 0.9563 GB, free: 5.68 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6): time 0.0004069/0.7652, allocations: 140.9 kB / 0.9564 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.219e-05/0.7652, allocations: 52.41 kB / 0.9565 GB, free: 5.539 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.633e-05/0.7653, allocations: 104.8 kB / 0.9566 GB, free: 5.434 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.104e-05/0.7653, allocations: 27.17 kB / 0.9566 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.099e-05/0.7653, allocations: 85.58 kB / 0.9567 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.975e-05/0.7653, allocations: 22.55 kB / 0.9567 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.598e-06/0.7653, allocations: 0 / 0.9567 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.99e-05/0.7654, allocations: 315.9 kB / 0.957 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001014/0.7655, allocations: 30.34 kB / 0.957 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000113/0.7656, allocations: 55.42 kB / 0.9571 GB, free: 4.922 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000106/0.7658, allocations: 36.69 kB / 0.9571 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.7658, allocations: 0 / 0.9571 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002663/0.766, allocations: 121.5 kB / 0.9572 GB, free: 4.832 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.759e-05/0.7661, allocations: 6.25 kB / 0.9572 GB, free: 4.832 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.442e-06/0.7661, allocations: 1.281 kB / 0.9572 GB, free: 4.832 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.371e-05/0.7661, allocations: 5.141 kB / 0.9573 GB, free: 4.828 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001036/0.7662, allocations: 20.14 kB / 0.9573 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.703e-06/0.7662, allocations: 1.344 kB / 0.9573 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.334e-05/0.7663, allocations: 11.22 kB / 0.9573 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.011e-05/0.7663, allocations: 2.844 kB / 0.9573 GB, free: 4.816 MB / 0.7169 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 6.655e-05/0.7664, allocations: 118.2 kB / 0.9574 GB, free: 4.695 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.298e-05/0.7664, allocations: 2.719 kB / 0.9574 GB, free: 4.695 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002787/0.7667, allocations: 117.7 kB / 0.9575 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/0.7667, allocations: 3.953 kB / 0.9575 GB, free: 4.617 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.7667, allocations: 1.125 kB / 0.9575 GB, free: 4.617 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.7667, allocations: 0 / 0.9575 GB, free: 4.617 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003691/0.7671, allocations: 366.3 kB / 0.9579 GB, free: 4.262 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.7671, allocations: 0 / 0.9579 GB, free: 4.262 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.355e-05/0.7672, allocations: 17.33 kB / 0.9579 GB, free: 4.254 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.526e-06/0.7672, allocations: 7.891 kB / 0.9579 GB, free: 4.246 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.406e-06/0.7672, allocations: 1.219 kB / 0.9579 GB, free: 4.246 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.495e-06/0.7672, allocations: 1.125 kB / 0.9579 GB, free: 4.246 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.7672, allocations: 0 / 0.9579 GB, free: 4.246 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002869/0.7675, allocations: 202 kB / 0.9581 GB, free: 4.082 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.109e-05/0.7675, allocations: 82.2 kB / 0.9582 GB, free: 3.984 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.636e-05/0.7675, allocations: 13.02 kB / 0.9582 GB, free: 3.973 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.834e-05/0.7676, allocations: 15.92 kB / 0.9582 GB, free: 3.965 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.656e-05/0.7677, allocations: 3.969 kB / 0.9582 GB, free: 3.965 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.264e-05/0.7677, allocations: 1.344 kB / 0.9582 GB, free: 3.965 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.692e-05/0.7677, allocations: 87.05 kB / 0.9583 GB, free: 3.883 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7677, allocations: 1.344 kB / 0.9583 GB, free: 3.883 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002501/0.768, allocations: 12.84 kB / 0.9583 GB, free: 3.879 MB / 0.7169 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.0004956/0.7685, allocations: 0.734 MB / 0.959 GB, free: 3.184 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.000253/0.7688, allocations: 82.22 kB / 0.9591 GB, free: 3.148 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.7688, allocations: 0 / 0.9591 GB, free: 3.148 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001207/0.7689, allocations: 31.61 kB / 0.9591 GB, free: 3.141 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001875/0.7691, allocations: 19.88 kB / 0.9591 GB, free: 3.125 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005817/0.7697, allocations: 0.7973 MB / 0.9599 GB, free: 2.301 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001327/0.7698, allocations: 0.6871 MB / 0.9606 GB, free: 1.598 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.377e-05/0.7699, allocations: 2.781 kB / 0.9606 GB, free: 1.594 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.74e-05/0.7699, allocations: 14.41 kB / 0.9606 GB, free: 1.582 MB / 0.7169 GB Notification: Performance of SimCode: time 2.31e-07/0.7699, allocations: 0 / 0.9606 GB, free: 1.582 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01076/0.7807, allocations: 1.457 MB / 0.962 GB, free: 0.8945 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001422/0.7809, allocations: 182.2 kB / 0.9622 GB, free: 0.6562 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.737/2.517, allocations: 0 / 0.9622 GB, free: 0.6562 MB / 0.7169 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