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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001728/0.001728, allocations: 113.2 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002068/0.002068, allocations: 207.8 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.49/1.49, allocations: 227.4 MB / 247 MB, free: 10.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2293/0.2293, allocations: 46.12 MB / 344.4 MB, free: 11.49 MB / 286.1 MB 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.002485/0.002485, allocations: 79.86 kB / 480.9 MB, free: 4.562 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3841/0.3866, allocations: 62.45 MB / 0.5306 GB, free: 13.4 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.001585/0.3882, allocations: 0.5013 MB / 0.5311 GB, free: 13.03 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003199/0.3914, allocations: 2.102 MB / 0.5331 GB, free: 11.37 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.785e-05/0.3915, allocations: 0 / 0.5331 GB, free: 11.37 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.809e-05/0.3915, allocations: 0 / 0.5331 GB, free: 11.37 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.211e-06/0.3915, allocations: 0 / 0.5331 GB, free: 11.37 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.001443/0.393, allocations: 0.4943 MB / 0.5336 GB, free: 11.08 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.888e-05/0.393, allocations: 5.375 kB / 0.5336 GB, free: 11.08 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.04e-05/0.3931, allocations: 1.375 kB / 0.5336 GB, free: 11.08 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.711e-05/0.3931, allocations: 5.359 kB / 0.5336 GB, free: 11.07 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.744e-05/0.3931, allocations: 0 / 0.5336 GB, free: 11.07 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.163e-06/0.3931, allocations: 0 / 0.5336 GB, free: 11.07 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001075/0.3942, allocations: 0.6296 MB / 0.5343 GB, free: 10.72 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.957e-06/0.3942, allocations: 3.938 kB / 0.5343 GB, free: 10.71 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.79e-05/0.3943, allocations: 5.406 kB / 0.5343 GB, free: 10.71 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005876/0.3948, allocations: 379.4 kB / 0.5346 GB, free: 10.48 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.3949, allocations: 1.156 kB / 0.5346 GB, free: 10.48 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.417e-06/0.3949, allocations: 0 / 0.5346 GB, free: 10.48 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.711e-06/0.3949, allocations: 3.938 kB / 0.5346 GB, free: 10.48 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.0005159/0.3954, allocations: 429.6 kB / 0.535 GB, free: 10.03 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.888e-05/0.3954, allocations: 10.19 kB / 0.535 GB, free: 10.03 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.48e-05/0.3955, allocations: 35.77 kB / 0.5351 GB, free: 9.988 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.242e-05/0.3955, allocations: 0.9375 kB / 0.5351 GB, free: 9.988 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001123/0.3957, allocations: 165.5 kB / 0.5352 GB, free: 9.789 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.14e-05/0.3957, allocations: 1.406 kB / 0.5352 GB, free: 9.789 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.233e-06/0.3957, allocations: 1.344 kB / 0.5352 GB, free: 9.789 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001079/0.3958, allocations: 36.94 kB / 0.5353 GB, free: 9.75 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.963e-06/0.3958, allocations: 0 / 0.5353 GB, free: 9.75 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.835e-06/0.3958, allocations: 4.969 kB / 0.5353 GB, free: 9.746 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.3958, allocations: 0 / 0.5353 GB, free: 9.746 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.311e-05/0.3959, allocations: 6.156 kB / 0.5353 GB, free: 9.742 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002589/0.3961, allocations: 232.8 kB / 0.5355 GB, free: 9.469 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.213e-05/0.3962, allocations: 19.77 kB / 0.5355 GB, free: 9.445 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.987e-05/0.3962, allocations: 12.17 kB / 0.5355 GB, free: 9.434 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.083e-05/0.3962, allocations: 5.125 kB / 0.5355 GB, free: 9.43 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.493e-05/0.3963, allocations: 57.23 kB / 0.5356 GB, free: 9.359 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 9.22e-07/0.3963, allocations: 0 / 0.5356 GB, free: 9.359 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001922/0.3965, allocations: 75.86 kB / 0.5357 GB, free: 9.285 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.942e-05/0.3966, allocations: 77.11 kB / 0.5357 GB, free: 9.191 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.537e-05/0.3966, allocations: 91.17 kB / 0.5358 GB, free: 9.094 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.512e-05/0.3967, allocations: 29.64 kB / 0.5359 GB, free: 9.059 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.617e-05/0.3967, allocations: 80.14 kB / 0.5359 GB, free: 8.977 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.441e-05/0.3967, allocations: 13.47 kB / 0.536 GB, free: 8.965 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.142e-05/0.3968, allocations: 16 kB / 0.536 GB, free: 8.945 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000149/0.3969, allocations: 312.2 kB / 0.5363 GB, free: 8.633 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.186e-05/0.3969, allocations: 1.062 kB / 0.5363 GB, free: 8.633 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.295e-06/0.397, allocations: 2.531 kB / 0.5363 GB, free: 8.633 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.975e-05/0.397, allocations: 73.39 kB / 0.5363 GB, free: 8.551 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-06/0.397, allocations: 3.938 kB / 0.5363 GB, free: 8.547 MB / 398.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.15e-05/0.3971, allocations: 72.39 kB / 0.5364 GB, free: 8.473 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.754e-05/0.3972, allocations: 36.48 kB / 0.5364 GB, free: 8.438 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.788e-06/0.3972, allocations: 0 / 0.5364 GB, free: 8.438 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.094e-05/0.3972, allocations: 0 / 0.5364 GB, free: 8.438 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.463e-05/0.3972, allocations: 1.375 kB / 0.5364 GB, free: 8.438 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.778e-06/0.3972, allocations: 0 / 0.5364 GB, free: 8.438 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.6e-05/0.3972, allocations: 1.406 kB / 0.5364 GB, free: 8.438 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.382e-06/0.3973, allocations: 0 / 0.5364 GB, free: 8.438 MB / 398.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.0001039/0.3974, allocations: 141.7 kB / 0.5366 GB, free: 8.285 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.048e-05/0.3974, allocations: 5.219 kB / 0.5366 GB, free: 8.281 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.22e-05/0.3974, allocations: 4.344 kB / 0.5366 GB, free: 8.281 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.192e-06/0.3974, allocations: 0 / 0.5366 GB, free: 8.281 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.3974, allocations: 1.312 kB / 0.5366 GB, free: 8.281 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.678e-06/0.3974, allocations: 3.984 kB / 0.5366 GB, free: 8.277 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002819/0.3977, allocations: 301.7 kB / 0.5369 GB, free: 7.934 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.377e-06/0.3977, allocations: 5.141 kB / 0.5369 GB, free: 7.93 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.396e-06/0.3977, allocations: 0 / 0.5369 GB, free: 7.93 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.3977, allocations: 1.094 kB / 0.5369 GB, free: 7.93 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.502e-06/0.3978, allocations: 0 / 0.5369 GB, free: 7.93 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.3978, allocations: 5.156 kB / 0.5369 GB, free: 7.926 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.3978, allocations: 0 / 0.5369 GB, free: 7.926 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001338/0.3979, allocations: 167.3 kB / 0.5371 GB, free: 7.754 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.921e-05/0.398, allocations: 81.05 kB / 0.5371 GB, free: 7.656 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.219e-05/0.398, allocations: 5.281 kB / 0.5371 GB, free: 7.652 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.685e-05/0.398, allocations: 1.531 kB / 0.5371 GB, free: 7.652 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.368e-05/0.3981, allocations: 1.156 kB / 0.5371 GB, free: 7.652 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.899e-06/0.3981, allocations: 4.031 kB / 0.5371 GB, free: 7.648 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.543e-05/0.3981, allocations: 80.22 kB / 0.5372 GB, free: 7.57 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3981, allocations: 0 / 0.5372 GB, free: 7.57 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004399/0.3986, allocations: 136.3 kB / 0.5374 GB, free: 7.527 MB / 398.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.001112/0.3997, allocations: 0.9124 MB / 0.5382 GB, free: 6.727 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001228/0.3998, allocations: 66.88 kB / 0.5383 GB, free: 6.656 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.3998, allocations: 0 / 0.5383 GB, free: 6.656 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.257e-05/0.3999, allocations: 56.66 kB / 0.5384 GB, free: 6.594 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000188/0.4001, allocations: 6.141 kB / 0.5384 GB, free: 6.59 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001062/0.4011, allocations: 1.211 MB / 0.5395 GB, free: 5.352 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003178/0.4015, allocations: 0.6714 MB / 0.5402 GB, free: 4.656 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.042e-05/0.4015, allocations: 0 / 0.5402 GB, free: 4.656 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.048e-05/0.4015, allocations: 9.969 kB / 0.5402 GB, free: 4.648 MB / 398.1 MB Notification: Performance of SimCode: time 2.2e-07/0.4015, allocations: 0 / 0.5402 GB, free: 4.648 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02901/0.4305, allocations: 4.533 MB / 0.5446 GB, free: 2.254 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.118/8.548, allocations: 7 kB / 0.5446 GB, free: 2.25 MB / 398.1 MB (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)