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.001195/0.001195, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001067/0.001067, allocations: 188.8 kB / 16.25 MB, free: 6.586 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.301/1.301, allocations: 205.1 MB / 222.1 MB, free: 4.66 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.648/1.648, allocations: 292.3 MB / 0.5486 GB, free: 13.59 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.002181/0.002181, allocations: 64.98 kB / 0.6711 GB, free: 26.15 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2299/0.2321, allocations: 114.6 MB / 0.783 GB, free: 13.79 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.001855/0.234, allocations: 0.734 MB / 0.7837 GB, free: 13.05 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001248/0.2353, allocations: 1.052 MB / 0.7847 GB, free: 11.98 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.518e-05/0.2353, allocations: 0 / 0.7847 GB, free: 11.98 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 3.238e-05/0.2353, allocations: 0 / 0.7847 GB, free: 11.98 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 5.683e-05/0.2354, allocations: 7.938 kB / 0.7847 GB, free: 11.98 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002271/0.2356, allocations: 35.91 kB / 0.7848 GB, free: 11.94 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 7.351e-05/0.2357, allocations: 47.91 kB / 0.7848 GB, free: 11.89 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 8.64e-05/0.2358, allocations: 4 kB / 0.7848 GB, free: 11.89 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 5.648e-05/0.2359, allocations: 27.92 kB / 0.7848 GB, free: 11.86 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 4.589e-05/0.2359, allocations: 19.91 kB / 0.7849 GB, free: 11.84 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.3e-05/0.236, allocations: 4 kB / 0.7849 GB, free: 11.84 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 5.87e-05/0.236, allocations: 19.98 kB / 0.7849 GB, free: 11.82 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.664e-05/0.236, allocations: 11.92 kB / 0.7849 GB, free: 11.81 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 3.418e-05/0.2361, allocations: 23.92 kB / 0.7849 GB, free: 11.79 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001068/0.2362, allocations: 51.78 kB / 0.785 GB, free: 11.73 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.2362, allocations: 0 / 0.785 GB, free: 11.73 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.192e-06/0.2362, allocations: 0 / 0.785 GB, free: 11.73 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.078e-06/0.2362, allocations: 0 / 0.785 GB, free: 11.73 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.0005284/0.2368, allocations: 367.7 kB / 0.7853 GB, free: 11.32 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.615e-05/0.2368, allocations: 12.03 kB / 0.7853 GB, free: 11.31 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.606e-05/0.2368, allocations: 34.69 kB / 0.7854 GB, free: 11.27 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.111e-05/0.2369, allocations: 12.83 kB / 0.7854 GB, free: 11.26 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.91e-05/0.237, allocations: 172.3 kB / 0.7855 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.156e-05/0.237, allocations: 4.375 kB / 0.7856 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.718e-06/0.237, allocations: 384 / 0.7856 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001771/0.2372, allocations: 74.22 kB / 0.7856 GB, free: 10.97 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.015e-06/0.2372, allocations: 3.938 kB / 0.7856 GB, free: 10.96 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.546e-06/0.2372, allocations: 0 / 0.7856 GB, free: 10.96 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.717e-06/0.2372, allocations: 0 / 0.7856 GB, free: 10.96 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001678/0.2374, allocations: 51.88 kB / 0.7857 GB, free: 10.91 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000371/0.2378, allocations: 272.8 kB / 0.7859 GB, free: 10.6 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001428/0.2379, allocations: 58.55 kB / 0.786 GB, free: 10.53 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.037e-05/0.238, allocations: 32.95 kB / 0.786 GB, free: 10.5 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.135e-05/0.2381, allocations: 4 kB / 0.786 GB, free: 10.49 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001789/0.2382, allocations: 75.31 kB / 0.7861 GB, free: 10.41 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=6): time 1.362e-06/0.2383, allocations: 4 kB / 0.7861 GB, free: 10.4 MB / 0.6075 GB Notification: Performance of matching and sorting (n=6): time 0.000371/0.2386, allocations: 109.6 kB / 0.7862 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.732e-05/0.2387, allocations: 63.39 kB / 0.7863 GB, free: 10.21 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.329e-05/0.2388, allocations: 101.9 kB / 0.7864 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.533e-05/0.2388, allocations: 25.7 kB / 0.7864 GB, free: 10.07 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.715e-05/0.2389, allocations: 88.03 kB / 0.7865 GB, free: 9.984 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.626e-05/0.2389, allocations: 15.91 kB / 0.7865 GB, free: 9.969 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.809e-05/0.2389, allocations: 21.7 kB / 0.7865 GB, free: 9.941 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001793/0.2391, allocations: 322.8 kB / 0.7868 GB, free: 9.617 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.782e-05/0.2392, allocations: 23.92 kB / 0.7868 GB, free: 9.594 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.842e-05/0.2393, allocations: 47.41 kB / 0.7869 GB, free: 9.535 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001821/0.2395, allocations: 87.31 kB / 0.787 GB, free: 9.438 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.2395, allocations: 0 / 0.787 GB, free: 9.438 MB / 0.6075 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002478/0.2398, allocations: 109.6 kB / 0.7871 GB, free: 9.324 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.554e-05/0.2398, allocations: 8 kB / 0.7871 GB, free: 9.316 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.719e-06/0.2398, allocations: 0 / 0.7871 GB, free: 9.316 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.325e-05/0.2398, allocations: 0 / 0.7871 GB, free: 9.316 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001022/0.2399, allocations: 15.98 kB / 0.7871 GB, free: 9.301 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.564e-06/0.2399, allocations: 3.938 kB / 0.7871 GB, free: 9.297 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.444e-05/0.24, allocations: 11.92 kB / 0.7871 GB, free: 9.285 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.153e-05/0.24, allocations: 4 kB / 0.7871 GB, free: 9.281 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.322e-05/0.2401, allocations: 117.8 kB / 0.7872 GB, free: 9.156 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.463e-05/0.2401, allocations: 11.91 kB / 0.7872 GB, free: 9.145 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002776/0.2404, allocations: 102 kB / 0.7873 GB, free: 9.039 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.853e-06/0.2404, allocations: 0 / 0.7873 GB, free: 9.039 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.2404, allocations: 4 kB / 0.7873 GB, free: 9.035 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.876e-06/0.2404, allocations: 0 / 0.7873 GB, free: 9.035 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004212/0.2409, allocations: 362.9 kB / 0.7877 GB, free: 8.625 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.2409, allocations: 4.062 kB / 0.7877 GB, free: 8.621 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.708e-05/0.2409, allocations: 11.98 kB / 0.7877 GB, free: 8.609 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.874e-06/0.241, allocations: 0 / 0.7877 GB, free: 8.609 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.496e-06/0.241, allocations: 0 / 0.7877 GB, free: 8.609 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.241, allocations: 0 / 0.7877 GB, free: 8.609 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.241, allocations: 0 / 0.7877 GB, free: 8.609 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002609/0.2412, allocations: 207.3 kB / 0.7879 GB, free: 8.391 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.539e-05/0.2413, allocations: 77.11 kB / 0.788 GB, free: 8.297 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.795e-05/0.2413, allocations: 4 kB / 0.788 GB, free: 8.293 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.442e-05/0.2414, allocations: 11.98 kB / 0.788 GB, free: 8.281 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.159e-05/0.2414, allocations: 7.922 kB / 0.788 GB, free: 8.273 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.241e-05/0.2415, allocations: 4 kB / 0.788 GB, free: 8.27 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.201e-05/0.2415, allocations: 83.28 kB / 0.7881 GB, free: 8.188 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1e-07/0.2415, allocations: 0 / 0.7881 GB, free: 8.188 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002301/0.2417, allocations: 8 kB / 0.7881 GB, free: 8.18 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.0005617/0.2423, allocations: 0.7397 MB / 0.7888 GB, free: 7.414 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002293/0.2426, allocations: 63.89 kB / 0.7889 GB, free: 7.352 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.2426, allocations: 0 / 0.7889 GB, free: 7.352 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 9.995e-05/0.2427, allocations: 31.98 kB / 0.7889 GB, free: 7.32 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002452/0.2429, allocations: 11.92 kB / 0.7889 GB, free: 7.309 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00151/0.2444, allocations: 1.382 MB / 0.7903 GB, free: 5.832 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002924/0.2447, allocations: 0.6846 MB / 0.7909 GB, free: 5.121 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 3.008e-05/0.2448, allocations: 7.984 kB / 0.7909 GB, free: 5.113 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.34e-05/0.2448, allocations: 11.44 kB / 0.7909 GB, free: 5.102 MB / 0.6075 GB Notification: Performance of SimCode: time 2.8e-07/0.2448, allocations: 4 kB / 0.791 GB, free: 5.098 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01327/0.2581, allocations: 1.581 MB / 0.7925 GB, free: 3.629 MB / 0.6075 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003526/0.2585, allocations: 206.6 kB / 0.7927 GB, free: 3.367 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.73/1.988, allocations: 3.938 kB / 0.7927 GB, free: 3.363 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)