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.001249/0.001249, allocations: 104.1 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.001274/0.001274, 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.468/1.468, allocations: 227.4 MB / 246.8 MB, free: 10.5 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.2495/0.2495, allocations: 46.11 MB / 344.2 MB, free: 11.54 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.003397/0.003397, allocations: 80.84 kB / 417.8 MB, free: 19.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1428/0.1462, allocations: 62.45 MB / 480.2 MB, free: 5.117 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.00206/0.1483, allocations: 0.4996 MB / 480.7 MB, free: 4.613 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003882/0.1522, allocations: 2.1 MB / 482.8 MB, free: 2.492 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.775e-05/0.1523, allocations: 4 kB / 482.8 MB, free: 2.488 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.719e-05/0.1524, allocations: 0 / 482.8 MB, free: 2.488 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.8e-06/0.1524, allocations: 0 / 482.8 MB, free: 2.488 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.00188/0.1543, allocations: 0.497 MB / 483.3 MB, free: 1.992 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.411e-05/0.1543, allocations: 7.984 kB / 483.3 MB, free: 1.984 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.755e-05/0.1544, allocations: 0 / 483.3 MB, free: 1.984 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.018e-05/0.1544, allocations: 4 kB / 483.3 MB, free: 1.98 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.933e-05/0.1544, allocations: 0 / 483.3 MB, free: 1.98 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.456e-06/0.1544, allocations: 4 kB / 483.3 MB, free: 1.977 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001315/0.1558, allocations: 0.62 MB / 483.9 MB, free: 1.355 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.035e-06/0.1558, allocations: 0 / 483.9 MB, free: 1.355 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.921e-05/0.1558, allocations: 0 / 483.9 MB, free: 1.355 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007352/0.1565, allocations: 399.3 kB / 484.3 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.477e-06/0.1566, allocations: 0 / 484.3 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.1566, allocations: 0 / 484.3 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.671e-06/0.1566, allocations: 0 / 484.3 MB, free: 0.9648 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.0005153/0.1571, allocations: 417.4 kB / 484.7 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.37e-05/0.1571, allocations: 12.03 kB / 484.7 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.115e-05/0.1572, allocations: 30.75 kB / 484.8 MB, free: 464 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.68e-05/0.1572, allocations: 0.9375 kB / 484.8 MB, free: 464 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001139/0.1574, allocations: 168.4 kB / 484.9 MB, free: 256 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.191e-05/0.1574, allocations: 4.375 kB / 484.9 MB, free: 252 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.957e-06/0.1574, allocations: 4.375 kB / 485 MB, free: 248 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001083/0.1575, allocations: 41.77 kB / 485 MB, free: 200 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.907e-06/0.1575, allocations: 0 / 485 MB, free: 200 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.318e-06/0.1575, allocations: 0 / 485 MB, free: 200 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.098e-06/0.1576, allocations: 3.938 kB / 485 MB, free: 196 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.358e-05/0.1576, allocations: 0 / 485 MB, free: 196 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002904/0.1579, allocations: 228.9 kB / 485.2 MB, free: 15.92 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.072e-05/0.158, allocations: 34.61 kB / 485.3 MB, free: 15.88 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.701e-05/0.158, allocations: 12.84 kB / 485.3 MB, free: 15.86 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.137e-06/0.158, allocations: 0 / 485.3 MB, free: 15.86 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.273e-05/0.1581, allocations: 60.27 kB / 485.3 MB, free: 15.79 MB / 366.1 MB Notification: Performance of pre-optimization done (n=2): time 1.483e-06/0.1581, allocations: 0 / 485.3 MB, free: 15.79 MB / 366.1 MB Notification: Performance of matching and sorting (n=2): time 0.000213/0.1583, allocations: 67.39 kB / 485.4 MB, free: 15.71 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.398e-05/0.1584, allocations: 85.23 kB / 485.5 MB, free: 15.61 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.522e-05/0.1584, allocations: 89.86 kB / 485.6 MB, free: 15.51 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.738e-05/0.1585, allocations: 25.7 kB / 485.6 MB, free: 15.48 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.255e-05/0.1585, allocations: 80.14 kB / 485.7 MB, free: 15.39 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.009e-05/0.1585, allocations: 11.84 kB / 485.7 MB, free: 15.38 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.403e-05/0.1586, allocations: 9.719 kB / 485.7 MB, free: 15.37 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001521/0.1587, allocations: 318.8 kB / 486 MB, free: 15.05 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.165e-05/0.1588, allocations: 0 / 486 MB, free: 15.05 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.357e-06/0.1588, allocations: 4 kB / 486 MB, free: 15.04 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.583e-05/0.1588, allocations: 72.19 kB / 486.1 MB, free: 14.96 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/0.1589, allocations: 3.938 kB / 486.1 MB, free: 14.95 MB / 366.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.932e-05/0.1589, allocations: 63.41 kB / 486.1 MB, free: 14.88 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.67e-05/0.159, allocations: 33.7 kB / 486.2 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.505e-06/0.159, allocations: 3.984 kB / 486.2 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.267e-05/0.159, allocations: 0 / 486.2 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.802e-05/0.1591, allocations: 0 / 486.2 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.368e-06/0.1591, allocations: 3.938 kB / 486.2 MB, free: 14.83 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.863e-05/0.1591, allocations: 8.094 kB / 486.2 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.133e-05/0.1591, allocations: 4 kB / 486.2 MB, free: 14.82 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 0.0001056/0.1592, allocations: 139.5 kB / 486.3 MB, free: 14.67 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.457e-05/0.1593, allocations: 0 / 486.3 MB, free: 14.67 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.609e-05/0.1593, allocations: 7.125 kB / 486.3 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.883e-06/0.1593, allocations: 0 / 486.3 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.1593, allocations: 0 / 486.3 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.1593, allocations: 0 / 486.3 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003243/0.1596, allocations: 300.3 kB / 486.6 MB, free: 14.31 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.178e-06/0.1596, allocations: 4 kB / 486.6 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.979e-06/0.1597, allocations: 0 / 486.6 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.314e-06/0.1597, allocations: 0 / 486.6 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.801e-06/0.1597, allocations: 0 / 486.6 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.308e-06/0.1597, allocations: 3.938 kB / 486.6 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.1597, allocations: 0 / 486.6 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001485/0.1598, allocations: 181.1 kB / 486.8 MB, free: 14.1 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.933e-05/0.1599, allocations: 81.05 kB / 486.9 MB, free: 14 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.157e-05/0.1599, allocations: 0 / 486.9 MB, free: 14 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.934e-05/0.1599, allocations: 0 / 486.9 MB, free: 14 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.64e-05/0.16, allocations: 4 kB / 486.9 MB, free: 14 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.51e-06/0.16, allocations: 3.984 kB / 486.9 MB, free: 14 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.235e-05/0.16, allocations: 75.28 kB / 487 MB, free: 13.92 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.16, allocations: 0 / 487 MB, free: 13.92 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004869/0.1605, allocations: 135.9 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.001224/0.1617, allocations: 0.9187 MB / 488 MB, free: 12.84 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000119/0.1619, allocations: 71.44 kB / 488.1 MB, free: 12.76 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.1619, allocations: 0 / 488.1 MB, free: 12.76 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.655e-05/0.1619, allocations: 59.39 kB / 488.1 MB, free: 12.69 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001912/0.1621, allocations: 2.062 kB / 488.2 MB, free: 12.69 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001104/0.1632, allocations: 1.199 MB / 489.4 MB, free: 11.41 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000329/0.1636, allocations: 0.669 MB / 490 MB, free: 10.71 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.037e-05/0.1636, allocations: 0 / 490 MB, free: 10.71 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.267e-05/0.1636, allocations: 11.44 kB / 490 MB, free: 10.7 MB / 366.1 MB Notification: Performance of SimCode: time 2.284e-06/0.1636, allocations: 0 / 490 MB, free: 10.7 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02982/0.1935, allocations: 4.501 MB / 494.5 MB, free: 6.277 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.299/8.492, allocations: 5.016 kB / 494.5 MB, free: 6.273 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 & 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)