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.001613/0.001613, allocations: 104.9 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001874/0.001874, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.507/1.507, allocations: 227.4 MB / 246.8 MB, free: 10.52 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.2413/0.2413, allocations: 46.12 MB / 344.2 MB, free: 11.53 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.002361/0.002362, allocations: 78.5 kB / 417.8 MB, free: 19.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1441/0.1465, allocations: 62.44 MB / 480.2 MB, free: 5.117 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.001686/0.1482, allocations: 0.4949 MB / 480.7 MB, free: 4.621 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002949/0.1511, allocations: 2.104 MB / 482.8 MB, free: 2.496 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.989e-05/0.1512, allocations: 0 / 482.8 MB, free: 2.496 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.623e-05/0.1512, allocations: 0 / 482.8 MB, free: 2.496 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.929e-06/0.1512, allocations: 0 / 482.8 MB, free: 2.496 MB / 350.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.001375/0.1526, allocations: 0.4986 MB / 483.3 MB, free: 1.996 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.587e-05/0.1526, allocations: 3.984 kB / 483.3 MB, free: 1.992 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.497e-05/0.1527, allocations: 7.984 kB / 483.3 MB, free: 1.984 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.165e-05/0.1527, allocations: 0 / 483.3 MB, free: 1.984 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.286e-05/0.1527, allocations: 0 / 483.3 MB, free: 1.984 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.738e-06/0.1527, allocations: 0 / 483.3 MB, free: 1.984 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009952/0.1537, allocations: 0.6162 MB / 483.9 MB, free: 1.367 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.25e-06/0.1537, allocations: 3.938 kB / 483.9 MB, free: 1.363 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.407e-05/0.1538, allocations: 8 kB / 483.9 MB, free: 1.355 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005533/0.1543, allocations: 391.3 kB / 484.3 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.1543, allocations: 0 / 484.3 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.011e-06/0.1543, allocations: 0 / 484.3 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.208e-06/0.1543, allocations: 0 / 484.3 MB, free: 0.9727 MB / 350.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.0004493/0.1548, allocations: 429.4 kB / 484.7 MB, free: 0.5 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.397e-05/0.1548, allocations: 8.031 kB / 484.7 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.569e-05/0.1549, allocations: 30.75 kB / 484.8 MB, free: 464 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.113e-05/0.1549, allocations: 0.9375 kB / 484.8 MB, free: 464 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000108/0.155, allocations: 164.4 kB / 484.9 MB, free: 260 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.995e-06/0.1551, allocations: 384 / 484.9 MB, free: 260 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.581e-06/0.1551, allocations: 384 / 484.9 MB, free: 260 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.673e-05/0.1552, allocations: 41.81 kB / 485 MB, free: 212 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.917e-06/0.1552, allocations: 3.938 kB / 485 MB, free: 208 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.292e-06/0.1552, allocations: 0 / 485 MB, free: 208 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.76e-06/0.1552, allocations: 7.984 kB / 485 MB, free: 200 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.134e-05/0.1552, allocations: 4 kB / 485 MB, free: 196 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002537/0.1555, allocations: 232.9 kB / 485.2 MB, free: 15.91 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.86e-05/0.1555, allocations: 18.58 kB / 485.2 MB, free: 15.89 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.341e-05/0.1556, allocations: 12.92 kB / 485.3 MB, free: 15.87 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.436e-06/0.1556, allocations: 0 / 485.3 MB, free: 15.87 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.61e-05/0.1556, allocations: 64.2 kB / 485.3 MB, free: 15.79 MB / 366.1 MB Notification: Performance of pre-optimization done (n=2): time 9.82e-07/0.1556, allocations: 0 / 485.3 MB, free: 15.79 MB / 366.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001681/0.1558, allocations: 71.39 kB / 485.4 MB, free: 15.71 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.275e-05/0.1559, allocations: 77.11 kB / 485.5 MB, free: 15.62 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.229e-05/0.1559, allocations: 93.86 kB / 485.6 MB, free: 15.52 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.364e-05/0.156, allocations: 25.7 kB / 485.6 MB, free: 15.48 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.513e-05/0.156, allocations: 80.14 kB / 485.7 MB, free: 15.4 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.114e-05/0.156, allocations: 12.02 kB / 485.7 MB, free: 15.39 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.932e-05/0.1561, allocations: 13.72 kB / 485.7 MB, free: 15.37 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.00014/0.1562, allocations: 314.8 kB / 486 MB, free: 15.05 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.746e-06/0.1562, allocations: 0 / 486 MB, free: 15.05 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.189e-05/0.1562, allocations: 4 kB / 486 MB, free: 15.05 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.521e-05/0.1563, allocations: 72.14 kB / 486.1 MB, free: 14.96 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.1563, allocations: 3.938 kB / 486.1 MB, free: 14.96 MB / 366.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.196e-05/0.1564, allocations: 71.45 kB / 486.1 MB, free: 14.88 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.605e-05/0.1564, allocations: 29.7 kB / 486.2 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.817e-06/0.1565, allocations: 0 / 486.2 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.648e-06/0.1565, allocations: 0 / 486.2 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.115e-05/0.1565, allocations: 0 / 486.2 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.038e-06/0.1565, allocations: 0 / 486.2 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.653e-05/0.1565, allocations: 4 kB / 486.2 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.163e-06/0.1565, allocations: 4 kB / 486.2 MB, free: 14.84 MB / 366.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.446e-05/0.1566, allocations: 143.5 kB / 486.3 MB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.227e-05/0.1567, allocations: 4 kB / 486.3 MB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.264e-05/0.1567, allocations: 7.156 kB / 486.3 MB, free: 14.67 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.132e-06/0.1567, allocations: 3.938 kB / 486.3 MB, free: 14.67 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/0.1567, allocations: 3.938 kB / 486.3 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.365e-06/0.1567, allocations: 0 / 486.3 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002872/0.157, allocations: 300.3 kB / 486.6 MB, free: 14.31 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.157, allocations: 0 / 486.6 MB, free: 14.31 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.416e-06/0.157, allocations: 0 / 486.6 MB, free: 14.31 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.263e-06/0.157, allocations: 0 / 486.6 MB, free: 14.31 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.871e-06/0.157, allocations: 0 / 486.6 MB, free: 14.31 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.041e-06/0.157, allocations: 4.031 kB / 486.6 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.157, allocations: 4 kB / 486.6 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000139/0.1572, allocations: 177 kB / 486.8 MB, free: 14.11 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.352e-05/0.1572, allocations: 77.11 kB / 486.9 MB, free: 14.01 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.138e-05/0.1572, allocations: 0 / 486.9 MB, free: 14.01 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.231e-05/0.1573, allocations: 4 kB / 486.9 MB, free: 14.01 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.129e-05/0.1573, allocations: 0 / 486.9 MB, free: 14.01 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.745e-06/0.1573, allocations: 4.031 kB / 486.9 MB, free: 14 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.206e-05/0.1574, allocations: 75.28 kB / 487 MB, free: 13.93 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1574, allocations: 0 / 487 MB, free: 13.93 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004397/0.1578, allocations: 143.8 kB / 487.1 MB, free: 13.79 MB / 366.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.001115/0.1589, allocations: 0.917 MB / 488 MB, free: 12.85 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001091/0.1591, allocations: 63.41 kB / 488.1 MB, free: 12.77 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.013e-06/0.1591, allocations: 0 / 488.1 MB, free: 12.77 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.701e-05/0.1591, allocations: 55.41 kB / 488.1 MB, free: 12.71 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001845/0.1593, allocations: 10.05 kB / 488.1 MB, free: 12.7 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001047/0.1604, allocations: 1.203 MB / 489.4 MB, free: 11.41 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002931/0.1607, allocations: 0.669 MB / 490 MB, free: 10.71 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.538e-06/0.1607, allocations: 4 kB / 490 MB, free: 10.71 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.589e-05/0.1607, allocations: 7.438 kB / 490 MB, free: 10.71 MB / 366.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1607, allocations: 0 / 490 MB, free: 10.71 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02776/0.1885, allocations: 4.501 MB / 494.5 MB, free: 6.281 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.211/8.4, allocations: 5.141 kB / 494.5 MB, free: 6.277 MB / 366.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)