Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_8_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,fileNamePrefix="Buildings_8_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.001004/0.001004, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001038/0.001039, allocations: 196.7 kB / 16.14 MB, free: 6.707 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.12/1.12, allocations: 205.1 MB / 222 MB, free: 4.953 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.565/1.565, allocations: 292.3 MB / 0.5484 GB, free: 13.66 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00137/0.00137, allocations: 71.47 kB / 0.6709 GB, free: 26.36 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.278/0.2794, allocations: 114.5 MB / 0.7828 GB, free: 13.92 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.002183/0.2816, allocations: 0.7464 MB / 0.7835 GB, free: 13.17 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001505/0.2831, allocations: 1.041 MB / 0.7845 GB, free: 12.11 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.591e-05/0.2832, allocations: 4 kB / 0.7846 GB, free: 12.11 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 3.509e-05/0.2832, allocations: 3.938 kB / 0.7846 GB, free: 12.11 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 6.087e-05/0.2833, allocations: 3.984 kB / 0.7846 GB, free: 12.1 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002558/0.2835, allocations: 39.91 kB / 0.7846 GB, free: 12.06 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 9.608e-05/0.2837, allocations: 39.86 kB / 0.7846 GB, free: 12.02 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001029/0.2838, allocations: 7.984 kB / 0.7846 GB, free: 12.02 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 7.005e-05/0.2838, allocations: 19.92 kB / 0.7847 GB, free: 12 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 6.419e-05/0.2839, allocations: 23.91 kB / 0.7847 GB, free: 11.97 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.476e-05/0.2839, allocations: 7.938 kB / 0.7847 GB, free: 11.96 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 6.991e-05/0.284, allocations: 15.98 kB / 0.7847 GB, free: 11.95 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.092e-05/0.284, allocations: 11.98 kB / 0.7847 GB, free: 11.94 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 3.609e-05/0.2841, allocations: 15.92 kB / 0.7847 GB, free: 11.92 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001358/0.2842, allocations: 47.8 kB / 0.7848 GB, free: 11.88 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 7.955e-06/0.2842, allocations: 0 / 0.7848 GB, free: 11.88 MB / 0.6075 GB Notification: Performance of FrontEnd: time 3.436e-06/0.2842, allocations: 4 kB / 0.7848 GB, free: 11.87 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.368e-06/0.2843, allocations: 0 / 0.7848 GB, free: 11.87 MB / 0.6075 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.0006498/0.2849, allocations: 371.7 kB / 0.7851 GB, free: 11.46 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.477e-05/0.285, allocations: 8.031 kB / 0.7851 GB, free: 11.45 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.271e-05/0.285, allocations: 34.73 kB / 0.7852 GB, free: 11.41 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.833e-05/0.285, allocations: 12.84 kB / 0.7852 GB, free: 11.39 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000138/0.2852, allocations: 168.3 kB / 0.7854 GB, free: 11.19 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.291e-05/0.2852, allocations: 4.312 kB / 0.7854 GB, free: 11.19 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.265e-05/0.2852, allocations: 4.375 kB / 0.7854 GB, free: 11.18 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002081/0.2854, allocations: 62.22 kB / 0.7854 GB, free: 11.12 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.497e-06/0.2855, allocations: 3.938 kB / 0.7854 GB, free: 11.11 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.05e-05/0.2855, allocations: 4 kB / 0.7854 GB, free: 11.11 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.738e-06/0.2855, allocations: 0 / 0.7854 GB, free: 11.11 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001972/0.2857, allocations: 43.95 kB / 0.7855 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004492/0.2861, allocations: 276.8 kB / 0.7857 GB, free: 10.75 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001691/0.2863, allocations: 58.48 kB / 0.7858 GB, free: 10.68 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.904e-05/0.2864, allocations: 32.95 kB / 0.7858 GB, free: 10.64 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.017e-05/0.2865, allocations: 0 / 0.7858 GB, free: 10.64 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002068/0.2867, allocations: 71.38 kB / 0.7859 GB, free: 10.56 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=6): time 1.573e-06/0.2867, allocations: 0 / 0.7859 GB, free: 10.56 MB / 0.6075 GB Notification: Performance of matching and sorting (n=6): time 0.0004149/0.2871, allocations: 125.6 kB / 0.786 GB, free: 10.43 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.53e-05/0.2872, allocations: 55.41 kB / 0.7861 GB, free: 10.37 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.454e-05/0.2873, allocations: 110 kB / 0.7862 GB, free: 10.25 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.374e-05/0.2873, allocations: 25.7 kB / 0.7862 GB, free: 10.22 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.558e-05/0.2873, allocations: 88.05 kB / 0.7863 GB, free: 10.13 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.841e-05/0.2874, allocations: 15.88 kB / 0.7863 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.094e-05/0.2874, allocations: 25.7 kB / 0.7863 GB, free: 10.08 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.000117/0.2875, allocations: 322.8 kB / 0.7866 GB, free: 9.758 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.914e-05/0.2876, allocations: 24.22 kB / 0.7866 GB, free: 9.734 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001188/0.2878, allocations: 43.44 kB / 0.7867 GB, free: 9.68 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001998/0.288, allocations: 91.33 kB / 0.7868 GB, free: 9.578 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/0.288, allocations: 0 / 0.7868 GB, free: 9.578 MB / 0.6075 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002456/0.2882, allocations: 105.5 kB / 0.7869 GB, free: 9.469 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.229e-05/0.2883, allocations: 4 kB / 0.7869 GB, free: 9.465 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.571e-06/0.2883, allocations: 8.031 kB / 0.7869 GB, free: 9.457 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.527e-05/0.2883, allocations: 4 kB / 0.7869 GB, free: 9.453 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001015/0.2884, allocations: 11.98 kB / 0.7869 GB, free: 9.441 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.551e-06/0.2884, allocations: 0 / 0.7869 GB, free: 9.441 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.564e-05/0.2885, allocations: 15.92 kB / 0.7869 GB, free: 9.426 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.626e-06/0.2885, allocations: 0 / 0.7869 GB, free: 9.426 MB / 0.6075 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 (sampler1.firstTrigger,$PRE.sampler1.firstTrigger,sampler1.sampleTrigger,$whenCondition1,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.595e-05/0.2886, allocations: 117.8 kB / 0.787 GB, free: 9.301 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.586e-05/0.2886, allocations: 7.953 kB / 0.787 GB, free: 9.293 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002925/0.2889, allocations: 113.9 kB / 0.7871 GB, free: 9.176 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.923e-06/0.2889, allocations: 0 / 0.7871 GB, free: 9.176 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.461e-06/0.2889, allocations: 0 / 0.7871 GB, free: 9.176 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.2889, allocations: 0 / 0.7871 GB, free: 9.176 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004621/0.2894, allocations: 350.4 kB / 0.7875 GB, free: 8.777 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-06/0.2894, allocations: 0 / 0.7875 GB, free: 8.777 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.96e-05/0.2895, allocations: 15.98 kB / 0.7875 GB, free: 8.762 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.2895, allocations: 0 / 0.7875 GB, free: 8.762 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.815e-05/0.2895, allocations: 4 kB / 0.7875 GB, free: 8.758 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.2895, allocations: 4 kB / 0.7875 GB, free: 8.754 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.2895, allocations: 0 / 0.7875 GB, free: 8.754 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002818/0.2898, allocations: 195.4 kB / 0.7877 GB, free: 8.547 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.739e-05/0.2899, allocations: 85.3 kB / 0.7878 GB, free: 8.445 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.815e-05/0.2899, allocations: 8 kB / 0.7878 GB, free: 8.438 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.683e-05/0.29, allocations: 7.984 kB / 0.7878 GB, free: 8.43 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.686e-05/0.2901, allocations: 11.92 kB / 0.7878 GB, free: 8.418 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.144e-05/0.2901, allocations: 0 / 0.7878 GB, free: 8.418 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.632e-05/0.2901, allocations: 83.28 kB / 0.7879 GB, free: 8.336 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.61e-07/0.2901, allocations: 3.938 kB / 0.7879 GB, free: 8.332 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002411/0.2904, allocations: 12 kB / 0.7879 GB, free: 8.32 MB / 0.6075 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006122/0.291, allocations: 0.7357 MB / 0.7886 GB, free: 7.559 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002637/0.2913, allocations: 59.89 kB / 0.7887 GB, free: 7.5 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 4.017e-06/0.2913, allocations: 4.188 kB / 0.7887 GB, free: 7.496 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001176/0.2914, allocations: 35.97 kB / 0.7887 GB, free: 7.461 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002733/0.2917, allocations: 9.625 kB / 0.7887 GB, free: 7.453 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001632/0.2933, allocations: 1.378 MB / 0.7901 GB, free: 5.98 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003049/0.2936, allocations: 0.6848 MB / 0.7907 GB, free: 5.27 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 3.532e-05/0.2937, allocations: 11.98 kB / 0.7907 GB, free: 5.258 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.979e-05/0.2937, allocations: 11.44 kB / 0.7908 GB, free: 5.246 MB / 0.6075 GB Notification: Performance of SimCode: time 2.31e-07/0.2937, allocations: 0 / 0.7908 GB, free: 5.246 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01174/0.3055, allocations: 1.529 MB / 0.7922 GB, free: 3.812 MB / 0.6075 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001767/0.3057, allocations: 209.2 kB / 0.7924 GB, free: 3.551 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.814/2.12, allocations: 0 / 0.7924 GB, free: 3.551 MB / 0.6075 GB (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler.fmu > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe 2>&1)