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: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001485/0.001485, allocations: 107.4 kB / 16.29 MB, free: 6.43 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.001507/0.001507, allocations: 184 kB / 17.22 MB, free: 5.934 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.664/1.664, allocations: 205.1 MB / 223.1 MB, free: 12.31 MB / 190.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.9/1.9, allocations: 292.3 MB / 0.5495 GB, free: 17.45 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.001507/0.001507, allocations: 68.47 kB / 0.6722 GB, free: 6.516 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3247/0.3262, allocations: 114.6 MB / 0.7841 GB, free: 3.84 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.002367/0.3286, allocations: 0.6741 MB / 0.7847 GB, free: 3.16 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.001572/0.3302, allocations: 1.039 MB / 0.7858 GB, free: 2.105 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.347e-05/0.3303, allocations: 4 kB / 0.7858 GB, free: 2.102 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 3.164e-05/0.3303, allocations: 3.938 kB / 0.7858 GB, free: 2.098 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 6.29e-05/0.3304, allocations: 3.938 kB / 0.7858 GB, free: 2.094 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003185/0.3307, allocations: 47.81 kB / 0.7858 GB, free: 2.047 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 8.925e-05/0.3308, allocations: 43.92 kB / 0.7859 GB, free: 2.004 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001127/0.3309, allocations: 11.98 kB / 0.7859 GB, free: 1.992 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 7.92e-05/0.331, allocations: 15.94 kB / 0.7859 GB, free: 1.977 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 6.436e-05/0.3311, allocations: 27.89 kB / 0.7859 GB, free: 1.949 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 1.663e-05/0.3311, allocations: 4 kB / 0.7859 GB, free: 1.945 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 6.871e-05/0.3312, allocations: 19.98 kB / 0.7859 GB, free: 1.926 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 2.518e-05/0.3312, allocations: 11.94 kB / 0.7859 GB, free: 1.914 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 4.016e-05/0.3312, allocations: 19.92 kB / 0.786 GB, free: 1.895 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0001636/0.3314, allocations: 59.72 kB / 0.786 GB, free: 1.836 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.3314, allocations: 0 / 0.786 GB, free: 1.836 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.713e-06/0.3314, allocations: 0 / 0.786 GB, free: 1.836 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 7.525e-06/0.3314, allocations: 4 kB / 0.786 GB, free: 1.832 MB / 0.6544 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.0006221/0.3321, allocations: 371.7 kB / 0.7864 GB, free: 1.418 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.926e-05/0.3321, allocations: 8.031 kB / 0.7864 GB, free: 1.41 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.805e-05/0.3322, allocations: 8.844 kB / 0.7864 GB, free: 1.402 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001348/0.3323, allocations: 160.4 kB / 0.7865 GB, free: 1.207 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.71e-05/0.3323, allocations: 12.38 kB / 0.7866 GB, free: 1.195 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.168e-05/0.3324, allocations: 384 / 0.7866 GB, free: 1.195 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002273/0.3326, allocations: 70.2 kB / 0.7866 GB, free: 1.121 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.45e-05/0.3326, allocations: 4.125 kB / 0.7866 GB, free: 1.117 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.482e-05/0.3326, allocations: 3.938 kB / 0.7866 GB, free: 1.113 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.833e-06/0.3326, allocations: 0 / 0.7866 GB, free: 1.113 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000171/0.3328, allocations: 39.95 kB / 0.7867 GB, free: 1.074 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004595/0.3333, allocations: 276.8 kB / 0.7869 GB, free: 0.7539 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001664/0.3335, allocations: 58.5 kB / 0.787 GB, free: 0.6875 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.459e-05/0.3336, allocations: 28.95 kB / 0.787 GB, free: 0.6562 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 2.148e-05/0.3336, allocations: 11.88 kB / 0.787 GB, free: 0.6445 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002081/0.3338, allocations: 79.28 kB / 0.7871 GB, free: 0.5547 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=6): time 1.412e-06/0.3338, allocations: 0 / 0.7871 GB, free: 0.5547 MB / 0.6544 GB Notification: Performance of matching and sorting (n=6): time 0.000399/0.3342, allocations: 113.6 kB / 0.7872 GB, free: 448 kB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.73e-05/0.3343, allocations: 55.41 kB / 0.7873 GB, free: 380 kB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.638e-05/0.3344, allocations: 102.3 kB / 0.7874 GB, free: 268 kB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.909e-05/0.3344, allocations: 37.7 kB / 0.7874 GB, free: 224 kB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 3.921e-05/0.3344, allocations: 84.08 kB / 0.7875 GB, free: 136 kB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 2.067e-05/0.3345, allocations: 15.81 kB / 0.7875 GB, free: 120 kB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.982e-05/0.3345, allocations: 21.7 kB / 0.7875 GB, free: 92 kB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.5681/0.9026, allocations: 314.6 kB / 0.7878 GB, free: 48.53 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001952/0.9029, allocations: 20.09 kB / 0.7878 GB, free: 48.53 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001255/0.903, allocations: 55.33 kB / 0.7879 GB, free: 48.5 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001987/0.9032, allocations: 87.38 kB / 0.788 GB, free: 48.46 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.348e-06/0.9032, allocations: 0 / 0.788 GB, free: 48.46 MB / 0.6544 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002737/0.9035, allocations: 100.9 kB / 0.7881 GB, free: 48.43 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 2.485e-05/0.9036, allocations: 9.219 kB / 0.7881 GB, free: 48.43 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.578e-06/0.9036, allocations: 6.906 kB / 0.7881 GB, free: 48.43 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.427e-05/0.9036, allocations: 0.5 kB / 0.7881 GB, free: 48.43 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001215/0.9037, allocations: 16.78 kB / 0.7881 GB, free: 48.43 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.003e-06/0.9037, allocations: 0 / 0.7881 GB, free: 48.43 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.871e-05/0.9038, allocations: 12.69 kB / 0.7881 GB, free: 48.43 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.341e-05/0.9038, allocations: 6.438 kB / 0.7881 GB, free: 48.43 MB / 0.6544 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.858e-05/0.9039, allocations: 118.1 kB / 0.7882 GB, free: 48.32 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.711e-05/0.904, allocations: 7.297 kB / 0.7882 GB, free: 48.32 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002742/0.9042, allocations: 104.9 kB / 0.7883 GB, free: 48.29 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.416e-06/0.9043, allocations: 4.656 kB / 0.7883 GB, free: 48.29 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.835e-06/0.9043, allocations: 3.938 kB / 0.7883 GB, free: 48.29 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.659e-06/0.9043, allocations: 0 / 0.7883 GB, free: 48.29 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004112/0.9047, allocations: 348 kB / 0.7887 GB, free: 47.99 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.9047, allocations: 0.7812 kB / 0.7887 GB, free: 47.99 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.178e-05/0.9048, allocations: 11.84 kB / 0.7887 GB, free: 47.99 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.746e-06/0.9048, allocations: 5.656 kB / 0.7887 GB, free: 47.99 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.005e-05/0.9048, allocations: 1 kB / 0.7887 GB, free: 47.99 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.9048, allocations: 0 / 0.7887 GB, free: 47.99 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.9048, allocations: 4.125 kB / 0.7887 GB, free: 47.99 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002201/0.905, allocations: 195.1 kB / 0.7889 GB, free: 47.86 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 2.097e-05/0.9051, allocations: 87.5 kB / 0.789 GB, free: 47.76 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.679e-05/0.9051, allocations: 0.8906 kB / 0.789 GB, free: 47.76 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.216e-05/0.9052, allocations: 12.56 kB / 0.789 GB, free: 47.76 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.978e-05/0.9052, allocations: 6.562 kB / 0.789 GB, free: 47.76 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.456e-05/0.9052, allocations: 5.312 kB / 0.789 GB, free: 47.76 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 3.327e-05/0.9053, allocations: 81.5 kB / 0.7891 GB, free: 47.69 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.01e-07/0.9053, allocations: 0 / 0.7891 GB, free: 47.69 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0002416/0.9055, allocations: 15.19 kB / 0.7891 GB, free: 47.69 MB / 0.6544 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.0001523/0.9057, allocations: 106.2 kB / 0.7892 GB, free: 47.6 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0002466/0.906, allocations: 69.33 kB / 0.7893 GB, free: 47.6 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.965e-06/0.906, allocations: 2.625 kB / 0.7893 GB, free: 47.6 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 9.601e-05/0.9061, allocations: 28.3 kB / 0.7893 GB, free: 47.6 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002663/0.9063, allocations: 8.703 kB / 0.7893 GB, free: 47.6 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003116/0.9067, allocations: 134.9 kB / 0.7894 GB, free: 47.5 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001278/0.9068, allocations: 0.6836 MB / 0.7901 GB, free: 46.81 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 3.016e-05/0.9068, allocations: 7.188 kB / 0.7901 GB, free: 46.8 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.436e-05/0.9069, allocations: 11.41 kB / 0.7901 GB, free: 46.8 MB / 0.6544 GB Notification: Performance of SimCode: time 2.1e-07/0.9069, allocations: 0 / 0.7901 GB, free: 46.8 MB / 0.6544 GB Notification: Performance of Templates: time 0.003266/0.9101, allocations: 0.7826 MB / 0.7909 GB, free: 46.8 MB / 0.6544 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.makefile (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 & ./Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe 2>&1)