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.0009982/0.0009982, allocations: 107.1 kB / 16.45 MB, free: 6.449 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.0009975/0.0009977, allocations: 186.4 kB / 17.38 MB, free: 5.668 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.251/1.251, allocations: 222.9 MB / 241.1 MB, free: 15.09 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.05753/0.05753, allocations: 12.04 MB / 303.3 MB, free: 3.082 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001207/0.001207, allocations: 63.89 kB / 419.6 MB, free: 17.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0978/0.09902, allocations: 52.33 MB / 471.9 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestRandomRealSource): time 0.003495/0.1026, allocations: 2.231 MB / 474.1 MB, free: 11.09 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003099/0.1029, allocations: 147.4 kB / 474.3 MB, free: 10.95 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.777e-05/0.103, allocations: 7.938 kB / 474.3 MB, free: 10.94 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001623/0.1032, allocations: 15.81 kB / 474.3 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001005/0.1033, allocations: 19.91 kB / 474.3 MB, free: 10.91 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002497/0.1035, allocations: 43.83 kB / 474.3 MB, free: 10.86 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001565/0.1037, allocations: 67.84 kB / 474.4 MB, free: 10.8 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001163/0.1038, allocations: 27.97 kB / 474.4 MB, free: 10.77 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.477e-05/0.1039, allocations: 31.84 kB / 474.5 MB, free: 10.74 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.719e-05/0.1039, allocations: 23.86 kB / 474.5 MB, free: 10.71 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.286e-05/0.104, allocations: 4 kB / 474.5 MB, free: 10.71 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.933e-05/0.1041, allocations: 35.98 kB / 474.5 MB, free: 10.68 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.384e-05/0.1041, allocations: 15.92 kB / 474.5 MB, free: 10.66 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.652e-05/0.1042, allocations: 23.86 kB / 474.6 MB, free: 10.64 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002123/0.1044, allocations: 99.81 kB / 474.7 MB, free: 10.54 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.1044, allocations: 0 / 474.7 MB, free: 10.54 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.1044, allocations: 0 / 474.7 MB, free: 10.54 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.58e-06/0.1044, allocations: 0 / 474.7 MB, free: 10.54 MB / 350.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.0004832/0.1049, allocations: 438.5 kB / 475.1 MB, free: 10.05 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.359e-05/0.105, allocations: 8.031 kB / 475.1 MB, free: 10.04 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.28e-05/0.105, allocations: 38.75 kB / 475.1 MB, free: 9.992 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.49e-05/0.1051, allocations: 16.78 kB / 475.2 MB, free: 9.977 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002699/0.1054, allocations: 192.2 kB / 475.3 MB, free: 9.75 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.136e-05/0.1054, allocations: 4.375 kB / 475.3 MB, free: 9.746 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.195e-05/0.1054, allocations: 12.31 kB / 475.4 MB, free: 9.734 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000318/0.1057, allocations: 157.5 kB / 475.5 MB, free: 9.562 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.088e-05/0.1057, allocations: 3.938 kB / 475.5 MB, free: 9.559 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.826e-05/0.1058, allocations: 11.97 kB / 475.5 MB, free: 9.547 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.195e-05/0.1058, allocations: 8 kB / 475.5 MB, free: 9.539 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.964e-05/0.1059, allocations: 27.92 kB / 475.6 MB, free: 9.512 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000356/0.1062, allocations: 285.8 kB / 475.8 MB, free: 9.18 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002562/0.1065, allocations: 158.3 kB / 476 MB, free: 8.988 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.885e-05/0.1066, allocations: 41.69 kB / 476 MB, free: 8.941 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001199/0.1067, allocations: 89.09 kB / 476.1 MB, free: 8.836 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.534e-05/0.1067, allocations: 34.56 kB / 476.2 MB, free: 8.793 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 1.603e-06/0.1067, allocations: 0 / 476.2 MB, free: 8.793 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003447/0.1071, allocations: 169 kB / 476.3 MB, free: 8.609 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.261e-05/0.1072, allocations: 140.5 kB / 476.5 MB, free: 8.441 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.494e-05/0.1073, allocations: 121.7 kB / 476.6 MB, free: 8.312 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.937e-05/0.1073, allocations: 29.7 kB / 476.6 MB, free: 8.277 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.981e-05/0.1074, allocations: 92.12 kB / 476.7 MB, free: 8.184 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.835e-05/0.1074, allocations: 19.94 kB / 476.7 MB, free: 8.164 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.012e-05/0.1074, allocations: 21.72 kB / 476.7 MB, free: 8.137 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001158/0.1076, allocations: 322.8 kB / 477.1 MB, free: 7.812 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.153e-05/0.1076, allocations: 16 kB / 477.1 MB, free: 7.797 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.319e-05/0.1077, allocations: 61.94 kB / 477.1 MB, free: 7.715 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001435/0.1078, allocations: 184.8 kB / 477.3 MB, free: 7.488 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.1078, allocations: 0 / 477.3 MB, free: 7.488 MB / 350.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002003/0.108, allocations: 160.9 kB / 477.5 MB, free: 7.312 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.586e-05/0.1081, allocations: 63.39 kB / 477.5 MB, free: 7.238 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.124e-06/0.1081, allocations: 0 / 477.5 MB, free: 7.238 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.825e-05/0.1081, allocations: 7.938 kB / 477.5 MB, free: 7.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.594e-05/0.1082, allocations: 8 kB / 477.5 MB, free: 7.223 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.813e-06/0.1082, allocations: 0 / 477.5 MB, free: 7.223 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.437e-05/0.1082, allocations: 11.89 kB / 477.6 MB, free: 7.211 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.343e-05/0.1083, allocations: 8 kB / 477.6 MB, free: 7.203 MB / 350.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.0001287/0.1084, allocations: 189.3 kB / 477.8 MB, free: 6.996 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.669e-05/0.1085, allocations: 61.64 kB / 477.8 MB, free: 6.93 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.455e-05/0.1085, allocations: 11.97 kB / 477.8 MB, free: 6.918 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.914e-06/0.1085, allocations: 0 / 477.8 MB, free: 6.918 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.1086, allocations: 0 / 477.8 MB, free: 6.918 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.701e-06/0.1086, allocations: 3.984 kB / 477.8 MB, free: 6.914 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002413/0.1088, allocations: 181.9 kB / 478 MB, free: 6.688 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.1088, allocations: 0 / 478 MB, free: 6.688 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.52e-05/0.1089, allocations: 12 kB / 478 MB, free: 6.676 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.943e-06/0.1089, allocations: 0 / 478 MB, free: 6.676 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.294e-05/0.1089, allocations: 8 kB / 478 MB, free: 6.668 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.352e-06/0.1089, allocations: 0 / 478 MB, free: 6.668 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.086e-05/0.1089, allocations: 7.922 kB / 478 MB, free: 6.66 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002566/0.1092, allocations: 267.9 kB / 478.3 MB, free: 6.367 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.512e-05/0.1092, allocations: 89.14 kB / 478.4 MB, free: 6.262 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.043e-05/0.1093, allocations: 3.938 kB / 478.4 MB, free: 6.258 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.172e-05/0.1093, allocations: 4 kB / 478.4 MB, free: 6.254 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.987e-05/0.1094, allocations: 12 kB / 478.4 MB, free: 6.242 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.177e-06/0.1094, allocations: 3.984 kB / 478.4 MB, free: 6.238 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.122e-05/0.1094, allocations: 95.66 kB / 478.5 MB, free: 6.145 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1094, allocations: 0 / 478.5 MB, free: 6.145 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002714/0.1097, allocations: 27.92 kB / 478.5 MB, free: 6.117 MB / 350.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.0009868/0.1107, allocations: 0.9386 MB / 479.5 MB, free: 5.203 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000227/0.111, allocations: 170.7 kB / 479.6 MB, free: 5.012 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.111, allocations: 0 / 479.6 MB, free: 5.012 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.533e-05/0.1111, allocations: 126.7 kB / 479.8 MB, free: 4.863 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003153/0.1114, allocations: 32.02 kB / 479.8 MB, free: 4.832 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001522/0.1129, allocations: 1.546 MB / 481.3 MB, free: 3.148 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002608/0.1132, allocations: 0.6962 MB / 482 MB, free: 2.426 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.868e-05/0.1133, allocations: 11.98 kB / 482 MB, free: 2.414 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.863e-05/0.1133, allocations: 19.44 kB / 482.1 MB, free: 2.395 MB / 350.1 MB Notification: Performance of SimCode: time 6.21e-07/0.1133, allocations: 0 / 482.1 MB, free: 2.395 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02129/0.1346, allocations: 2.531 MB / 484.6 MB, free: 8 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.52/7.655, allocations: 10.22 kB / 484.6 MB, free: 0 / 350.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)