Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,fileNamePrefix="Buildings_8_0_0_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_0_0_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/Buildings 8.0.0/package.mo): time 2.698/2.698, allocations: 287.5 MB / 302.4 MB, free: 8.281 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001318/0.001318, allocations: 176.5 kB / 371 MB, free: 10.87 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.099/2.099, allocations: 205.4 MB / 0.6297 GB, free: 10.6 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009209/0.0009205, allocations: 88.23 kB / 0.743 GB, free: 6.605 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004967/0.000497, allocations: 12.48 kB / 0.8659 GB, free: 140.6 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2245/0.225, allocations: 115.3 MB / 0.9785 GB, free: 28.26 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.001109/0.2262, allocations: 389.9 kB / 0.9788 GB, free: 27.88 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001958/0.2282, allocations: 1.029 MB / 0.9798 GB, free: 26.83 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.11e-05/0.2283, allocations: 0 / 0.9798 GB, free: 26.83 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 2.295e-05/0.2283, allocations: 4 kB / 0.9798 GB, free: 26.83 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 7.647e-05/0.2284, allocations: 7.922 kB / 0.9799 GB, free: 26.82 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003421/0.2288, allocations: 35.91 kB / 0.9799 GB, free: 26.79 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001102/0.2289, allocations: 39.91 kB / 0.9799 GB, free: 26.75 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001123/0.2291, allocations: 8 kB / 0.9799 GB, free: 26.74 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 7.658e-05/0.2291, allocations: 15.92 kB / 0.9799 GB, free: 26.72 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 6.902e-05/0.2292, allocations: 15.92 kB / 0.98 GB, free: 26.71 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.835e-05/0.2293, allocations: 0 / 0.98 GB, free: 26.71 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 9.033e-05/0.2294, allocations: 23.97 kB / 0.98 GB, free: 26.68 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 2.464e-05/0.2294, allocations: 11.98 kB / 0.98 GB, free: 26.67 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 3.787e-05/0.2295, allocations: 33.64 kB / 0.98 GB, free: 26.63 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001251/0.2296, allocations: 31.94 kB / 0.9801 GB, free: 26.6 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 5.66e-06/0.2296, allocations: 0 / 0.9801 GB, free: 26.6 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.944e-06/0.2296, allocations: 0 / 0.9801 GB, free: 26.6 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 4.618e-06/0.2297, allocations: 0 / 0.9801 GB, free: 26.6 MB / 0.6198 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.0007506/0.2304, allocations: 363.5 kB / 0.9804 GB, free: 26.2 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 5.914e-05/0.2305, allocations: 20 kB / 0.9804 GB, free: 26.18 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.031e-05/0.2306, allocations: 34.56 kB / 0.9805 GB, free: 26.14 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.51e-05/0.2306, allocations: 7.906 kB / 0.9805 GB, free: 26.13 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001041/0.2307, allocations: 167 kB / 0.9806 GB, free: 25.93 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.901e-05/0.2308, allocations: 4 kB / 0.9806 GB, free: 25.92 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.944e-05/0.2308, allocations: 3.938 kB / 0.9806 GB, free: 25.92 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003383/0.2312, allocations: 81.58 kB / 0.9807 GB, free: 25.83 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.047e-05/0.2312, allocations: 0 / 0.9807 GB, free: 25.83 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.735e-05/0.2312, allocations: 0 / 0.9807 GB, free: 25.83 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.011e-06/0.2312, allocations: 3.938 kB / 0.9807 GB, free: 25.83 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003828/0.2316, allocations: 51.95 kB / 0.9808 GB, free: 25.78 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006085/0.2323, allocations: 280.8 kB / 0.981 GB, free: 25.45 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002991/0.2326, allocations: 62.48 kB / 0.9811 GB, free: 25.38 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002252/0.2328, allocations: 32.97 kB / 0.9811 GB, free: 25.35 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 3.437e-05/0.2329, allocations: 4 kB / 0.9811 GB, free: 25.34 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000341/0.2332, allocations: 75.38 kB / 0.9812 GB, free: 25.26 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=6): time 4.137e-06/0.2333, allocations: 0 / 0.9812 GB, free: 25.26 MB / 0.6198 GB Notification: Performance of matching and sorting (n=6): time 0.0007883/0.2341, allocations: 141.5 kB / 0.9813 GB, free: 25.11 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.991e-05/0.2341, allocations: 59.3 kB / 0.9814 GB, free: 25.04 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001003/0.2343, allocations: 110.1 kB / 0.9815 GB, free: 24.93 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.888e-05/0.2343, allocations: 25.7 kB / 0.9815 GB, free: 24.89 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 4.756e-05/0.2344, allocations: 88.14 kB / 0.9816 GB, free: 24.8 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 3.007e-05/0.2344, allocations: 7.891 kB / 0.9816 GB, free: 24.8 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.336e-06/0.2344, allocations: 0 / 0.9816 GB, free: 24.8 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 8.605e-05/0.2345, allocations: 322.8 kB / 0.9819 GB, free: 24.47 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002003/0.2347, allocations: 27.97 kB / 0.9819 GB, free: 24.45 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000216/0.235, allocations: 55.41 kB / 0.982 GB, free: 24.38 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002212/0.2352, allocations: 43.97 kB / 0.982 GB, free: 24.34 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.329e-06/0.2352, allocations: 0 / 0.982 GB, free: 24.34 MB / 0.6198 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.000532/0.2358, allocations: 113.4 kB / 0.9821 GB, free: 24.22 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 2.606e-05/0.2358, allocations: 8 kB / 0.9822 GB, free: 24.21 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.678e-06/0.2359, allocations: 4.344 kB / 0.9822 GB, free: 24.21 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.342e-05/0.2359, allocations: 0 / 0.9822 GB, free: 24.21 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001978/0.2361, allocations: 23.98 kB / 0.9822 GB, free: 24.18 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.006e-05/0.2361, allocations: 0 / 0.9822 GB, free: 24.18 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001492/0.2363, allocations: 23.88 kB / 0.9822 GB, free: 24.16 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.92e-05/0.2363, allocations: 0 / 0.9822 GB, free: 24.16 MB / 0.6198 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 0.0001224/0.2365, allocations: 113.8 kB / 0.9823 GB, free: 24.04 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.384e-05/0.2366, allocations: 11.98 kB / 0.9823 GB, free: 24.03 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005318/0.2371, allocations: 114 kB / 0.9824 GB, free: 23.91 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.55e-06/0.2371, allocations: 0 / 0.9824 GB, free: 23.91 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.2371, allocations: 0 / 0.9824 GB, free: 23.91 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.029e-06/0.2372, allocations: 0 / 0.9824 GB, free: 23.91 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007503/0.2379, allocations: 370.4 kB / 0.9828 GB, free: 23.5 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.422e-06/0.238, allocations: 0 / 0.9828 GB, free: 23.5 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001281/0.2381, allocations: 11.94 kB / 0.9828 GB, free: 23.48 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.713e-06/0.2381, allocations: 8 kB / 0.9828 GB, free: 23.48 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.577e-05/0.2381, allocations: 7.922 kB / 0.9828 GB, free: 23.47 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.358e-06/0.2382, allocations: 0 / 0.9828 GB, free: 23.47 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.098e-06/0.2382, allocations: 3.953 kB / 0.9828 GB, free: 23.46 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005228/0.2387, allocations: 199.5 kB / 0.983 GB, free: 23.25 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 3.823e-05/0.2388, allocations: 85 kB / 0.9831 GB, free: 23.15 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.078e-05/0.2388, allocations: 0 / 0.9831 GB, free: 23.15 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002122/0.239, allocations: 11.98 kB / 0.9831 GB, free: 23.14 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.477e-05/0.2391, allocations: 15.89 kB / 0.9831 GB, free: 23.12 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.386e-05/0.2392, allocations: 4 kB / 0.9831 GB, free: 23.12 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 4.93e-05/0.2392, allocations: 87.45 kB / 0.9832 GB, free: 23.04 MB / 0.6198 GB Notification: Performance of sort global known variables: time 6.11e-07/0.2392, allocations: 0 / 0.9832 GB, free: 23.04 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0005776/0.2398, allocations: 16 kB / 0.9832 GB, free: 23.02 MB / 0.6198 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.0008857/0.2407, allocations: 0.732 MB / 0.9839 GB, free: 22.26 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0004867/0.2413, allocations: 75.89 kB / 0.984 GB, free: 22.18 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 4.459e-06/0.2413, allocations: 0 / 0.984 GB, free: 22.18 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0002193/0.2415, allocations: 44.09 kB / 0.984 GB, free: 22.14 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005207/0.2421, allocations: 9.031 kB / 0.9841 GB, free: 22.13 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001735/0.2438, allocations: 0.4913 MB / 0.9845 GB, free: 21.59 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001754/0.244, allocations: 0.6809 MB / 0.9852 GB, free: 20.88 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 6.335e-05/0.2441, allocations: 4.188 kB / 0.9852 GB, free: 20.88 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.059e-05/0.2442, allocations: 27.3 kB / 0.9852 GB, free: 20.85 MB / 0.6198 GB Notification: Performance of SimCode: time 1.272e-06/0.2442, allocations: 0 / 0.9852 GB, free: 20.85 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02245/0.2667, allocations: 1.475 MB / 0.9867 GB, free: 19.51 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000256/0.267, allocations: 194.8 kB / 0.9869 GB, free: 19.27 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.486/2.753, allocations: 0 / 0.9869 GB, free: 19.27 MB / 0.6198 GB (rm -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler.fmu > Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe 2>&1)