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.001652/0.001658, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001605/0.001605, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.461/1.461, allocations: 227.4 MB / 247 MB, free: 10.44 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.2399/0.2399, allocations: 46.12 MB / 344.4 MB, free: 11.45 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.002795/0.002795, allocations: 83.86 kB / 480.9 MB, free: 4.508 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3817/0.3845, allocations: 62.45 MB / 0.5306 GB, free: 13.24 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.001666/0.3862, allocations: 0.5014 MB / 0.5311 GB, free: 12.87 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003424/0.3896, allocations: 2.094 MB / 0.5331 GB, free: 11.22 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.915e-05/0.3897, allocations: 0 / 0.5331 GB, free: 11.22 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.894e-05/0.3897, allocations: 4 kB / 0.5331 GB, free: 11.21 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.803e-06/0.3897, allocations: 0 / 0.5331 GB, free: 11.21 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.001649/0.3914, allocations: 0.491 MB / 0.5336 GB, free: 10.93 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.129e-05/0.3914, allocations: 5.141 kB / 0.5336 GB, free: 10.93 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.536e-05/0.3915, allocations: 1.156 kB / 0.5336 GB, free: 10.93 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.443e-05/0.3915, allocations: 1.125 kB / 0.5336 GB, free: 10.93 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.173e-05/0.3915, allocations: 5.203 kB / 0.5336 GB, free: 10.92 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.101e-06/0.3916, allocations: 0 / 0.5336 GB, free: 10.92 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001127/0.3927, allocations: 0.6283 MB / 0.5342 GB, free: 10.57 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.112e-05/0.3927, allocations: 5.312 kB / 0.5343 GB, free: 10.56 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.721e-05/0.3927, allocations: 0 / 0.5343 GB, free: 10.56 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006727/0.3934, allocations: 384.6 kB / 0.5346 GB, free: 10.33 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.3934, allocations: 4 kB / 0.5346 GB, free: 10.33 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3934, allocations: 0 / 0.5346 GB, free: 10.33 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.105e-05/0.3935, allocations: 1.375 kB / 0.5346 GB, free: 10.33 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.0005377/0.394, allocations: 425 kB / 0.535 GB, free: 9.883 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.264e-05/0.394, allocations: 9.625 kB / 0.535 GB, free: 9.883 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.483e-05/0.3941, allocations: 36.08 kB / 0.5351 GB, free: 9.84 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.693e-05/0.3941, allocations: 0.9375 kB / 0.5351 GB, free: 9.84 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001137/0.3943, allocations: 165.8 kB / 0.5352 GB, free: 9.641 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.179e-05/0.3943, allocations: 384 / 0.5352 GB, free: 9.641 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.975e-06/0.3943, allocations: 1.75 kB / 0.5352 GB, free: 9.641 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001028/0.3944, allocations: 41.95 kB / 0.5353 GB, free: 9.598 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.476e-06/0.3944, allocations: 0 / 0.5353 GB, free: 9.598 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.043e-06/0.3944, allocations: 0 / 0.5353 GB, free: 9.598 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.05e-06/0.3944, allocations: 1.375 kB / 0.5353 GB, free: 9.598 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.613e-05/0.3945, allocations: 5.359 kB / 0.5353 GB, free: 9.594 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002656/0.3947, allocations: 240.9 kB / 0.5355 GB, free: 9.312 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.833e-05/0.3948, allocations: 22.7 kB / 0.5355 GB, free: 9.285 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.467e-05/0.3948, allocations: 12.97 kB / 0.5355 GB, free: 9.273 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.057e-05/0.3948, allocations: 1.375 kB / 0.5355 GB, free: 9.273 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.973e-05/0.3949, allocations: 61.64 kB / 0.5356 GB, free: 9.199 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 1.222e-06/0.3949, allocations: 0 / 0.5356 GB, free: 9.199 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001987/0.3951, allocations: 70.33 kB / 0.5357 GB, free: 9.129 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.515e-05/0.3952, allocations: 82.48 kB / 0.5358 GB, free: 9.031 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.381e-05/0.3953, allocations: 93.98 kB / 0.5358 GB, free: 8.93 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.791e-05/0.3953, allocations: 29.64 kB / 0.5359 GB, free: 8.895 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.522e-05/0.3953, allocations: 85.45 kB / 0.5359 GB, free: 8.809 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.96e-05/0.3954, allocations: 3.953 kB / 0.536 GB, free: 8.805 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.108e-05/0.3954, allocations: 13.25 kB / 0.536 GB, free: 8.789 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001428/0.3955, allocations: 314.8 kB / 0.5363 GB, free: 8.473 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.317e-05/0.3956, allocations: 2.344 kB / 0.5363 GB, free: 8.473 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.01e-05/0.3956, allocations: 5.047 kB / 0.5363 GB, free: 8.469 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.915e-05/0.3956, allocations: 65.95 kB / 0.5363 GB, free: 8.395 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.957e-06/0.3956, allocations: 3.938 kB / 0.5363 GB, free: 8.391 MB / 398.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.434e-05/0.3957, allocations: 69.12 kB / 0.5364 GB, free: 8.32 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.121e-05/0.3958, allocations: 35.12 kB / 0.5364 GB, free: 8.285 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.181e-06/0.3958, allocations: 5.047 kB / 0.5364 GB, free: 8.281 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.149e-05/0.3958, allocations: 0 / 0.5364 GB, free: 8.281 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.481e-05/0.3958, allocations: 1.156 kB / 0.5364 GB, free: 8.281 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.58e-06/0.3958, allocations: 0 / 0.5364 GB, free: 8.281 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.014e-05/0.3959, allocations: 4.969 kB / 0.5365 GB, free: 8.277 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.334e-06/0.3959, allocations: 5.188 kB / 0.5365 GB, free: 8.273 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.0001058/0.396, allocations: 141.6 kB / 0.5366 GB, free: 8.121 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.388e-05/0.396, allocations: 1.094 kB / 0.5366 GB, free: 8.121 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.549e-05/0.396, allocations: 3.125 kB / 0.5366 GB, free: 8.121 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.503e-06/0.3961, allocations: 1.094 kB / 0.5366 GB, free: 8.121 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.3961, allocations: 0 / 0.5366 GB, free: 8.121 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.772e-06/0.3961, allocations: 5.109 kB / 0.5366 GB, free: 8.117 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003163/0.3964, allocations: 298 kB / 0.5369 GB, free: 7.777 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.3964, allocations: 4.031 kB / 0.5369 GB, free: 7.773 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.497e-06/0.3964, allocations: 1.125 kB / 0.5369 GB, free: 7.773 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-06/0.3964, allocations: 0 / 0.5369 GB, free: 7.773 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.733e-06/0.3964, allocations: 1.094 kB / 0.5369 GB, free: 7.773 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.884e-06/0.3965, allocations: 0.9688 kB / 0.5369 GB, free: 7.773 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.3965, allocations: 0 / 0.5369 GB, free: 7.773 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001552/0.3966, allocations: 171.4 kB / 0.5371 GB, free: 7.598 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.367e-05/0.3967, allocations: 81.05 kB / 0.5371 GB, free: 7.5 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.599e-05/0.3967, allocations: 5.125 kB / 0.5371 GB, free: 7.496 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.978e-05/0.3967, allocations: 5.156 kB / 0.5371 GB, free: 7.492 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.12e-05/0.3968, allocations: 5.391 kB / 0.5371 GB, free: 7.488 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.821e-06/0.3968, allocations: 1.312 kB / 0.5371 GB, free: 7.488 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.121e-05/0.3968, allocations: 79.22 kB / 0.5372 GB, free: 7.41 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3968, allocations: 0 / 0.5372 GB, free: 7.41 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005093/0.3973, allocations: 131.8 kB / 0.5373 GB, free: 7.371 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.001233/0.3986, allocations: 0.9127 MB / 0.5382 GB, free: 6.57 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001436/0.3987, allocations: 71.33 kB / 0.5383 GB, free: 6.496 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.3988, allocations: 4.094 kB / 0.5383 GB, free: 6.492 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.38e-05/0.3988, allocations: 55.94 kB / 0.5384 GB, free: 6.43 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001885/0.399, allocations: 2.219 kB / 0.5384 GB, free: 6.43 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001071/0.4001, allocations: 1.207 MB / 0.5395 GB, free: 5.195 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003322/0.4004, allocations: 0.6711 MB / 0.5402 GB, free: 4.5 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.297e-05/0.4004, allocations: 3.984 kB / 0.5402 GB, free: 4.496 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.449e-05/0.4005, allocations: 10.22 kB / 0.5402 GB, free: 4.488 MB / 398.1 MB Notification: Performance of SimCode: time 2.2e-07/0.4005, allocations: 0 / 0.5402 GB, free: 4.488 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03098/0.4315, allocations: 4.534 MB / 0.5446 GB, free: 2.098 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.067/8.499, allocations: 6.625 kB / 0.5446 GB, free: 2.098 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestDistributions_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_Random_TestDistributions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_Random_TestDistributions.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestDistributions.pipe 2>&1)