Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestDistributions.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.001345/0.001345, allocations: 110.2 kB / 20.22 MB, free: 1.785 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.001339/0.001339, allocations: 214.9 kB / 23.48 MB, free: 4.754 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.469/1.469, allocations: 230.2 MB / 256.8 MB, free: 8.578 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.2228/0.2228, allocations: 46.89 MB / 360 MB, free: 4.73 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.TestDistributions,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_Random_TestDistributions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestDistributions,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_Random_TestDistributions",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.002255/0.002255, allocations: 87.86 kB / 0.4951 GB, free: 8.551 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3637/0.3659, allocations: 65.99 MB / 0.5595 GB, free: 4.992 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.001631/0.3675, allocations: 0.4917 MB / 0.56 GB, free: 4.504 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002995/0.3705, allocations: 2.14 MB / 0.5621 GB, free: 2.344 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.443e-05/0.3706, allocations: 0 / 0.5621 GB, free: 2.344 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.693e-05/0.3706, allocations: 0 / 0.5621 GB, free: 2.344 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.891e-06/0.3706, allocations: 0 / 0.5621 GB, free: 2.344 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/Math.mo:1013:5-1096:22:writable] Warning: Pure function 'ModelicaTest.Math.Random.distributions' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.001376/0.372, allocations: 0.502 MB / 0.5626 GB, free: 1.844 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.552e-05/0.372, allocations: 0 / 0.5626 GB, free: 1.844 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.916e-05/0.372, allocations: 4 kB / 0.5626 GB, free: 1.84 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.277e-05/0.372, allocations: 4 kB / 0.5626 GB, free: 1.836 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.831e-05/0.3721, allocations: 3.938 kB / 0.5626 GB, free: 1.832 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.962e-06/0.3721, allocations: 0 / 0.5626 GB, free: 1.832 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001108/0.3732, allocations: 0.6745 MB / 0.5633 GB, free: 1.156 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.024e-06/0.3732, allocations: 0 / 0.5633 GB, free: 1.156 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.63e-05/0.3732, allocations: 0 / 0.5633 GB, free: 1.156 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005852/0.3738, allocations: 396.9 kB / 0.5636 GB, free: 0.7695 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.3738, allocations: 0 / 0.5636 GB, free: 0.7695 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.3738, allocations: 4 kB / 0.5636 GB, free: 0.7656 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.61e-06/0.3738, allocations: 3.938 kB / 0.5636 GB, free: 0.7617 MB / 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.0004775/0.3743, allocations: 416.5 kB / 0.564 GB, free: 308 kB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.14e-05/0.3743, allocations: 8.031 kB / 0.564 GB, free: 300 kB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.779e-05/0.3744, allocations: 38.7 kB / 0.5641 GB, free: 252 kB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.548e-05/0.3744, allocations: 4.938 kB / 0.5641 GB, free: 248 kB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001286/0.3745, allocations: 160.4 kB / 0.5642 GB, free: 48 kB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.677e-06/0.3745, allocations: 384 / 0.5642 GB, free: 48 kB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.222e-05/0.3746, allocations: 384 / 0.5642 GB, free: 48 kB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001131/0.3747, allocations: 41.81 kB / 0.5643 GB, free: 0 / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.077e-06/0.3747, allocations: 0 / 0.5643 GB, free: 0 / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.995e-06/0.3747, allocations: 0 / 0.5643 GB, free: 0 / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.067e-06/0.3747, allocations: 4.047 kB / 0.5643 GB, free: 15.99 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.619e-05/0.3747, allocations: 3.938 kB / 0.5643 GB, free: 15.99 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002576/0.375, allocations: 236.8 kB / 0.5645 GB, free: 15.71 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.556e-05/0.375, allocations: 22.61 kB / 0.5645 GB, free: 15.68 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.851e-05/0.3751, allocations: 8.922 kB / 0.5645 GB, free: 15.67 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.688e-06/0.3751, allocations: 0 / 0.5645 GB, free: 15.67 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.126e-05/0.3751, allocations: 64.19 kB / 0.5646 GB, free: 15.59 MB / 414.1 MB Notification: Performance of pre-optimization done (n=2): time 7.51e-07/0.3751, allocations: 0 / 0.5646 GB, free: 15.59 MB / 414.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001983/0.3753, allocations: 75.34 kB / 0.5647 GB, free: 15.5 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.909e-05/0.3754, allocations: 81.11 kB / 0.5648 GB, free: 15.41 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.736e-05/0.3754, allocations: 89.86 kB / 0.5648 GB, free: 15.31 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.639e-05/0.3754, allocations: 29.7 kB / 0.5649 GB, free: 15.27 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.117e-05/0.3755, allocations: 84.12 kB / 0.5649 GB, free: 15.19 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.253e-05/0.3755, allocations: 7.891 kB / 0.565 GB, free: 15.18 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.816e-05/0.3755, allocations: 13.72 kB / 0.565 GB, free: 15.16 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001516/0.3757, allocations: 315 kB / 0.5653 GB, free: 14.84 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.135e-05/0.3757, allocations: 0 / 0.5653 GB, free: 14.84 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.094e-05/0.3757, allocations: 8 kB / 0.5653 GB, free: 14.84 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.731e-05/0.3758, allocations: 64.2 kB / 0.5653 GB, free: 14.76 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/0.3758, allocations: 3.938 kB / 0.5653 GB, free: 14.75 MB / 414.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.85e-05/0.3759, allocations: 71.39 kB / 0.5654 GB, free: 14.67 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.152e-05/0.3759, allocations: 29.7 kB / 0.5654 GB, free: 14.64 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.948e-06/0.3759, allocations: 0 / 0.5654 GB, free: 14.64 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.202e-05/0.3759, allocations: 0 / 0.5654 GB, free: 14.64 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.499e-05/0.3759, allocations: 4.094 kB / 0.5654 GB, free: 14.63 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.243e-06/0.3759, allocations: 4 kB / 0.5654 GB, free: 14.63 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.525e-05/0.3759, allocations: 0 / 0.5654 GB, free: 14.63 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.486e-06/0.376, allocations: 3.984 kB / 0.5654 GB, free: 14.62 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 9.877e-05/0.3761, allocations: 139.5 kB / 0.5656 GB, free: 14.47 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.324e-05/0.3761, allocations: 4 kB / 0.5656 GB, free: 14.47 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.356e-05/0.3761, allocations: 3.125 kB / 0.5656 GB, free: 14.46 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.272e-06/0.3761, allocations: 0 / 0.5656 GB, free: 14.46 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.3761, allocations: 4 kB / 0.5656 GB, free: 14.46 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.127e-06/0.3761, allocations: 7.984 kB / 0.5656 GB, free: 14.45 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002792/0.3764, allocations: 304.2 kB / 0.5659 GB, free: 14.09 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.3764, allocations: 0 / 0.5659 GB, free: 14.09 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.426e-06/0.3764, allocations: 0 / 0.5659 GB, free: 14.09 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.442e-06/0.3764, allocations: 0 / 0.5659 GB, free: 14.09 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.581e-06/0.3764, allocations: 0 / 0.5659 GB, free: 14.09 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.467e-06/0.3764, allocations: 4 kB / 0.5659 GB, free: 14.09 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.3764, allocations: 0 / 0.5659 GB, free: 14.09 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001406/0.3765, allocations: 177.2 kB / 0.5661 GB, free: 13.89 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.241e-05/0.3766, allocations: 84.98 kB / 0.5661 GB, free: 13.79 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.475e-05/0.3766, allocations: 4 kB / 0.5661 GB, free: 13.79 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.118e-05/0.3766, allocations: 0 / 0.5661 GB, free: 13.79 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.845e-05/0.3767, allocations: 0 / 0.5661 GB, free: 13.79 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.785e-06/0.3767, allocations: 0 / 0.5661 GB, free: 13.79 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.935e-05/0.3767, allocations: 75.28 kB / 0.5662 GB, free: 13.71 MB / 414.1 MB Notification: Performance of sort global known variables: time 5.1e-08/0.3767, allocations: 0 / 0.5662 GB, free: 13.71 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004434/0.3771, allocations: 139.5 kB / 0.5664 GB, free: 13.58 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.001056/0.3782, allocations: 0.9115 MB / 0.5672 GB, free: 12.64 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001224/0.3783, allocations: 63.34 kB / 0.5673 GB, free: 12.57 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.3783, allocations: 0 / 0.5673 GB, free: 12.57 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.525e-05/0.3784, allocations: 63.39 kB / 0.5674 GB, free: 12.49 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001842/0.3786, allocations: 4 kB / 0.5674 GB, free: 12.49 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001073/0.3796, allocations: 1.211 MB / 0.5685 GB, free: 11.19 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003724/0.38, allocations: 0.6729 MB / 0.5692 GB, free: 10.49 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 1.001e-05/0.38, allocations: 0 / 0.5692 GB, free: 10.49 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.965e-05/0.38, allocations: 11.5 kB / 0.5692 GB, free: 10.48 MB / 414.1 MB Notification: Performance of SimCode: time 3.01e-07/0.38, allocations: 0 / 0.5692 GB, free: 10.48 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02749/0.4075, allocations: 4.519 MB / 0.5736 GB, free: 6.02 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.206/8.614, allocations: 7.438 kB / 0.5736 GB, free: 6.016 MB / 414.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestDistributions.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestDistributions.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestDistributions.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestDistributions.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestDistributions_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_TestDistributions.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestDistributions.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.565972964977846] Failed to read output from testmodel.py, exit status != 0: ['time', 'result'] 8.685775807010941 8.701471984 8.324676168 Calling exit ...