Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestTruncatedDistributions.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.00178/0.00178, allocations: 109.2 kB / 19.8 MB, free: 2.516 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.00217/0.00217, allocations: 221.3 kB / 23 MB, free: 5.617 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.444/1.444, allocations: 230.2 MB / 256.2 MB, free: 8.531 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.2401/0.2401, allocations: 46.89 MB / 359.4 MB, free: 4.891 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.TestTruncatedDistributions,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_Random_TestTruncatedDistributions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestTruncatedDistributions,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_Random_TestTruncatedDistributions",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.003147/0.003147, allocations: 79.88 kB / 0.4941 GB, free: 9.004 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.376/0.3791, allocations: 65.99 MB / 0.5586 GB, free: 5.148 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001817/0.3809, allocations: 0.497 MB / 0.5591 GB, free: 4.648 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003965/0.3849, allocations: 2.401 MB / 0.5614 GB, free: 2.227 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.201e-05/0.3849, allocations: 4 kB / 0.5614 GB, free: 2.223 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.329e-05/0.385, allocations: 0 / 0.5614 GB, free: 2.223 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.163e-06/0.385, allocations: 0 / 0.5614 GB, free: 2.223 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/Math.mo:1098:5-1194:31:writable] Warning: Pure function 'ModelicaTest.Math.Random.truncatedDistributions' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.001844/0.3868, allocations: 0.5723 MB / 0.562 GB, free: 1.652 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.681e-05/0.3869, allocations: 3.984 kB / 0.562 GB, free: 1.648 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.958e-05/0.3869, allocations: 3.938 kB / 0.562 GB, free: 1.645 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.662e-05/0.3869, allocations: 4 kB / 0.562 GB, free: 1.641 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.524e-05/0.3869, allocations: 0 / 0.562 GB, free: 1.641 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.713e-06/0.3869, allocations: 0 / 0.562 GB, free: 1.641 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001207/0.3881, allocations: 0.7409 MB / 0.5627 GB, free: 0.8984 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.444e-06/0.3882, allocations: 0 / 0.5627 GB, free: 0.8984 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.762e-05/0.3882, allocations: 4 kB / 0.5627 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006362/0.3888, allocations: 460.6 kB / 0.5631 GB, free: 456 kB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.3888, allocations: 0 / 0.5631 GB, free: 456 kB / 398.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.3888, allocations: 0 / 0.5631 GB, free: 456 kB / 398.1 MB Notification: Performance of Transformations before backend: time 5.059e-06/0.3888, allocations: 0 / 0.5631 GB, free: 456 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.00053/0.3894, allocations: 440.2 kB / 0.5636 GB, free: 15.96 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.161e-05/0.3894, allocations: 12.03 kB / 0.5636 GB, free: 15.95 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.262e-05/0.3895, allocations: 38.69 kB / 0.5636 GB, free: 15.9 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.436e-05/0.3895, allocations: 8.875 kB / 0.5636 GB, free: 15.89 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001188/0.3896, allocations: 160.4 kB / 0.5638 GB, free: 15.7 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.187e-05/0.3896, allocations: 384 / 0.5638 GB, free: 15.7 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.105e-05/0.3896, allocations: 384 / 0.5638 GB, free: 15.7 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001223/0.3897, allocations: 41.77 kB / 0.5638 GB, free: 15.65 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.195e-06/0.3898, allocations: 0 / 0.5638 GB, free: 15.65 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.747e-06/0.3898, allocations: 3.984 kB / 0.5638 GB, free: 15.65 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.137e-06/0.3898, allocations: 0 / 0.5638 GB, free: 15.65 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.215e-05/0.3898, allocations: 11.98 kB / 0.5638 GB, free: 15.64 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002625/0.39, allocations: 228.9 kB / 0.564 GB, free: 15.36 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.746e-05/0.3901, allocations: 22.59 kB / 0.5641 GB, free: 15.33 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.372e-05/0.3901, allocations: 12.86 kB / 0.5641 GB, free: 15.32 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.172e-05/0.3901, allocations: 3.938 kB / 0.5641 GB, free: 15.31 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.164e-05/0.3902, allocations: 64.27 kB / 0.5641 GB, free: 15.23 MB / 414.1 MB Notification: Performance of pre-optimization done (n=2): time 1.062e-06/0.3902, allocations: 0 / 0.5641 GB, free: 15.23 MB / 414.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002079/0.3904, allocations: 67.39 kB / 0.5642 GB, free: 15.16 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.223e-05/0.3905, allocations: 85.11 kB / 0.5643 GB, free: 15.05 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.865e-05/0.3905, allocations: 89.86 kB / 0.5644 GB, free: 14.96 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.45e-05/0.3905, allocations: 25.7 kB / 0.5644 GB, free: 14.93 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.474e-05/0.3906, allocations: 80.14 kB / 0.5645 GB, free: 14.84 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.252e-05/0.3906, allocations: 3.953 kB / 0.5645 GB, free: 14.84 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.09e-05/0.3906, allocations: 17.84 kB / 0.5645 GB, free: 14.82 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001426/0.3908, allocations: 314.8 kB / 0.5648 GB, free: 14.5 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.402e-05/0.3908, allocations: 3.984 kB / 0.5648 GB, free: 14.5 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.227e-05/0.3908, allocations: 7.938 kB / 0.5648 GB, free: 14.49 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.366e-05/0.3909, allocations: 60.27 kB / 0.5649 GB, free: 14.41 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.918e-06/0.3909, allocations: 3.938 kB / 0.5649 GB, free: 14.41 MB / 414.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.334e-05/0.391, allocations: 71.39 kB / 0.5649 GB, free: 14.33 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.134e-05/0.391, allocations: 29.7 kB / 0.565 GB, free: 14.29 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.088e-06/0.391, allocations: 4.094 kB / 0.565 GB, free: 14.29 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.14e-05/0.391, allocations: 0 / 0.565 GB, free: 14.29 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.538e-05/0.391, allocations: 4 kB / 0.565 GB, free: 14.29 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.389e-06/0.391, allocations: 0 / 0.565 GB, free: 14.29 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.441e-05/0.391, allocations: 0 / 0.565 GB, free: 14.29 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.982e-06/0.391, allocations: 0 / 0.565 GB, free: 14.29 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.0001077/0.3912, allocations: 143.5 kB / 0.5651 GB, free: 14.13 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.168e-05/0.3912, allocations: 7.875 kB / 0.5651 GB, free: 14.12 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.459e-05/0.3912, allocations: 7.109 kB / 0.5651 GB, free: 14.12 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.092e-06/0.3912, allocations: 4 kB / 0.5651 GB, free: 14.11 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.3912, allocations: 0 / 0.5651 GB, free: 14.11 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.558e-06/0.3912, allocations: 4 kB / 0.5651 GB, free: 14.11 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002757/0.3915, allocations: 304.2 kB / 0.5654 GB, free: 13.75 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.3915, allocations: 0 / 0.5654 GB, free: 13.75 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.396e-06/0.3915, allocations: 0 / 0.5654 GB, free: 13.75 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.3915, allocations: 0 / 0.5654 GB, free: 13.75 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.735e-05/0.3915, allocations: 4 kB / 0.5654 GB, free: 13.75 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.32e-07/0.3915, allocations: 0 / 0.5654 GB, free: 13.75 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.92e-07/0.3915, allocations: 0 / 0.5654 GB, free: 13.75 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001323/0.3916, allocations: 177.2 kB / 0.5656 GB, free: 13.55 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.948e-05/0.3917, allocations: 77.11 kB / 0.5657 GB, free: 13.46 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.208e-05/0.3917, allocations: 7.984 kB / 0.5657 GB, free: 13.45 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.721e-05/0.3917, allocations: 0 / 0.5657 GB, free: 13.45 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.566e-05/0.3917, allocations: 0 / 0.5657 GB, free: 13.45 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.889e-06/0.3917, allocations: 7.938 kB / 0.5657 GB, free: 13.44 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.142e-05/0.3918, allocations: 79.31 kB / 0.5658 GB, free: 13.36 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3918, allocations: 4.031 kB / 0.5658 GB, free: 13.36 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004579/0.3922, allocations: 163.3 kB / 0.5659 GB, free: 13.2 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.001133/0.3934, allocations: 0.9565 MB / 0.5668 GB, free: 12.21 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001164/0.3935, allocations: 63.39 kB / 0.5669 GB, free: 12.14 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.3935, allocations: 0 / 0.5669 GB, free: 12.14 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.438e-05/0.3936, allocations: 59.41 kB / 0.567 GB, free: 12.07 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001862/0.3937, allocations: 0 / 0.567 GB, free: 12.07 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001085/0.3948, allocations: 1.222 MB / 0.5682 GB, free: 10.76 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003341/0.3952, allocations: 0.6768 MB / 0.5688 GB, free: 10.06 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 1.098e-05/0.3952, allocations: 3.938 kB / 0.5688 GB, free: 10.05 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.985e-05/0.3952, allocations: 7.438 kB / 0.5688 GB, free: 10.05 MB / 414.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3952, allocations: 0 / 0.5688 GB, free: 10.05 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02707/0.4223, allocations: 4.623 MB / 0.5733 GB, free: 5.484 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.188/8.61, allocations: 7.547 kB / 0.5734 GB, free: 5.48 MB / 414.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestTruncatedDistributions.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestTruncatedDistributions_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_Random_TestTruncatedDistributions.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.392911617003847] Failed to read output from testmodel.py, exit status != 0: ['time', 'result'] 8.679622224008199 8.694613714 8.302777747 Calling exit ...