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.0008904/0.0008908, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.001/0.001, allocations: 168.7 kB / 15.95 MB, free: 204 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.387/1.387, allocations: 223.2 MB / 240 MB, free: 5.426 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.4 MB / 0.6655 GB, free: 2.973 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003484/0.0003484, allocations: 8 kB / 0.8149 GB, free: 14.15 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7159/0.7163, allocations: 142.3 MB / 0.9539 GB, free: 8.145 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.000839/0.7172, allocations: 384.9 kB / 0.9542 GB, free: 7.855 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001275/0.7185, allocations: 1.032 MB / 0.9552 GB, free: 7.023 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.264e-05/0.7186, allocations: 0 / 0.9552 GB, free: 7.023 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.94e-05/0.7186, allocations: 3.938 kB / 0.9552 GB, free: 7.02 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.041e-05/0.7187, allocations: 1.031 kB / 0.9552 GB, free: 7.02 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002952/0.719, allocations: 42.17 kB / 0.9553 GB, free: 6.988 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.252e-05/0.7191, allocations: 39.2 kB / 0.9553 GB, free: 6.965 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.361e-05/0.7192, allocations: 7.734 kB / 0.9553 GB, free: 6.961 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.531e-05/0.7193, allocations: 23.14 kB / 0.9553 GB, free: 6.945 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.712e-05/0.7193, allocations: 22.22 kB / 0.9554 GB, free: 6.93 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.528e-05/0.7193, allocations: 1.688 kB / 0.9554 GB, free: 6.93 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.349e-05/0.7194, allocations: 16.14 kB / 0.9554 GB, free: 6.922 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.08e-05/0.7194, allocations: 9.953 kB / 0.9554 GB, free: 6.914 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.493e-05/0.7195, allocations: 28.92 kB / 0.9554 GB, free: 6.883 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001192/0.7196, allocations: 32.8 kB / 0.9555 GB, free: 6.859 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.7196, allocations: 0 / 0.9555 GB, free: 6.859 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.362e-06/0.7196, allocations: 0.9688 kB / 0.9555 GB, free: 6.859 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.038e-06/0.7196, allocations: 0 / 0.9555 GB, free: 6.859 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.0005176/0.7202, allocations: 370.6 kB / 0.9558 GB, free: 6.48 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.089e-05/0.7202, allocations: 9.125 kB / 0.9558 GB, free: 6.48 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.849e-05/0.7203, allocations: 43.55 kB / 0.9559 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.552e-05/0.7203, allocations: 10.11 kB / 0.9559 GB, free: 6.422 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001171/0.7204, allocations: 161.5 kB / 0.956 GB, free: 6.227 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.6e-05/0.7205, allocations: 9.125 kB / 0.956 GB, free: 6.219 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.321e-05/0.7205, allocations: 2.438 kB / 0.956 GB, free: 6.219 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002105/0.7207, allocations: 72.27 kB / 0.9561 GB, free: 6.164 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.528e-06/0.7207, allocations: 0 / 0.9561 GB, free: 6.164 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.377e-05/0.7207, allocations: 1.438 kB / 0.9561 GB, free: 6.164 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.182e-06/0.7208, allocations: 0 / 0.9561 GB, free: 6.164 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001962/0.721, allocations: 65.09 kB / 0.9562 GB, free: 6.133 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000408/0.7214, allocations: 270 kB / 0.9564 GB, free: 5.836 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00016/0.7215, allocations: 62.48 kB / 0.9565 GB, free: 5.793 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.276e-05/0.7216, allocations: 35.89 kB / 0.9565 GB, free: 5.773 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.161e-05/0.7217, allocations: 5.312 kB / 0.9565 GB, free: 5.77 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002148/0.7219, allocations: 92.3 kB / 0.9566 GB, free: 5.688 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=6): time 1.673e-06/0.7219, allocations: 0 / 0.9566 GB, free: 5.688 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6): time 0.0004738/0.7224, allocations: 141.4 kB / 0.9567 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.788e-05/0.7225, allocations: 52.59 kB / 0.9568 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.945e-05/0.7225, allocations: 104.9 kB / 0.9569 GB, free: 5.441 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.588e-05/0.7226, allocations: 26.86 kB / 0.9569 GB, free: 5.41 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.221e-05/0.7226, allocations: 85.3 kB / 0.957 GB, free: 5.324 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.11e-05/0.7226, allocations: 14.22 kB / 0.957 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.164e-06/0.7227, allocations: 5.188 kB / 0.957 GB, free: 5.309 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.187e-05/0.7227, allocations: 316 kB / 0.9573 GB, free: 4.992 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.953e-05/0.7228, allocations: 29.27 kB / 0.9573 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.926e-05/0.7229, allocations: 60.81 kB / 0.9574 GB, free: 4.93 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.782e-05/0.723, allocations: 32.17 kB / 0.9574 GB, free: 4.918 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.7231, allocations: 0 / 0.9574 GB, free: 4.918 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002418/0.7233, allocations: 117.6 kB / 0.9575 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.778e-05/0.7233, allocations: 6.031 kB / 0.9576 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.046e-06/0.7233, allocations: 5.453 kB / 0.9576 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.49e-05/0.7234, allocations: 5.219 kB / 0.9576 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001024/0.7235, allocations: 23.7 kB / 0.9576 GB, free: 4.828 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.634e-06/0.7235, allocations: 2.312 kB / 0.9576 GB, free: 4.828 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.594e-05/0.7236, allocations: 14.95 kB / 0.9576 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.884e-05/0.7236, allocations: 3 kB / 0.9576 GB, free: 4.82 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.938e-05/0.7237, allocations: 113.4 kB / 0.9577 GB, free: 4.703 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.124e-05/0.7237, allocations: 2.656 kB / 0.9577 GB, free: 4.703 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002518/0.7239, allocations: 117.6 kB / 0.9578 GB, free: 4.629 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.799e-06/0.724, allocations: 5.016 kB / 0.9578 GB, free: 4.625 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.224e-06/0.724, allocations: 4.547 kB / 0.9578 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.937e-06/0.724, allocations: 1.094 kB / 0.9578 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003585/0.7243, allocations: 366.5 kB / 0.9582 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.7243, allocations: 0 / 0.9582 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.436e-05/0.7244, allocations: 7.469 kB / 0.9582 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.138e-06/0.7244, allocations: 5.141 kB / 0.9582 GB, free: 4.262 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.859e-06/0.7244, allocations: 1.156 kB / 0.9582 GB, free: 4.262 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.325e-06/0.7244, allocations: 7.922 kB / 0.9582 GB, free: 4.254 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.7244, allocations: 0 / 0.9582 GB, free: 4.254 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002312/0.7247, allocations: 202.5 kB / 0.9584 GB, free: 4.09 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.119e-05/0.7247, allocations: 82.45 kB / 0.9585 GB, free: 3.992 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.004e-05/0.7247, allocations: 9.344 kB / 0.9585 GB, free: 3.984 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.79e-05/0.7248, allocations: 12.19 kB / 0.9585 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.527e-05/0.7249, allocations: 9.828 kB / 0.9585 GB, free: 3.973 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.208e-05/0.7249, allocations: 1.938 kB / 0.9585 GB, free: 3.973 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.423e-05/0.7249, allocations: 84.67 kB / 0.9586 GB, free: 3.895 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.11e-07/0.7249, allocations: 0 / 0.9586 GB, free: 3.895 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002367/0.7252, allocations: 18.88 kB / 0.9586 GB, free: 3.887 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.0004548/0.7256, allocations: 0.7323 MB / 0.9593 GB, free: 3.191 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002406/0.7259, allocations: 78.14 kB / 0.9594 GB, free: 3.16 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.7259, allocations: 1 kB / 0.9594 GB, free: 3.16 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001046/0.726, allocations: 35 kB / 0.9594 GB, free: 3.148 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002653/0.7263, allocations: 16.44 kB / 0.9595 GB, free: 3.137 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000897/0.7272, allocations: 0.4911 MB / 0.9599 GB, free: 2.707 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001193/0.7273, allocations: 0.6846 MB / 0.9606 GB, free: 2.004 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.248e-05/0.7273, allocations: 4.875 kB / 0.9606 GB, free: 2 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.51e-05/0.7274, allocations: 22.08 kB / 0.9606 GB, free: 1.98 MB / 0.7169 GB Notification: Performance of SimCode: time 2.2e-07/0.7274, allocations: 0 / 0.9606 GB, free: 1.98 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01157/0.739, allocations: 1.464 MB / 0.9621 GB, free: 1.297 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001449/0.7392, allocations: 189 kB / 0.9622 GB, free: 1.059 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.828/2.567, allocations: 7.875 kB / 0.9622 GB, free: 1.051 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