Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestSpecial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001189/0.001189, allocations: 105.1 kB / 21.22 MB, free: 0.5117 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001418/0.001418, allocations: 217.3 kB / 24.54 MB, free: 3.898 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.484/1.484, allocations: 230.5 MB / 258.2 MB, free: 7.992 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2371/0.2371, allocations: 46.93 MB / 361.6 MB, free: 4.191 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.Random.TestSpecial,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_Random_TestSpecial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestSpecial,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_Random_TestSpecial",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002306/0.002306, allocations: 79.86 kB / 0.497 GB, free: 7.762 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3703/0.3726, allocations: 66.08 MB / 0.5615 GB, free: 4.328 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.001713/0.3743, allocations: 499.6 kB / 0.562 GB, free: 3.844 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003222/0.3775, allocations: 2.062 MB / 0.564 GB, free: 1.762 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.962e-05/0.3776, allocations: 0 / 0.564 GB, free: 1.762 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.957e-05/0.3776, allocations: 0 / 0.564 GB, free: 1.762 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.633e-06/0.3776, allocations: 0 / 0.564 GB, free: 1.762 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/Math.mo:928:5-1011:16:writable] Warning: Pure function 'ModelicaTest.Math.Random.special' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.001537/0.3791, allocations: 0.4981 MB / 0.5645 GB, free: 1.266 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.303e-05/0.3792, allocations: 7.984 kB / 0.5645 GB, free: 1.258 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.237e-05/0.3792, allocations: 4 kB / 0.5645 GB, free: 1.254 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.681e-05/0.3792, allocations: 0 / 0.5645 GB, free: 1.254 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.945e-05/0.3793, allocations: 3.938 kB / 0.5645 GB, free: 1.25 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.261e-06/0.3793, allocations: 0 / 0.5645 GB, free: 1.25 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001163/0.3804, allocations: 0.7389 MB / 0.5652 GB, free: 0.5117 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.536e-06/0.3804, allocations: 3.984 kB / 0.5652 GB, free: 0.5078 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.177e-05/0.3805, allocations: 4 kB / 0.5652 GB, free: 0.5039 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005491/0.381, allocations: 387.1 kB / 0.5656 GB, free: 128 kB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.381, allocations: 0 / 0.5656 GB, free: 128 kB / 398.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.381, allocations: 0 / 0.5656 GB, free: 128 kB / 398.1 MB Notification: Performance of Transformations before backend: time 5.511e-06/0.381, allocations: 4 kB / 0.5656 GB, free: 124 kB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0004859/0.3815, allocations: 339.4 kB / 0.5659 GB, free: 15.75 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.53e-05/0.3815, allocations: 12.02 kB / 0.5659 GB, free: 15.74 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.967e-05/0.3816, allocations: 38.7 kB / 0.566 GB, free: 15.7 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.606e-05/0.3816, allocations: 8.875 kB / 0.566 GB, free: 15.69 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.793e-05/0.3817, allocations: 106.5 kB / 0.5661 GB, free: 15.56 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.042e-05/0.3817, allocations: 4.375 kB / 0.5661 GB, free: 15.55 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.102e-05/0.3817, allocations: 4.312 kB / 0.5661 GB, free: 15.55 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001007/0.3818, allocations: 33.83 kB / 0.5661 GB, free: 15.51 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.534e-06/0.3819, allocations: 4 kB / 0.5661 GB, free: 15.51 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.943e-06/0.3819, allocations: 0 / 0.5661 GB, free: 15.51 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.654e-06/0.3819, allocations: 7.984 kB / 0.5661 GB, free: 15.5 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.073e-05/0.3819, allocations: 0 / 0.5661 GB, free: 15.5 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002474/0.3821, allocations: 203.9 kB / 0.5663 GB, free: 15.26 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.984e-05/0.3822, allocations: 22.59 kB / 0.5663 GB, free: 15.23 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.788e-05/0.3822, allocations: 16.92 kB / 0.5664 GB, free: 15.21 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.37e-06/0.3822, allocations: 0 / 0.5664 GB, free: 15.21 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.934e-05/0.3823, allocations: 60.27 kB / 0.5664 GB, free: 15.13 MB / 414.1 MB Notification: Performance of pre-optimization done (n=2): time 8.21e-07/0.3823, allocations: 0 / 0.5664 GB, free: 15.13 MB / 414.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002066/0.3825, allocations: 71.33 kB / 0.5665 GB, free: 15.05 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.456e-05/0.3826, allocations: 81.11 kB / 0.5666 GB, free: 14.95 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.549e-05/0.3826, allocations: 89.86 kB / 0.5667 GB, free: 14.86 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.574e-05/0.3826, allocations: 25.7 kB / 0.5667 GB, free: 14.82 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.588e-05/0.3827, allocations: 88.2 kB / 0.5668 GB, free: 14.73 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.504e-05/0.3827, allocations: 0 / 0.5668 GB, free: 14.73 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.335e-05/0.3827, allocations: 17.72 kB / 0.5668 GB, free: 14.71 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001702/0.3829, allocations: 314.8 kB / 0.5671 GB, free: 14.39 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.5e-05/0.3829, allocations: 4 kB / 0.5671 GB, free: 14.39 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.462e-06/0.3829, allocations: 0 / 0.5671 GB, free: 14.39 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.46e-05/0.383, allocations: 64.27 kB / 0.5671 GB, free: 14.31 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/0.383, allocations: 12 kB / 0.5672 GB, free: 14.3 MB / 414.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.493e-05/0.3831, allocations: 67.33 kB / 0.5672 GB, free: 14.22 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.796e-05/0.3831, allocations: 29.7 kB / 0.5672 GB, free: 14.19 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.565e-05/0.3831, allocations: 4 kB / 0.5673 GB, free: 14.18 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.918e-05/0.3831, allocations: 0 / 0.5673 GB, free: 14.18 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.47e-05/0.3832, allocations: 0 / 0.5673 GB, free: 14.18 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.001e-06/0.3832, allocations: 0 / 0.5673 GB, free: 14.18 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.198e-05/0.3832, allocations: 7.953 kB / 0.5673 GB, free: 14.18 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.019e-05/0.3832, allocations: 3.984 kB / 0.5673 GB, free: 14.17 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 ($outputAlias_result,result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 1 * 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.0001142/0.3833, allocations: 143.5 kB / 0.5674 GB, free: 14.02 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.161e-05/0.3833, allocations: 0 / 0.5674 GB, free: 14.02 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.133e-05/0.3833, allocations: 7.141 kB / 0.5674 GB, free: 14 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.163e-06/0.3833, allocations: 0 / 0.5674 GB, free: 14 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.061e-06/0.3834, allocations: 7.984 kB / 0.5674 GB, free: 14 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-06/0.3834, allocations: 0 / 0.5674 GB, free: 14 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003004/0.3837, allocations: 271.3 kB / 0.5677 GB, free: 13.68 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.3837, allocations: 0 / 0.5677 GB, free: 13.68 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.466e-06/0.3837, allocations: 4 kB / 0.5677 GB, free: 13.67 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.302e-06/0.3837, allocations: 0 / 0.5677 GB, free: 13.67 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.402e-06/0.3837, allocations: 7.969 kB / 0.5677 GB, free: 13.66 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.969e-06/0.3837, allocations: 4 kB / 0.5677 GB, free: 13.66 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.3837, allocations: 0 / 0.5677 GB, free: 13.66 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001493/0.3838, allocations: 169.2 kB / 0.5679 GB, free: 13.47 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.078e-06/0.3838, allocations: 0 / 0.5679 GB, free: 13.47 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.24e-05/0.3839, allocations: 3.984 kB / 0.5679 GB, free: 13.47 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.225e-05/0.3839, allocations: 0 / 0.5679 GB, free: 13.47 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.919e-05/0.3839, allocations: 8.031 kB / 0.5679 GB, free: 13.46 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.715e-06/0.3839, allocations: 0 / 0.5679 GB, free: 13.46 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.698e-05/0.384, allocations: 75.28 kB / 0.5679 GB, free: 13.39 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.384, allocations: 7.875 kB / 0.5679 GB, free: 13.38 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004223/0.3844, allocations: 139.5 kB / 0.5681 GB, free: 13.24 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (result,$outputAlias_result) * Number of discrete states: 1 ($outputAlias_result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 1 * 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.001165/0.3855, allocations: 0.9023 MB / 0.569 GB, free: 12.31 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001336/0.3857, allocations: 67.39 kB / 0.569 GB, free: 12.23 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.694e-06/0.3857, allocations: 64 / 0.569 GB, free: 12.23 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.775e-05/0.3857, allocations: 67.34 kB / 0.5691 GB, free: 12.16 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001877/0.3859, allocations: 0 / 0.5691 GB, free: 12.16 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001105/0.387, allocations: 1.207 MB / 0.5703 GB, free: 10.86 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003529/0.3874, allocations: 0.6768 MB / 0.5709 GB, free: 10.16 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 1.042e-05/0.3874, allocations: 0 / 0.5709 GB, free: 10.16 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.015e-05/0.3874, allocations: 7.438 kB / 0.5709 GB, free: 10.15 MB / 414.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3874, allocations: 7.938 kB / 0.5709 GB, free: 10.14 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02767/0.4151, allocations: 4.548 MB / 0.5754 GB, free: 5.66 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.964/8.379, allocations: 10.56 kB / 0.5754 GB, free: 5.652 MB / 414.1 MB " [Timeout remaining time 652] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestSpecial.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestSpecial.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestSpecial.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestSpecial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestSpecial_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_Random_TestSpecial_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_Random_TestSpecial.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestSpecial.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.214125986211002] Failed to read output from testmodel.py, exit status != 0: ['time', 'result'] 8.450773210264742 8.475165162 8.089744786 Calling exit ...