Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestRandomRealSource.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo", uses=false) Using package Modelica_DeviceDrivers with version 2.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestRandomRealSource,fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestRandomRealSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestRandomRealSource,fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestRandomRealSource",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.001199/0.001199, allocations: 101.3 kB / 16.31 MB, free: 6.391 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.001256/0.001256, allocations: 188.5 kB / 17.24 MB, free: 5.922 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.315/1.315, allocations: 222.9 MB / 240.9 MB, free: 15.28 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo): time 0.05538/0.05538, allocations: 12.04 MB / 303.1 MB, free: 3.207 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001192/0.001192, allocations: 68.03 kB / 366.6 MB, free: 3.723 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1994/0.2006, allocations: 52.33 MB / 418.9 MB, free: 21.09 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestRandomRealSource): time 0.003469/0.2041, allocations: 2.232 MB / 421.1 MB, free: 18.86 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002776/0.2044, allocations: 147.5 kB / 421.3 MB, free: 18.71 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.046e-05/0.2045, allocations: 7.938 kB / 421.3 MB, free: 18.71 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001951/0.2047, allocations: 11.86 kB / 421.3 MB, free: 18.7 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001256/0.2049, allocations: 23.8 kB / 421.3 MB, free: 18.67 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002967/0.2052, allocations: 47.88 kB / 421.4 MB, free: 18.62 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00019/0.2054, allocations: 67.84 kB / 421.4 MB, free: 18.56 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001488/0.2055, allocations: 20 kB / 421.4 MB, free: 18.54 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.476e-05/0.2056, allocations: 27.86 kB / 421.5 MB, free: 18.51 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.352e-05/0.2057, allocations: 27.84 kB / 421.5 MB, free: 18.48 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.144e-05/0.2057, allocations: 4 kB / 421.5 MB, free: 18.48 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001046/0.2058, allocations: 35.98 kB / 421.5 MB, free: 18.45 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.709e-05/0.2059, allocations: 11.94 kB / 421.6 MB, free: 18.43 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.78e-05/0.2059, allocations: 31.84 kB / 421.6 MB, free: 18.4 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001865/0.2061, allocations: 91.7 kB / 421.7 MB, free: 18.31 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.808e-06/0.2061, allocations: 0 / 421.7 MB, free: 18.31 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.2062, allocations: 0 / 421.7 MB, free: 18.31 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.919e-06/0.2062, allocations: 0 / 421.7 MB, free: 18.31 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0004177/0.2066, allocations: 436.9 kB / 422.1 MB, free: 17.82 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.19e-05/0.2066, allocations: 8.031 kB / 422.1 MB, free: 17.82 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.891e-05/0.2067, allocations: 46.72 kB / 422.2 MB, free: 17.76 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.559e-05/0.2067, allocations: 8.844 kB / 422.2 MB, free: 17.75 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000186/0.2069, allocations: 188.2 kB / 422.3 MB, free: 17.53 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.307e-05/0.2069, allocations: 4.375 kB / 422.3 MB, free: 17.53 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.556e-05/0.207, allocations: 12.38 kB / 422.4 MB, free: 17.52 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002913/0.2072, allocations: 165.4 kB / 422.5 MB, free: 17.34 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.108e-05/0.2073, allocations: 3.938 kB / 422.5 MB, free: 17.33 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.612e-05/0.2073, allocations: 8 kB / 422.5 MB, free: 17.32 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.032e-05/0.2073, allocations: 0 / 422.5 MB, free: 17.32 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.514e-05/0.2074, allocations: 31.97 kB / 422.6 MB, free: 17.29 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003299/0.2077, allocations: 289.7 kB / 422.8 MB, free: 16.96 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002183/0.208, allocations: 150.3 kB / 423 MB, free: 16.77 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.148e-05/0.208, allocations: 41.72 kB / 423 MB, free: 16.73 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001471/0.2082, allocations: 93.08 kB / 423.1 MB, free: 16.62 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.231e-05/0.2082, allocations: 42.5 kB / 423.2 MB, free: 16.57 MB / 302.1 MB Notification: Performance of pre-optimization done (n=8): time 1.363e-06/0.2082, allocations: 0 / 423.2 MB, free: 16.57 MB / 302.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003003/0.2085, allocations: 172.9 kB / 423.3 MB, free: 16.38 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.403e-05/0.2086, allocations: 132.5 kB / 423.5 MB, free: 16.22 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.238e-05/0.2087, allocations: 121.8 kB / 423.6 MB, free: 16.09 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.222e-05/0.2087, allocations: 25.7 kB / 423.6 MB, free: 16.06 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.548e-05/0.2088, allocations: 92.12 kB / 423.7 MB, free: 15.96 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.42e-05/0.2088, allocations: 15.84 kB / 423.7 MB, free: 15.95 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.837e-05/0.2088, allocations: 29.73 kB / 423.7 MB, free: 15.91 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.156e-05/0.2089, allocations: 318.8 kB / 424.1 MB, free: 15.59 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.004e-05/0.2089, allocations: 15.98 kB / 424.1 MB, free: 15.58 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.443e-05/0.209, allocations: 61.94 kB / 424.1 MB, free: 15.5 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001083/0.2091, allocations: 180.8 kB / 424.3 MB, free: 15.27 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.085e-06/0.2091, allocations: 4 kB / 424.3 MB, free: 15.27 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001691/0.2093, allocations: 156.9 kB / 424.5 MB, free: 15.1 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.879e-05/0.2093, allocations: 59.41 kB / 424.5 MB, free: 15.03 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.123e-06/0.2094, allocations: 4.094 kB / 424.5 MB, free: 15.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.73e-05/0.2094, allocations: 7.875 kB / 424.5 MB, free: 15.02 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.231e-05/0.2094, allocations: 12 kB / 424.5 MB, free: 15 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.933e-06/0.2095, allocations: 3.984 kB / 424.6 MB, free: 15 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.695e-05/0.2095, allocations: 7.906 kB / 424.6 MB, free: 14.99 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.272e-05/0.2095, allocations: 4 kB / 424.6 MB, free: 14.99 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 1 (synchronizeRealtime.initialized) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 2 * 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.0001289/0.2097, allocations: 181.4 kB / 424.7 MB, free: 14.79 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.801e-05/0.2098, allocations: 69.53 kB / 424.8 MB, free: 14.71 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.884e-05/0.2098, allocations: 11.95 kB / 424.8 MB, free: 14.7 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.785e-06/0.2098, allocations: 4 kB / 424.8 MB, free: 14.7 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.2098, allocations: 320 / 424.8 MB, free: 14.7 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.2098, allocations: 0 / 424.8 MB, free: 14.7 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001309/0.21, allocations: 185.5 kB / 425 MB, free: 14.46 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.21, allocations: 0 / 425 MB, free: 14.46 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.046e-05/0.21, allocations: 15.98 kB / 425 MB, free: 14.45 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.21, allocations: 0 / 425 MB, free: 14.45 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.133e-05/0.21, allocations: 4 kB / 425 MB, free: 14.45 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.283e-06/0.21, allocations: 7.938 kB / 425 MB, free: 14.44 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.21, allocations: 0 / 425 MB, free: 14.44 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002009/0.2102, allocations: 263.6 kB / 425.3 MB, free: 14.15 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.172e-05/0.2103, allocations: 81.11 kB / 425.4 MB, free: 14.05 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.036e-05/0.2103, allocations: 144 / 425.4 MB, free: 14.05 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.003e-05/0.2103, allocations: 4 kB / 425.4 MB, free: 14.05 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.005e-05/0.2104, allocations: 15.97 kB / 425.4 MB, free: 14.03 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.043e-06/0.2104, allocations: 4 kB / 425.4 MB, free: 14.03 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.364e-05/0.2104, allocations: 99.64 kB / 425.5 MB, free: 13.93 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2104, allocations: 0 / 425.5 MB, free: 13.93 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002551/0.2107, allocations: 23.91 kB / 425.5 MB, free: 13.91 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 1 (synchronizeRealtime.initialized) * Number of discrete states: 1 (synchronizeRealtime.initialized) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 2 * 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 Backend phase and start with SimCode phase: time 0.0006527/0.2114, allocations: 0.9284 MB / 426.4 MB, free: 13 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001776/0.2115, allocations: 170.7 kB / 426.6 MB, free: 12.81 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.734e-06/0.2116, allocations: 0 / 426.6 MB, free: 12.81 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.843e-05/0.2116, allocations: 122.8 kB / 426.7 MB, free: 12.66 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002675/0.2119, allocations: 34.78 kB / 426.8 MB, free: 12.63 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001107/0.213, allocations: 1.558 MB / 428.3 MB, free: 10.94 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001267/0.2131, allocations: 0.693 MB / 429 MB, free: 10.22 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.889e-05/0.2132, allocations: 11.98 kB / 429 MB, free: 10.21 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.302e-05/0.2132, allocations: 23.42 kB / 429 MB, free: 10.18 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2132, allocations: 7.938 kB / 429.1 MB, free: 10.18 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01727/0.2305, allocations: 2.464 MB / 431.5 MB, free: 7.836 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.268/7.498, allocations: 19.81 kB / 431.5 MB, free: 7.82 MB / 302.1 MB (rm -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestRandomRealSource.pipe ; mkfifo Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestRandomRealSource.pipe ; head -c 1048576 < Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestRandomRealSource.pipe >> ../files/Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestRandomRealSource.sim & python3 -m fmpy simulate --output-file Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestRandomRealSource_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00044 Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestRandomRealSource.fmu > Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestRandomRealSource.pipe 2>&1)