Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.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.TriggeredSampler,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler",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.001143/0.001144, allocations: 109.4 kB / 15.69 MB, free: 128 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001571/0.001571, allocations: 188.6 kB / 16.62 MB, free: 6.613 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.669/1.669, allocations: 205.1 MB / 222.5 MB, free: 4.566 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.819/1.819, allocations: 292.3 MB / 0.549 GB, free: 12.73 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.001502/0.001502, allocations: 71.53 kB / 0.6718 GB, free: 26.24 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2961/0.2977, allocations: 114.5 MB / 0.7836 GB, free: 13.25 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler): time 0.00232/0.3, allocations: 0.7748 MB / 0.7844 GB, free: 12.48 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001831/0.3019, allocations: 1.157 MB / 0.7855 GB, free: 11.3 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.568e-05/0.302, allocations: 0 / 0.7855 GB, free: 11.3 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 4.462e-05/0.3021, allocations: 7.938 kB / 0.7855 GB, free: 11.3 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001156/0.3022, allocations: 15.86 kB / 0.7855 GB, free: 11.28 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005633/0.3028, allocations: 134.9 kB / 0.7857 GB, free: 11.15 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0003001/0.3031, allocations: 127.8 kB / 0.7858 GB, free: 11.03 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001351/0.3032, allocations: 24.17 kB / 0.7858 GB, free: 11 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001015/0.3033, allocations: 51.89 kB / 0.7859 GB, free: 10.95 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001029/0.3034, allocations: 47.81 kB / 0.7859 GB, free: 10.9 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.813e-05/0.3035, allocations: 12 kB / 0.7859 GB, free: 10.89 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 7.458e-05/0.3035, allocations: 23.98 kB / 0.7859 GB, free: 10.87 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.794e-05/0.3036, allocations: 11.98 kB / 0.786 GB, free: 10.86 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 7.531e-05/0.3037, allocations: 55.77 kB / 0.786 GB, free: 10.8 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001902/0.3039, allocations: 123.9 kB / 0.7861 GB, free: 10.68 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.3039, allocations: 0 / 0.7861 GB, free: 10.68 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.334e-06/0.3039, allocations: 0 / 0.7861 GB, free: 10.68 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 6.452e-06/0.3039, allocations: 0 / 0.7861 GB, free: 10.68 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0006419/0.3045, allocations: 420.9 kB / 0.7865 GB, free: 10.21 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.388e-05/0.3046, allocations: 12.02 kB / 0.7865 GB, free: 10.2 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.18e-05/0.3046, allocations: 34.75 kB / 0.7866 GB, free: 10.16 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.571e-05/0.3047, allocations: 12.84 kB / 0.7866 GB, free: 10.15 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001335/0.3048, allocations: 176.2 kB / 0.7868 GB, free: 9.938 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.817e-05/0.3048, allocations: 8.359 kB / 0.7868 GB, free: 9.93 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.27e-05/0.3049, allocations: 8.375 kB / 0.7868 GB, free: 9.922 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002158/0.3051, allocations: 77.91 kB / 0.7868 GB, free: 9.84 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.035e-06/0.3051, allocations: 0 / 0.7868 GB, free: 9.84 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.454e-05/0.3051, allocations: 7.984 kB / 0.7869 GB, free: 9.832 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.109e-06/0.3051, allocations: 0 / 0.7869 GB, free: 9.832 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000181/0.3053, allocations: 47.95 kB / 0.7869 GB, free: 9.785 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000571/0.3059, allocations: 352.5 kB / 0.7872 GB, free: 9.391 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002165/0.3061, allocations: 62.55 kB / 0.7873 GB, free: 9.32 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.976e-05/0.3062, allocations: 28.91 kB / 0.7873 GB, free: 9.289 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.9e-05/0.3063, allocations: 8 kB / 0.7873 GB, free: 9.281 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002917/0.3066, allocations: 91.39 kB / 0.7874 GB, free: 9.18 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=8): time 2.044e-06/0.3066, allocations: 0 / 0.7874 GB, free: 9.18 MB / 0.6075 GB Notification: Performance of matching and sorting (n=8): time 0.000464/0.3071, allocations: 145.5 kB / 0.7876 GB, free: 9.031 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.336e-05/0.3071, allocations: 63.41 kB / 0.7876 GB, free: 8.957 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001014/0.3072, allocations: 113.8 kB / 0.7877 GB, free: 8.836 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.671e-05/0.3073, allocations: 29.7 kB / 0.7878 GB, free: 8.801 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 8.474e-05/0.3074, allocations: 100 kB / 0.7878 GB, free: 8.699 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.298e-05/0.3074, allocations: 19.75 kB / 0.7879 GB, free: 8.68 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.653e-05/0.3075, allocations: 37.7 kB / 0.7879 GB, free: 8.637 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001201/0.3076, allocations: 322.8 kB / 0.7882 GB, free: 8.312 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001526/0.3078, allocations: 55.89 kB / 0.7883 GB, free: 8.258 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001661/0.3079, allocations: 93.11 kB / 0.7884 GB, free: 8.148 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002793/0.3082, allocations: 150.8 kB / 0.7885 GB, free: 7.977 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.3082, allocations: 0 / 0.7885 GB, free: 7.977 MB / 0.6075 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000421/0.3087, allocations: 207.1 kB / 0.7887 GB, free: 7.762 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 5.499e-05/0.3087, allocations: 41.84 kB / 0.7887 GB, free: 7.715 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.995e-06/0.3087, allocations: 8 kB / 0.7887 GB, free: 7.707 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.741e-05/0.3088, allocations: 0 / 0.7887 GB, free: 7.707 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001094/0.3089, allocations: 19.92 kB / 0.7888 GB, free: 7.688 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.058e-05/0.3089, allocations: 0 / 0.7888 GB, free: 7.688 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001963/0.3091, allocations: 27.97 kB / 0.7888 GB, free: 7.66 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.702e-05/0.3091, allocations: 19.92 kB / 0.7888 GB, free: 7.641 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 9 (triSam1.y,$PRE.triSam1.y,triSam.y,$PRE.triSam.y,booPul.y,$PRE.booPul.y,$whenCondition3,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 1 * 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 0.0001282/0.3093, allocations: 124.5 kB / 0.7889 GB, free: 7.512 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.806e-05/0.3093, allocations: 7.906 kB / 0.7889 GB, free: 7.504 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002904/0.3096, allocations: 121.9 kB / 0.789 GB, free: 7.379 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.12e-06/0.3096, allocations: 4 kB / 0.7891 GB, free: 7.375 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.3096, allocations: 0 / 0.7891 GB, free: 7.375 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.3096, allocations: 3.938 kB / 0.7891 GB, free: 7.371 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005246/0.3102, allocations: 382.4 kB / 0.7894 GB, free: 6.941 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.684e-06/0.3102, allocations: 0 / 0.7894 GB, free: 6.941 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.904e-05/0.3102, allocations: 11.92 kB / 0.7894 GB, free: 6.93 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.642e-06/0.3102, allocations: 8 kB / 0.7894 GB, free: 6.922 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.046e-05/0.3103, allocations: 0 / 0.7894 GB, free: 6.922 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.825e-06/0.3103, allocations: 3.938 kB / 0.7894 GB, free: 6.918 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.3103, allocations: 0 / 0.7894 GB, free: 6.918 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003262/0.3106, allocations: 219.8 kB / 0.7897 GB, free: 6.688 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.913e-05/0.3107, allocations: 85.02 kB / 0.7897 GB, free: 6.586 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.907e-05/0.3107, allocations: 0 / 0.7897 GB, free: 6.586 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.548e-05/0.3108, allocations: 15.92 kB / 0.7897 GB, free: 6.57 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.45e-05/0.3108, allocations: 4 kB / 0.7898 GB, free: 6.566 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.297e-06/0.3108, allocations: 4 kB / 0.7898 GB, free: 6.562 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 5.549e-05/0.3109, allocations: 91.81 kB / 0.7898 GB, free: 6.473 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3109, allocations: 0 / 0.7898 GB, free: 6.473 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002698/0.3112, allocations: 28 kB / 0.7899 GB, free: 6.445 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: 6 ($whenCondition3,$whenCondition1,$whenCondition2,booPul.y,triSam.y,triSam1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0007284/0.3119, allocations: 0.7592 MB / 0.7906 GB, free: 5.66 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0003809/0.3123, allocations: 179.3 kB / 0.7908 GB, free: 5.473 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.3123, allocations: 0 / 0.7908 GB, free: 5.473 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001709/0.3125, allocations: 47.89 kB / 0.7908 GB, free: 5.426 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002864/0.3128, allocations: 20.25 kB / 0.7908 GB, free: 5.406 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002212/0.315, allocations: 1.702 MB / 0.7925 GB, free: 3.582 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003192/0.3154, allocations: 0.6951 MB / 0.7932 GB, free: 2.863 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 4.384e-05/0.3154, allocations: 4 kB / 0.7932 GB, free: 2.859 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.675e-05/0.3155, allocations: 19.44 kB / 0.7932 GB, free: 2.844 MB / 0.6075 GB Notification: Performance of SimCode: time 8.01e-07/0.3155, allocations: 0 / 0.7932 GB, free: 2.844 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02019/0.3357, allocations: 2.543 MB / 0.7957 GB, free: 428 kB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.444/7.78, allocations: 8.938 kB / 0.7957 GB, free: 420 kB / 0.6075 GB (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler.fmu > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe 2>&1)