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.0007731/0.0007728, allocations: 91.06 kB / 15.06 MB, free: 1.098 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.0008585/0.0008585, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.336/1.336, allocations: 205.4 MB / 222.1 MB, free: 5.754 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.685/1.685, allocations: 292.7 MB / 0.5499 GB, free: 14.54 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.0007934/0.0007935, allocations: 20.88 kB / 0.6738 GB, free: 26.38 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2281/0.2289, allocations: 116.3 MB / 0.7874 GB, free: 11.83 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler): time 0.0008751/0.2298, allocations: 481.4 kB / 0.7879 GB, free: 11.36 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001418/0.2313, allocations: 1.142 MB / 0.789 GB, free: 10.2 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.034e-05/0.2314, allocations: 0 / 0.789 GB, free: 10.2 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 1.745e-05/0.2314, allocations: 3.938 kB / 0.789 GB, free: 10.2 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 6.9e-05/0.2315, allocations: 7.938 kB / 0.789 GB, free: 10.19 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004544/0.2319, allocations: 127.3 kB / 0.7891 GB, free: 10.07 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001219/0.2321, allocations: 99.8 kB / 0.7892 GB, free: 9.973 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 8.98e-05/0.2322, allocations: 20.12 kB / 0.7892 GB, free: 9.949 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 9.224e-05/0.2323, allocations: 39.91 kB / 0.7893 GB, free: 9.91 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 7.256e-05/0.2323, allocations: 39.81 kB / 0.7893 GB, free: 9.871 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.975e-05/0.2324, allocations: 4 kB / 0.7893 GB, free: 9.867 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 6.207e-05/0.2324, allocations: 19.98 kB / 0.7893 GB, free: 9.848 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.956e-05/0.2325, allocations: 15.92 kB / 0.7893 GB, free: 9.832 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 5.47e-05/0.2325, allocations: 37.7 kB / 0.7894 GB, free: 9.789 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001224/0.2326, allocations: 84.08 kB / 0.7895 GB, free: 9.707 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.2327, allocations: 0 / 0.7895 GB, free: 9.707 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.363e-06/0.2327, allocations: 0 / 0.7895 GB, free: 9.707 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.428e-06/0.2327, allocations: 0 / 0.7895 GB, free: 9.707 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.000537/0.2332, allocations: 408.8 kB / 0.7898 GB, free: 9.254 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.182e-05/0.2333, allocations: 8.031 kB / 0.7899 GB, free: 9.246 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.86e-05/0.2333, allocations: 30.56 kB / 0.7899 GB, free: 9.207 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.05e-05/0.2334, allocations: 11.91 kB / 0.7899 GB, free: 9.195 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001043/0.2335, allocations: 182.9 kB / 0.7901 GB, free: 8.977 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.733e-05/0.2335, allocations: 8 kB / 0.7901 GB, free: 8.969 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.069e-05/0.2335, allocations: 8 kB / 0.7901 GB, free: 8.961 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001847/0.2337, allocations: 73.66 kB / 0.7902 GB, free: 8.883 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.082e-06/0.2337, allocations: 0 / 0.7902 GB, free: 8.883 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.578e-06/0.2337, allocations: 0 / 0.7902 GB, free: 8.883 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.232e-06/0.2338, allocations: 4 kB / 0.7902 GB, free: 8.879 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001794/0.2339, allocations: 63.89 kB / 0.7902 GB, free: 8.816 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004437/0.2344, allocations: 348.6 kB / 0.7906 GB, free: 8.426 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001553/0.2346, allocations: 66.58 kB / 0.7906 GB, free: 8.352 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.003e-05/0.2347, allocations: 36.95 kB / 0.7907 GB, free: 8.312 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.966e-05/0.2347, allocations: 8 kB / 0.7907 GB, free: 8.305 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002156/0.2349, allocations: 91.34 kB / 0.7907 GB, free: 8.203 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=8): time 1.683e-06/0.2349, allocations: 0 / 0.7907 GB, free: 8.203 MB / 0.6075 GB Notification: Performance of matching and sorting (n=8): time 0.0004058/0.2353, allocations: 165.5 kB / 0.7909 GB, free: 8.035 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.179e-05/0.2354, allocations: 59.36 kB / 0.791 GB, free: 7.965 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.113e-05/0.2355, allocations: 129.7 kB / 0.7911 GB, free: 7.828 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.405e-05/0.2355, allocations: 29.7 kB / 0.7911 GB, free: 7.793 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.242e-05/0.2356, allocations: 96.05 kB / 0.7912 GB, free: 7.695 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.584e-05/0.2356, allocations: 31.66 kB / 0.7912 GB, free: 7.664 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.114e-05/0.2356, allocations: 0 / 0.7912 GB, free: 7.664 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.327e-05/0.2357, allocations: 318.8 kB / 0.7915 GB, free: 7.344 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001429/0.2359, allocations: 59.95 kB / 0.7916 GB, free: 7.285 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001537/0.236, allocations: 93.11 kB / 0.7917 GB, free: 7.176 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001527/0.2362, allocations: 89.67 kB / 0.7918 GB, free: 7.082 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.2362, allocations: 0 / 0.7918 GB, free: 7.082 MB / 0.6075 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004063/0.2366, allocations: 215.1 kB / 0.792 GB, free: 6.859 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 3.645e-05/0.2366, allocations: 41.8 kB / 0.792 GB, free: 6.812 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.2367, allocations: 8 kB / 0.792 GB, free: 6.805 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.191e-05/0.2367, allocations: 0 / 0.792 GB, free: 6.805 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.47e-05/0.2368, allocations: 15.98 kB / 0.792 GB, free: 6.789 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.444e-06/0.2368, allocations: 7.953 kB / 0.792 GB, free: 6.781 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002123/0.237, allocations: 55.86 kB / 0.7921 GB, free: 6.727 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.965e-05/0.237, allocations: 8 kB / 0.7921 GB, free: 6.719 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 ($PRE.triSam1.y,triSam1.y,$PRE.triSam.y,triSam.y,$whenCondition3,$PRE.booPul.y,booPul.y,$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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.58e-05/0.2371, allocations: 128.9 kB / 0.7922 GB, free: 6.586 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.059e-05/0.2371, allocations: 0 / 0.7922 GB, free: 6.586 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002896/0.2374, allocations: 137.9 kB / 0.7924 GB, free: 6.445 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.42e-06/0.2375, allocations: 7.984 kB / 0.7924 GB, free: 6.438 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.2375, allocations: 48 / 0.7924 GB, free: 6.438 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.2375, allocations: 7.938 kB / 0.7924 GB, free: 6.43 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003897/0.2379, allocations: 386.4 kB / 0.7927 GB, free: 5.996 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.2379, allocations: 0 / 0.7927 GB, free: 5.996 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.706e-05/0.2379, allocations: 11.98 kB / 0.7928 GB, free: 5.984 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.315e-06/0.238, allocations: 4 kB / 0.7928 GB, free: 5.98 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.714e-06/0.238, allocations: 0 / 0.7928 GB, free: 5.98 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.036e-06/0.238, allocations: 0 / 0.7928 GB, free: 5.98 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.238, allocations: 7.891 kB / 0.7928 GB, free: 5.973 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002777/0.2383, allocations: 220 kB / 0.793 GB, free: 5.742 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.039e-05/0.2383, allocations: 88.94 kB / 0.7931 GB, free: 5.637 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.951e-05/0.2383, allocations: 12 kB / 0.7931 GB, free: 5.625 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.976e-05/0.2384, allocations: 8 kB / 0.7931 GB, free: 5.617 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.341e-05/0.2385, allocations: 11.94 kB / 0.7931 GB, free: 5.605 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.404e-06/0.2385, allocations: 4 kB / 0.7931 GB, free: 5.602 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.797e-05/0.2385, allocations: 91.27 kB / 0.7932 GB, free: 5.512 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.11e-07/0.2385, allocations: 0 / 0.7932 GB, free: 5.512 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002501/0.2388, allocations: 24 kB / 0.7932 GB, free: 5.488 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 (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.0005366/0.2393, allocations: 0.771 MB / 0.794 GB, free: 4.691 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0003437/0.2397, allocations: 187.2 kB / 0.7941 GB, free: 4.496 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.2397, allocations: 0 / 0.7941 GB, free: 4.496 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001121/0.2398, allocations: 43.97 kB / 0.7942 GB, free: 4.453 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000264/0.2401, allocations: 20.3 kB / 0.7942 GB, free: 4.434 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001141/0.2412, allocations: 0.7081 MB / 0.7949 GB, free: 3.66 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002228/0.2415, allocations: 0.6962 MB / 0.7956 GB, free: 2.938 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 3.188e-05/0.2415, allocations: 0 / 0.7956 GB, free: 2.938 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.883e-05/0.2416, allocations: 27.42 kB / 0.7956 GB, free: 2.914 MB / 0.6075 GB Notification: Performance of SimCode: time 2.4e-07/0.2416, allocations: 0 / 0.7956 GB, free: 2.914 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01255/0.2541, allocations: 2.208 MB / 0.7978 GB, free: 0.8672 MB / 0.6075 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001893/0.2543, allocations: 196.9 kB / 0.7979 GB, free: 0.6289 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.636/1.891, allocations: 0 / 0.7979 GB, free: 0.6289 MB / 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/linux/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) Environment - environmentSimulation: