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/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 10.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001341/0.001342, allocations: 100 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.001519/0.001519, 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.863/1.863, allocations: 223.2 MB / 239.9 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 3.016/3.016, allocations: 409.2 MB / 0.6838 GB, free: 1.023 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0005931/0.0005933, allocations: 12 kB / 0.8375 GB, free: 6.555 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.203/1.204, allocations: 146.8 MB / 0.9809 GB, free: 6.293 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.0009941/1.205, allocations: 389.1 kB / 0.9812 GB, free: 5.918 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001639/1.207, allocations: 1.029 MB / 0.9823 GB, free: 4.875 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.615e-05/1.207, allocations: 0 / 0.9823 GB, free: 4.875 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 1.953e-05/1.207, allocations: 0 / 0.9823 GB, free: 4.875 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 7.69e-05/1.207, allocations: 11.91 kB / 0.9823 GB, free: 4.863 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002821/1.207, allocations: 27.91 kB / 0.9823 GB, free: 4.836 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 8.659e-05/1.207, allocations: 27.97 kB / 0.9823 GB, free: 4.809 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001124/1.207, allocations: 15.98 kB / 0.9823 GB, free: 4.793 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 8.614e-05/1.208, allocations: 15.92 kB / 0.9823 GB, free: 4.777 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 6.259e-05/1.208, allocations: 19.91 kB / 0.9824 GB, free: 4.758 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.547e-05/1.208, allocations: 8 kB / 0.9824 GB, free: 4.75 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 7.587e-05/1.208, allocations: 15.98 kB / 0.9824 GB, free: 4.734 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 1.787e-05/1.208, allocations: 0 / 0.9824 GB, free: 4.734 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 4.5e-05/1.208, allocations: 37.64 kB / 0.9824 GB, free: 4.691 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001147/1.208, allocations: 35.91 kB / 0.9825 GB, free: 4.652 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/1.208, allocations: 0 / 0.9825 GB, free: 4.652 MB / 0.7325 GB Notification: Performance of FrontEnd: time 3.095e-06/1.208, allocations: 0 / 0.9825 GB, free: 4.652 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.821e-06/1.208, allocations: 0 / 0.9825 GB, free: 4.652 MB / 0.7325 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.0007279/1.209, allocations: 369.5 kB / 0.9828 GB, free: 4.246 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 5.72e-05/1.209, allocations: 12.03 kB / 0.9828 GB, free: 4.234 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.083e-05/1.209, allocations: 30.56 kB / 0.9829 GB, free: 4.195 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.256e-05/1.209, allocations: 15.89 kB / 0.9829 GB, free: 4.18 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001709/1.209, allocations: 159.1 kB / 0.983 GB, free: 3.984 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.13e-05/1.209, allocations: 11.94 kB / 0.983 GB, free: 3.973 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.607e-05/1.209, allocations: 0 / 0.983 GB, free: 3.973 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000267/1.209, allocations: 85.48 kB / 0.9831 GB, free: 3.883 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.876e-06/1.209, allocations: 0 / 0.9831 GB, free: 3.883 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.154e-05/1.209, allocations: 0 / 0.9831 GB, free: 3.883 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.728e-06/1.209, allocations: 0 / 0.9831 GB, free: 3.883 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002229/1.21, allocations: 51.95 kB / 0.9832 GB, free: 3.832 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006129/1.21, allocations: 276.8 kB / 0.9834 GB, free: 3.512 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002061/1.211, allocations: 70.44 kB / 0.9835 GB, free: 3.434 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 4.106e-05/1.211, allocations: 4 kB / 0.9835 GB, free: 3.43 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002792/1.211, allocations: 75.5 kB / 0.9836 GB, free: 3.344 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=6): time 1.774e-06/1.211, allocations: 0 / 0.9836 GB, free: 3.344 MB / 0.7325 GB Notification: Performance of matching and sorting (n=6): time 0.0005018/1.211, allocations: 133.6 kB / 0.9837 GB, free: 3.207 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.218e-05/1.211, allocations: 59.34 kB / 0.9838 GB, free: 3.137 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001076/1.212, allocations: 101.8 kB / 0.9839 GB, free: 3.027 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.393e-05/1.212, allocations: 29.7 kB / 0.9839 GB, free: 2.992 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001097/1.212, allocations: 88.14 kB / 0.984 GB, free: 2.902 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 3.1e-05/1.212, allocations: 23.73 kB / 0.984 GB, free: 2.879 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.761e-06/1.212, allocations: 0 / 0.984 GB, free: 2.879 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001487/1.212, allocations: 310.8 kB / 0.9843 GB, free: 2.566 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000109/1.212, allocations: 31.97 kB / 0.9843 GB, free: 2.535 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000149/1.212, allocations: 59.41 kB / 0.9844 GB, free: 2.465 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001148/1.212, allocations: 31.97 kB / 0.9844 GB, free: 2.434 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/1.212, allocations: 0 / 0.9844 GB, free: 2.434 MB / 0.7325 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0003076/1.213, allocations: 125.4 kB / 0.9845 GB, free: 2.305 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.538e-05/1.213, allocations: 7.984 kB / 0.9845 GB, free: 2.297 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/1.213, allocations: 0 / 0.9845 GB, free: 2.297 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.881e-05/1.213, allocations: 4 kB / 0.9845 GB, free: 2.293 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001243/1.213, allocations: 20.08 kB / 0.9845 GB, free: 2.273 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.107e-06/1.213, allocations: 0 / 0.9845 GB, free: 2.273 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.416e-05/1.213, allocations: 8 kB / 0.9846 GB, free: 2.266 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.407e-05/1.213, allocations: 4 kB / 0.9846 GB, free: 2.262 MB / 0.7325 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 0.0001238/1.213, allocations: 117.8 kB / 0.9847 GB, free: 2.137 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.859e-05/1.213, allocations: 7.859 kB / 0.9847 GB, free: 2.129 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003441/1.213, allocations: 122.5 kB / 0.9848 GB, free: 2 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.609e-06/1.214, allocations: 0 / 0.9848 GB, free: 2 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.618e-06/1.214, allocations: 4 kB / 0.9848 GB, free: 1.996 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.541e-06/1.214, allocations: 64 / 0.9848 GB, free: 1.996 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005798/1.214, allocations: 374.5 kB / 0.9852 GB, free: 1.574 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/1.214, allocations: 0 / 0.9852 GB, free: 1.574 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.491e-05/1.214, allocations: 15.98 kB / 0.9852 GB, free: 1.559 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.306e-06/1.214, allocations: 0 / 0.9852 GB, free: 1.559 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.243e-05/1.214, allocations: 3.938 kB / 0.9852 GB, free: 1.555 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/1.214, allocations: 0 / 0.9852 GB, free: 1.555 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/1.214, allocations: 4 kB / 0.9852 GB, free: 1.551 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003394/1.215, allocations: 203.5 kB / 0.9854 GB, free: 1.336 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 6.09e-05/1.215, allocations: 84.95 kB / 0.9855 GB, free: 1.234 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.214e-05/1.215, allocations: 12 kB / 0.9855 GB, free: 1.223 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001106/1.215, allocations: 11.98 kB / 0.9855 GB, free: 1.211 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.937e-05/1.215, allocations: 3.938 kB / 0.9855 GB, free: 1.207 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.714e-05/1.215, allocations: 4 kB / 0.9855 GB, free: 1.203 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 5.568e-05/1.215, allocations: 87.27 kB / 0.9856 GB, free: 1.117 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.1e-07/1.215, allocations: 0 / 0.9856 GB, free: 1.117 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002578/1.215, allocations: 8 kB / 0.9856 GB, free: 1.109 MB / 0.7325 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.000752/1.216, allocations: 0.7359 MB / 0.9863 GB, free: 356 kB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0003047/1.216, allocations: 75.89 kB / 0.9864 GB, free: 280 kB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/1.216, allocations: 0 / 0.9864 GB, free: 280 kB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001189/1.216, allocations: 40.47 kB / 0.9864 GB, free: 240 kB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002457/1.217, allocations: 12 kB / 0.9864 GB, free: 228 kB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009644/1.218, allocations: 0.8073 MB / 0.9872 GB, free: 15.36 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004071/1.218, allocations: 0.6863 MB / 0.9879 GB, free: 14.64 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 7.181e-05/1.218, allocations: 8.297 kB / 0.9879 GB, free: 14.63 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.273e-05/1.218, allocations: 15.44 kB / 0.9879 GB, free: 14.62 MB / 0.7481 GB Notification: Performance of SimCode: time 4.31e-07/1.218, allocations: 4 kB / 0.9879 GB, free: 14.61 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01631/1.235, allocations: 1.469 MB / 0.9893 GB, free: 13.28 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000266/1.235, allocations: 184.1 kB / 0.9895 GB, free: 13.04 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.109/4.344, allocations: 2.672 kB / 0.9895 GB, free: 13.04 MB / 0.7481 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) Environment - environmentSimulation: 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