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.00101/0.00101, 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.001263/0.001264, 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.391/1.391, allocations: 223.2 MB / 240 MB, free: 5.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.504/2.504, allocations: 409.4 MB / 0.684 GB, free: 0.9492 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0003762/0.0003763, allocations: 12 kB / 0.8378 GB, free: 6.492 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8135/0.8139, allocations: 146.8 MB / 0.9811 GB, free: 6.262 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.00103/0.815, allocations: 389.1 kB / 0.9815 GB, free: 5.887 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001823/0.8168, allocations: 1.037 MB / 0.9825 GB, free: 4.836 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.577e-05/0.8169, allocations: 4 kB / 0.9825 GB, free: 4.832 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 2.482e-05/0.8169, allocations: 0 / 0.9825 GB, free: 4.832 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 9.302e-05/0.817, allocations: 3.938 kB / 0.9825 GB, free: 4.828 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002826/0.8173, allocations: 31.97 kB / 0.9826 GB, free: 4.797 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001088/0.8174, allocations: 43.84 kB / 0.9826 GB, free: 4.754 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001056/0.8175, allocations: 8 kB / 0.9826 GB, free: 4.746 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 7.453e-05/0.8176, allocations: 15.92 kB / 0.9826 GB, free: 4.73 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 6.493e-05/0.8177, allocations: 19.92 kB / 0.9827 GB, free: 4.707 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.357e-05/0.8177, allocations: 0 / 0.9827 GB, free: 4.707 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 8.524e-05/0.8178, allocations: 15.98 kB / 0.9827 GB, free: 4.691 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 2.724e-05/0.8178, allocations: 15.97 kB / 0.9827 GB, free: 4.676 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 5.583e-05/0.8179, allocations: 29.64 kB / 0.9827 GB, free: 4.641 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001395/0.818, allocations: 39.92 kB / 0.9827 GB, free: 4.602 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 1.028e-05/0.8181, allocations: 0 / 0.9827 GB, free: 4.602 MB / 0.7325 GB Notification: Performance of FrontEnd: time 4.979e-06/0.8181, allocations: 0 / 0.9827 GB, free: 4.602 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.541e-06/0.8181, allocations: 0 / 0.9827 GB, free: 4.602 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.0007526/0.8188, allocations: 365.5 kB / 0.9831 GB, free: 4.199 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 6.695e-05/0.8189, allocations: 12.03 kB / 0.9831 GB, free: 4.188 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.744e-05/0.819, allocations: 34.56 kB / 0.9831 GB, free: 4.145 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.91e-05/0.819, allocations: 3.906 kB / 0.9831 GB, free: 4.141 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001928/0.8192, allocations: 171.1 kB / 0.9833 GB, free: 3.934 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.907e-05/0.8193, allocations: 7.922 kB / 0.9833 GB, free: 3.926 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.519e-05/0.8193, allocations: 4 kB / 0.9833 GB, free: 3.922 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002474/0.8195, allocations: 77.53 kB / 0.9834 GB, free: 3.84 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.234e-05/0.8196, allocations: 4 kB / 0.9834 GB, free: 3.836 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.372e-05/0.8196, allocations: 4 kB / 0.9834 GB, free: 3.832 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.067e-05/0.8196, allocations: 3.984 kB / 0.9834 GB, free: 3.828 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002046/0.8198, allocations: 47.97 kB / 0.9834 GB, free: 3.781 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006448/0.8205, allocations: 272.8 kB / 0.9837 GB, free: 3.465 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000191/0.8207, allocations: 74.38 kB / 0.9838 GB, free: 3.383 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001354/0.8208, allocations: 36.97 kB / 0.9838 GB, free: 3.344 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 3.566e-05/0.8209, allocations: 3.984 kB / 0.9838 GB, free: 3.34 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002465/0.8211, allocations: 75.39 kB / 0.9839 GB, free: 3.254 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=6): time 1.674e-06/0.8211, allocations: 0 / 0.9839 GB, free: 3.254 MB / 0.7325 GB Notification: Performance of matching and sorting (n=6): time 0.000471/0.8216, allocations: 133.6 kB / 0.984 GB, free: 3.117 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.454e-05/0.8217, allocations: 55.34 kB / 0.9841 GB, free: 3.051 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.045e-05/0.8218, allocations: 109.8 kB / 0.9842 GB, free: 2.934 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.793e-05/0.8218, allocations: 25.7 kB / 0.9842 GB, free: 2.902 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 6.397e-05/0.8219, allocations: 84.14 kB / 0.9843 GB, free: 2.816 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.601e-05/0.8219, allocations: 23.73 kB / 0.9843 GB, free: 2.793 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.839e-06/0.8219, allocations: 0 / 0.9843 GB, free: 2.793 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001313/0.822, allocations: 314.8 kB / 0.9846 GB, free: 2.477 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.508e-05/0.8221, allocations: 32.05 kB / 0.9846 GB, free: 2.445 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000116/0.8223, allocations: 59.39 kB / 0.9847 GB, free: 2.375 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.674e-05/0.8224, allocations: 31.98 kB / 0.9847 GB, free: 2.344 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.8224, allocations: 0 / 0.9847 GB, free: 2.344 MB / 0.7325 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002483/0.8226, allocations: 125.4 kB / 0.9848 GB, free: 2.215 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.356e-05/0.8226, allocations: 4 kB / 0.9848 GB, free: 2.211 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.214e-06/0.8227, allocations: 4 kB / 0.9848 GB, free: 2.207 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.307e-05/0.8227, allocations: 0 / 0.9848 GB, free: 2.207 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001038/0.8228, allocations: 20.58 kB / 0.9849 GB, free: 2.188 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.735e-06/0.8228, allocations: 4 kB / 0.9849 GB, free: 2.184 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.183e-05/0.8229, allocations: 8 kB / 0.9849 GB, free: 2.176 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.31e-05/0.8229, allocations: 7.984 kB / 0.9849 GB, free: 2.168 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 8.164e-05/0.823, allocations: 113.8 kB / 0.985 GB, free: 2.047 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.732e-05/0.823, allocations: 15.86 kB / 0.985 GB, free: 2.031 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003036/0.8233, allocations: 118 kB / 0.9851 GB, free: 1.906 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.385e-06/0.8233, allocations: 3.938 kB / 0.9851 GB, free: 1.902 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.8233, allocations: 0 / 0.9851 GB, free: 1.902 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.937e-06/0.8234, allocations: 0 / 0.9851 GB, free: 1.902 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00042/0.8238, allocations: 366.5 kB / 0.9855 GB, free: 1.488 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.8238, allocations: 0 / 0.9855 GB, free: 1.488 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.889e-05/0.8239, allocations: 11.98 kB / 0.9855 GB, free: 1.477 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.404e-06/0.8239, allocations: 0 / 0.9855 GB, free: 1.477 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.717e-06/0.8239, allocations: 0 / 0.9855 GB, free: 1.477 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.8239, allocations: 8 kB / 0.9855 GB, free: 1.469 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.8239, allocations: 0 / 0.9855 GB, free: 1.469 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002746/0.8242, allocations: 199.5 kB / 0.9857 GB, free: 1.258 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 5.118e-05/0.8242, allocations: 92.94 kB / 0.9858 GB, free: 1.148 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.549e-05/0.8243, allocations: 4 kB / 0.9858 GB, free: 1.145 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.637e-05/0.8244, allocations: 11.98 kB / 0.9858 GB, free: 1.133 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.829e-05/0.8244, allocations: 11.88 kB / 0.9858 GB, free: 1.121 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.532e-05/0.8244, allocations: 7.984 kB / 0.9858 GB, free: 1.113 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 3.726e-05/0.8245, allocations: 79.47 kB / 0.9859 GB, free: 1.035 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.31e-07/0.8245, allocations: 0 / 0.9859 GB, free: 1.035 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002563/0.8247, allocations: 16 kB / 0.9859 GB, free: 1.02 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.0006184/0.8254, allocations: 0.737 MB / 0.9866 GB, free: 264 kB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002423/0.8256, allocations: 83.88 kB / 0.9867 GB, free: 180 kB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.8256, allocations: 0 / 0.9867 GB, free: 180 kB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001075/0.8257, allocations: 36.17 kB / 0.9867 GB, free: 144 kB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002554/0.826, allocations: 11.92 kB / 0.9867 GB, free: 132 kB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009534/0.827, allocations: 0.4941 MB / 0.9872 GB, free: 15.58 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002392/0.8272, allocations: 0.6848 MB / 0.9879 GB, free: 14.87 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 3.413e-05/0.8273, allocations: 8.172 kB / 0.9879 GB, free: 14.86 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.285e-05/0.8273, allocations: 11.44 kB / 0.9879 GB, free: 14.85 MB / 0.7481 GB Notification: Performance of SimCode: time 2.2e-07/0.8273, allocations: 0 / 0.9879 GB, free: 14.85 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01322/0.8405, allocations: 1.483 MB / 0.9894 GB, free: 13.5 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001841/0.8408, allocations: 185.3 kB / 0.9895 GB, free: 13.27 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.864/2.705, allocations: 4 kB / 0.9895 GB, free: 13.27 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