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.00107/0.00107, allocations: 106.4 kB / 16.45 MB, free: 6.445 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.001061/0.001061, allocations: 190 kB / 17.39 MB, free: 5.688 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.332/1.332, allocations: 222.9 MB / 241.1 MB, free: 15.14 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.05739/0.05739, allocations: 12.05 MB / 303.3 MB, free: 3.102 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001177/0.001177, allocations: 63.91 kB / 419.6 MB, free: 17.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09227/0.09346, allocations: 52.32 MB / 471.9 MB, free: 13.37 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestRandomRealSource): time 0.003623/0.09712, allocations: 2.23 MB / 474.1 MB, free: 11.12 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002993/0.09744, allocations: 147.4 kB / 474.2 MB, free: 10.98 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.469e-05/0.09754, allocations: 3.938 kB / 474.2 MB, free: 10.98 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001597/0.09771, allocations: 27.8 kB / 474.3 MB, free: 10.95 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.844e-05/0.09783, allocations: 7.938 kB / 474.3 MB, free: 10.94 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002574/0.09809, allocations: 63.8 kB / 474.3 MB, free: 10.88 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001496/0.09825, allocations: 59.84 kB / 474.4 MB, free: 10.82 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.942e-05/0.09836, allocations: 27.97 kB / 474.4 MB, free: 10.79 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.332e-05/0.09842, allocations: 23.86 kB / 474.5 MB, free: 10.77 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.832e-05/0.09848, allocations: 35.83 kB / 474.5 MB, free: 10.73 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.227e-05/0.09851, allocations: 8 kB / 474.5 MB, free: 10.73 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.658e-05/0.09859, allocations: 24 kB / 474.5 MB, free: 10.7 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.043e-05/0.09865, allocations: 15.92 kB / 474.5 MB, free: 10.69 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.146e-05/0.0987, allocations: 31.86 kB / 474.6 MB, free: 10.66 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000175/0.09889, allocations: 91.7 kB / 474.7 MB, free: 10.57 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.0989, allocations: 3.938 kB / 474.7 MB, free: 10.56 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.0989, allocations: 0 / 474.7 MB, free: 10.56 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.005e-06/0.09892, allocations: 0 / 474.7 MB, free: 10.56 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.0004252/0.09935, allocations: 426.4 kB / 475.1 MB, free: 10.09 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.717e-05/0.09939, allocations: 16.02 kB / 475.1 MB, free: 10.07 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.868e-05/0.09944, allocations: 42.67 kB / 475.1 MB, free: 10.02 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.468e-05/0.09948, allocations: 8.844 kB / 475.1 MB, free: 10.01 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002359/0.09972, allocations: 196.2 kB / 475.3 MB, free: 9.781 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.383e-05/0.09974, allocations: 8.375 kB / 475.3 MB, free: 9.773 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.298e-05/0.09976, allocations: 4.375 kB / 475.3 MB, free: 9.77 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002966/0.1001, allocations: 157.5 kB / 475.5 MB, free: 9.598 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.117e-06/0.1001, allocations: 3.938 kB / 475.5 MB, free: 9.594 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.08e-05/0.1001, allocations: 4 kB / 475.5 MB, free: 9.59 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.611e-05/0.1001, allocations: 4 kB / 475.5 MB, free: 9.586 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.189e-05/0.1002, allocations: 35.92 kB / 475.5 MB, free: 9.551 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003466/0.1005, allocations: 293.6 kB / 475.8 MB, free: 9.211 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002315/0.1008, allocations: 162.2 kB / 476 MB, free: 9.016 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.564e-05/0.1009, allocations: 45.72 kB / 476 MB, free: 8.965 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.454e-05/0.101, allocations: 81.11 kB / 476.1 MB, free: 8.867 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.231e-05/0.101, allocations: 30.56 kB / 476.1 MB, free: 8.828 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 1.563e-06/0.101, allocations: 0 / 476.1 MB, free: 8.828 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003167/0.1013, allocations: 173 kB / 476.3 MB, free: 8.641 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.495e-05/0.1014, allocations: 136.5 kB / 476.4 MB, free: 8.477 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.004e-05/0.1015, allocations: 125.7 kB / 476.6 MB, free: 8.344 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.195e-05/0.1015, allocations: 25.7 kB / 476.6 MB, free: 8.312 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.158e-05/0.1016, allocations: 96.14 kB / 476.7 MB, free: 8.215 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.309e-05/0.1016, allocations: 7.891 kB / 476.7 MB, free: 8.207 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.24e-05/0.1017, allocations: 25.62 kB / 476.7 MB, free: 8.176 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001092/0.1018, allocations: 326.8 kB / 477 MB, free: 7.848 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.97e-05/0.1018, allocations: 12 kB / 477.1 MB, free: 7.836 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.979e-05/0.1019, allocations: 65.94 kB / 477.1 MB, free: 7.75 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001543/0.1021, allocations: 188.9 kB / 477.3 MB, free: 7.52 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.1021, allocations: 0 / 477.3 MB, free: 7.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002064/0.1023, allocations: 156.9 kB / 477.5 MB, free: 7.348 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.501e-05/0.1023, allocations: 59.41 kB / 477.5 MB, free: 7.277 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.665e-06/0.1023, allocations: 7.938 kB / 477.5 MB, free: 7.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.326e-05/0.1024, allocations: 0 / 477.5 MB, free: 7.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.846e-05/0.1024, allocations: 16.2 kB / 477.5 MB, free: 7.254 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.816e-06/0.1024, allocations: 4 kB / 477.5 MB, free: 7.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.504e-05/0.1025, allocations: 11.84 kB / 477.6 MB, free: 7.238 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.494e-05/0.1025, allocations: 8.078 kB / 477.6 MB, free: 7.23 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.0001241/0.1026, allocations: 181.1 kB / 477.7 MB, free: 7.031 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001009/0.1027, allocations: 69.59 kB / 477.8 MB, free: 6.957 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.277e-05/0.1028, allocations: 7.953 kB / 477.8 MB, free: 6.949 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.434e-06/0.1028, allocations: 0 / 477.8 MB, free: 6.949 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.1028, allocations: 4 kB / 477.8 MB, free: 6.945 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.1028, allocations: 4 kB / 477.8 MB, free: 6.941 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000186/0.103, allocations: 181.6 kB / 478 MB, free: 6.715 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.103, allocations: 4.312 kB / 478 MB, free: 6.711 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.408e-05/0.103, allocations: 8 kB / 478 MB, free: 6.703 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.1031, allocations: 4 kB / 478 MB, free: 6.699 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.125e-05/0.1031, allocations: 0 / 478 MB, free: 6.699 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.314e-05/0.1031, allocations: 4 kB / 478 MB, free: 6.695 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.1031, allocations: 0 / 478 MB, free: 6.695 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002679/0.1034, allocations: 267.6 kB / 478.3 MB, free: 6.402 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.978e-05/0.1034, allocations: 85.09 kB / 478.4 MB, free: 6.301 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.24e-05/0.1034, allocations: 11.94 kB / 478.4 MB, free: 6.289 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.871e-05/0.1035, allocations: 0 / 478.4 MB, free: 6.289 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.661e-05/0.1035, allocations: 4 kB / 478.4 MB, free: 6.285 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.268e-06/0.1035, allocations: 4 kB / 478.4 MB, free: 6.281 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.496e-05/0.1036, allocations: 99.64 kB / 478.5 MB, free: 6.184 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1036, allocations: 0 / 478.5 MB, free: 6.184 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002646/0.1039, allocations: 23.94 kB / 478.5 MB, free: 6.16 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.0008829/0.1048, allocations: 0.9392 MB / 479.4 MB, free: 5.242 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002152/0.105, allocations: 170.7 kB / 479.6 MB, free: 5.051 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.105, allocations: 0 / 479.6 MB, free: 5.051 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.68e-05/0.1051, allocations: 131.2 kB / 479.7 MB, free: 4.898 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002843/0.1054, allocations: 45.83 kB / 479.8 MB, free: 4.859 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001352/0.1068, allocations: 1.526 MB / 481.3 MB, free: 3.195 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002444/0.107, allocations: 0.6962 MB / 482 MB, free: 2.473 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.896e-05/0.1071, allocations: 15.98 kB / 482 MB, free: 2.457 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.521e-05/0.1071, allocations: 23.42 kB / 482 MB, free: 2.434 MB / 350.1 MB Notification: Performance of SimCode: time 2e-07/0.1071, allocations: 0 / 482 MB, free: 2.434 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01744/0.1246, allocations: 2.549 MB / 484.6 MB, free: 28 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.338/7.463, allocations: 10.39 kB / 484.6 MB, free: 20 kB / 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestRandomRealSource_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestRandomRealSource.fmu > Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestRandomRealSource.pipe 2>&1)