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) 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.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001427/0.001427, allocations: 118.8 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001474/0.001474, allocations: 197.2 kB / 18.73 MB, free: 4.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.498/1.498, allocations: 227.4 MB / 247 MB, free: 10.39 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.2378/0.2378, allocations: 46.12 MB / 344.4 MB, free: 11.43 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.002277/0.002277, allocations: 79.88 kB / 480.9 MB, free: 4.496 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3764/0.3787, allocations: 62.44 MB / 0.5306 GB, free: 13.38 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001705/0.3804, allocations: 0.4988 MB / 0.5311 GB, free: 13 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003432/0.3839, allocations: 2.357 MB / 0.5334 GB, free: 11.14 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.638e-05/0.3839, allocations: 1.594 kB / 0.5334 GB, free: 11.14 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.23e-05/0.3839, allocations: 4 kB / 0.5334 GB, free: 11.14 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.382e-06/0.384, allocations: 0 / 0.5334 GB, free: 11.14 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.001659/0.3856, allocations: 0.5722 MB / 0.534 GB, free: 10.8 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.163e-05/0.3857, allocations: 2.75 kB / 0.534 GB, free: 10.8 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.546e-05/0.3857, allocations: 3.984 kB / 0.534 GB, free: 10.8 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.035e-05/0.3858, allocations: 5.375 kB / 0.534 GB, free: 10.79 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.753e-05/0.3858, allocations: 5.312 kB / 0.534 GB, free: 10.79 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.242e-06/0.3858, allocations: 0 / 0.534 GB, free: 10.79 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001244/0.387, allocations: 0.7052 MB / 0.5347 GB, free: 10.39 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.715e-06/0.3871, allocations: 0 / 0.5347 GB, free: 10.39 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.733e-05/0.3871, allocations: 1.344 kB / 0.5347 GB, free: 10.39 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007381/0.3878, allocations: 453.9 kB / 0.5351 GB, free: 10.12 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.3878, allocations: 5.156 kB / 0.5351 GB, free: 10.12 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.304e-06/0.3878, allocations: 0 / 0.5351 GB, free: 10.12 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.331e-06/0.3879, allocations: 0 / 0.5351 GB, free: 10.12 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.0005153/0.3884, allocations: 438.5 kB / 0.5355 GB, free: 9.668 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.49e-05/0.3884, allocations: 9.156 kB / 0.5355 GB, free: 9.668 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.737e-05/0.3885, allocations: 43.78 kB / 0.5356 GB, free: 9.617 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.569e-05/0.3885, allocations: 2.156 kB / 0.5356 GB, free: 9.617 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001279/0.3887, allocations: 164.3 kB / 0.5357 GB, free: 9.418 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.308e-05/0.3887, allocations: 1.5 kB / 0.5357 GB, free: 9.418 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.01e-05/0.3887, allocations: 1.656 kB / 0.5357 GB, free: 9.418 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.951e-05/0.3888, allocations: 40.95 kB / 0.5358 GB, free: 9.375 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.213e-06/0.3888, allocations: 0 / 0.5358 GB, free: 9.375 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.047e-05/0.3888, allocations: 5.047 kB / 0.5358 GB, free: 9.371 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.208e-06/0.3888, allocations: 0 / 0.5358 GB, free: 9.371 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.446e-05/0.3889, allocations: 6.172 kB / 0.5358 GB, free: 9.367 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002566/0.3891, allocations: 228 kB / 0.536 GB, free: 9.098 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.479e-05/0.3892, allocations: 35.72 kB / 0.536 GB, free: 9.059 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.501e-05/0.3892, allocations: 8.734 kB / 0.536 GB, free: 9.051 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.424e-06/0.3893, allocations: 0.8125 kB / 0.536 GB, free: 9.051 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.574e-05/0.3893, allocations: 57.3 kB / 0.5361 GB, free: 8.98 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 1.323e-06/0.3893, allocations: 1.125 kB / 0.5361 GB, free: 8.98 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001892/0.3895, allocations: 74.11 kB / 0.5362 GB, free: 8.906 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.048e-05/0.3896, allocations: 78.33 kB / 0.5362 GB, free: 8.812 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.745e-05/0.3896, allocations: 93.98 kB / 0.5363 GB, free: 8.711 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.542e-05/0.3897, allocations: 27.11 kB / 0.5364 GB, free: 8.68 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.214e-05/0.3897, allocations: 80.14 kB / 0.5364 GB, free: 8.598 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.443e-05/0.3897, allocations: 9.516 kB / 0.5364 GB, free: 8.59 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.889e-05/0.3898, allocations: 12.44 kB / 0.5365 GB, free: 8.574 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001413/0.3899, allocations: 314.8 kB / 0.5368 GB, free: 8.258 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.215e-05/0.3899, allocations: 2.438 kB / 0.5368 GB, free: 8.258 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.113e-06/0.3899, allocations: 1.391 kB / 0.5368 GB, free: 8.258 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.694e-05/0.39, allocations: 69.42 kB / 0.5368 GB, free: 8.18 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.517e-06/0.39, allocations: 8.906 kB / 0.5368 GB, free: 8.172 MB / 398.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000119/0.3901, allocations: 72.52 kB / 0.5369 GB, free: 8.098 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.043e-05/0.3902, allocations: 31.98 kB / 0.5369 GB, free: 8.066 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.3902, allocations: 0 / 0.5369 GB, free: 8.066 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.098e-05/0.3902, allocations: 0 / 0.5369 GB, free: 8.066 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.386e-05/0.3902, allocations: 1.25 kB / 0.5369 GB, free: 8.066 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.642e-06/0.3902, allocations: 0 / 0.5369 GB, free: 8.066 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.565e-05/0.3903, allocations: 1.281 kB / 0.5369 GB, free: 8.066 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.304e-06/0.3903, allocations: 5.562 kB / 0.5369 GB, free: 8.062 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 9.85e-05/0.3904, allocations: 140.6 kB / 0.5371 GB, free: 7.91 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.074e-05/0.3904, allocations: 1.5 kB / 0.5371 GB, free: 7.91 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.509e-05/0.3904, allocations: 7.109 kB / 0.5371 GB, free: 7.906 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.372e-06/0.3904, allocations: 1.344 kB / 0.5371 GB, free: 7.906 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.683e-06/0.3904, allocations: 0 / 0.5371 GB, free: 7.906 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.3905, allocations: 9.344 kB / 0.5371 GB, free: 7.898 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002962/0.3908, allocations: 305.8 kB / 0.5374 GB, free: 7.551 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.3908, allocations: 4.031 kB / 0.5374 GB, free: 7.547 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.677e-06/0.3908, allocations: 1.375 kB / 0.5374 GB, free: 7.547 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.302e-06/0.3908, allocations: 0 / 0.5374 GB, free: 7.547 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.255e-06/0.3908, allocations: 1.375 kB / 0.5374 GB, free: 7.547 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.3908, allocations: 0 / 0.5374 GB, free: 7.547 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.3908, allocations: 0 / 0.5374 GB, free: 7.547 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001311/0.3909, allocations: 171.7 kB / 0.5376 GB, free: 7.371 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.354e-05/0.391, allocations: 78.48 kB / 0.5376 GB, free: 7.277 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.437e-05/0.391, allocations: 9.672 kB / 0.5376 GB, free: 7.27 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.014e-05/0.3911, allocations: 0 / 0.5376 GB, free: 7.27 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.589e-05/0.3911, allocations: 1.562 kB / 0.5376 GB, free: 7.27 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.139e-06/0.3911, allocations: 4 kB / 0.5376 GB, free: 7.266 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.228e-05/0.3911, allocations: 75.28 kB / 0.5377 GB, free: 7.191 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3912, allocations: 1.375 kB / 0.5377 GB, free: 7.191 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005369/0.3917, allocations: 162.6 kB / 0.5379 GB, free: 7.137 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.001239/0.3929, allocations: 0.9462 MB / 0.5388 GB, free: 6.32 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001379/0.3931, allocations: 68.02 kB / 0.5389 GB, free: 6.25 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.499e-06/0.3931, allocations: 4.094 kB / 0.5389 GB, free: 6.246 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.853e-05/0.3932, allocations: 59.62 kB / 0.5389 GB, free: 6.18 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001949/0.3934, allocations: 2.062 kB / 0.5389 GB, free: 6.18 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001093/0.3945, allocations: 1.212 MB / 0.5401 GB, free: 4.945 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003305/0.3948, allocations: 0.6712 MB / 0.5408 GB, free: 4.25 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.182e-05/0.3948, allocations: 1.094 kB / 0.5408 GB, free: 4.25 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.181e-05/0.3948, allocations: 8.469 kB / 0.5408 GB, free: 4.242 MB / 398.1 MB Notification: Performance of SimCode: time 2.1e-07/0.3949, allocations: 0 / 0.5408 GB, free: 4.242 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02725/0.4221, allocations: 4.646 MB / 0.5453 GB, free: 1.801 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.176/8.598, allocations: 9.75 kB / 0.5453 GB, free: 1.793 MB / 398.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestTruncatedDistributions_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_Random_TestTruncatedDistributions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_Random_TestTruncatedDistributions.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1)