Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_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 trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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_trunk_ModelicaTest_Math_Random_TestDistributions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestDistributions,fileNamePrefix="ModelicaTest_trunk_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.001189/0.001189, allocations: 98.7 kB / 16.99 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001354/0.001354, allocations: 197.7 kB / 17.9 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.395/1.395, allocations: 227.3 MB / 245.9 MB, free: 10.31 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2007/0.2007, allocations: 45.91 MB / 344 MB, free: 12.1 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002374/0.0002374, allocations: 8 kB / 418.1 MB, free: 20.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1367/0.1369, allocations: 63.46 MB / 481.5 MB, free: 5.281 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.0005993/0.1376, allocations: 222.9 kB / 481.7 MB, free: 5.062 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002677/0.1403, allocations: 1.992 MB / 483.7 MB, free: 3.051 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.06e-05/0.1403, allocations: 0 / 483.7 MB, free: 3.051 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.537e-05/0.1403, allocations: 3.938 kB / 483.7 MB, free: 3.047 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.45e-06/0.1404, allocations: 0 / 483.7 MB, free: 3.047 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.001167/0.1415, allocations: 411 kB / 484.1 MB, free: 2.645 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.505e-05/0.1416, allocations: 4 kB / 484.1 MB, free: 2.641 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.959e-05/0.1416, allocations: 0 / 484.1 MB, free: 2.641 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.547e-05/0.1416, allocations: 4 kB / 484.1 MB, free: 2.637 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.874e-05/0.1417, allocations: 3.984 kB / 484.1 MB, free: 2.633 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.382e-06/0.1417, allocations: 0 / 484.1 MB, free: 2.633 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008856/0.1426, allocations: 0.6046 MB / 484.8 MB, free: 2.027 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.264e-06/0.1426, allocations: 0 / 484.8 MB, free: 2.027 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.806e-05/0.1426, allocations: 25.7 kB / 484.8 MB, free: 1.996 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003636/0.143, allocations: 263.5 kB / 485 MB, free: 1.738 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.615e-06/0.143, allocations: 0 / 485 MB, free: 1.738 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.143, allocations: 3.938 kB / 485 MB, free: 1.734 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.039e-06/0.143, allocations: 0 / 485 MB, free: 1.734 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.0004197/0.1435, allocations: 417.3 kB / 485.4 MB, free: 1.273 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.217e-05/0.1435, allocations: 11.97 kB / 485.5 MB, free: 1.262 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.577e-05/0.1436, allocations: 30.56 kB / 485.5 MB, free: 1.223 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.466e-05/0.1436, allocations: 0 / 485.5 MB, free: 1.223 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001113/0.1437, allocations: 167 kB / 485.7 MB, free: 1.02 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.938e-06/0.1437, allocations: 0 / 485.7 MB, free: 1.02 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.705e-06/0.1437, allocations: 0 / 485.7 MB, free: 1.02 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.163e-05/0.1438, allocations: 37.69 kB / 485.7 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.665e-06/0.1438, allocations: 4 kB / 485.7 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.576e-06/0.1439, allocations: 4 kB / 485.7 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.55e-06/0.1439, allocations: 0 / 485.7 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.192e-05/0.1439, allocations: 4 kB / 485.7 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002521/0.1442, allocations: 240.8 kB / 485.9 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.379e-05/0.1442, allocations: 18.58 kB / 486 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.662e-06/0.1442, allocations: 0 / 486 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.104e-05/0.1443, allocations: 60.27 kB / 486 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 1.012e-06/0.1443, allocations: 0 / 486 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001818/0.1445, allocations: 79.38 kB / 486.1 MB, free: 500 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.618e-05/0.1445, allocations: 77.11 kB / 486.2 MB, free: 404 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.788e-05/0.1446, allocations: 89.86 kB / 486.3 MB, free: 304 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.493e-05/0.1446, allocations: 29.7 kB / 486.3 MB, free: 268 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.994e-05/0.1446, allocations: 84.14 kB / 486.4 MB, free: 180 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.736e-05/0.1447, allocations: 3.906 kB / 486.4 MB, free: 176 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.194e-06/0.1447, allocations: 4.125 kB / 486.4 MB, free: 172 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001459/0.1448, allocations: 318.8 kB / 486.7 MB, free: 15.85 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.169e-05/0.1448, allocations: 4 kB / 486.7 MB, free: 15.84 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.454e-06/0.1448, allocations: 4 kB / 486.7 MB, free: 15.84 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.889e-05/0.1449, allocations: 29.7 kB / 486.7 MB, free: 15.8 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.333e-06/0.1449, allocations: 0 / 486.7 MB, free: 15.8 MB / 366.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.057e-05/0.145, allocations: 67.34 kB / 486.8 MB, free: 15.73 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.149e-05/0.145, allocations: 33.69 kB / 486.8 MB, free: 15.69 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.887e-06/0.145, allocations: 8.094 kB / 486.8 MB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.629e-06/0.145, allocations: 0 / 486.8 MB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.421e-05/0.145, allocations: 0 / 486.8 MB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.218e-06/0.1451, allocations: 0 / 486.8 MB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.395e-05/0.1451, allocations: 0 / 486.8 MB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.682e-06/0.1451, allocations: 0 / 486.8 MB, free: 15.68 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 (result,$outputAlias_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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.669e-05/0.1452, allocations: 143.5 kB / 487 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.96e-05/0.1452, allocations: 0 / 487 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.578e-05/0.1452, allocations: 3.125 kB / 487 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.819e-06/0.1452, allocations: 11.92 kB / 487 MB, free: 15.51 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.366e-06/0.1453, allocations: 4 kB / 487 MB, free: 15.51 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.104e-06/0.1453, allocations: 0 / 487 MB, free: 15.51 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002456/0.1455, allocations: 296.3 kB / 487.3 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.1455, allocations: 3.938 kB / 487.3 MB, free: 15.15 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.276e-06/0.1455, allocations: 0 / 487.3 MB, free: 15.15 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.533e-06/0.1455, allocations: 4 kB / 487.3 MB, free: 15.15 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.955e-06/0.1455, allocations: 0 / 487.3 MB, free: 15.15 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.1456, allocations: 3.938 kB / 487.3 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.12e-07/0.1456, allocations: 0 / 487.3 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001221/0.1457, allocations: 177.1 kB / 487.5 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.147e-05/0.1457, allocations: 81.11 kB / 487.5 MB, free: 14.85 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.251e-05/0.1458, allocations: 0 / 487.5 MB, free: 14.85 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.136e-05/0.1458, allocations: 0 / 487.5 MB, free: 14.85 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.795e-05/0.1458, allocations: 3.984 kB / 487.5 MB, free: 14.85 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.198e-06/0.1458, allocations: 4 kB / 487.5 MB, free: 14.84 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.415e-05/0.1459, allocations: 75.28 kB / 487.6 MB, free: 14.77 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1459, allocations: 4.031 kB / 487.6 MB, free: 14.77 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004707/0.1464, allocations: 131.9 kB / 487.8 MB, free: 14.64 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001144/0.1475, allocations: 0.9079 MB / 488.7 MB, free: 13.7 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001116/0.1476, allocations: 67.39 kB / 488.7 MB, free: 13.62 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.1476, allocations: 0 / 488.7 MB, free: 13.62 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.777e-05/0.1477, allocations: 59.34 kB / 488.8 MB, free: 13.55 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001208/0.1478, allocations: 10.28 kB / 488.8 MB, free: 13.55 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000555/0.1484, allocations: 356.6 kB / 489.1 MB, free: 13.15 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002972/0.1487, allocations: 0.6731 MB / 489.8 MB, free: 12.45 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.498e-05/0.1487, allocations: 4 kB / 489.8 MB, free: 12.45 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.831e-05/0.1487, allocations: 7.438 kB / 489.8 MB, free: 12.44 MB / 366.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1487, allocations: 0 / 489.8 MB, free: 12.44 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01713/0.1659, allocations: 4.323 MB / 494.2 MB, free: 8.23 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002298/0.1661, allocations: 222 kB / 494.4 MB, free: 7.988 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.897/2.063, allocations: 3.938 kB / 494.4 MB, free: 7.984 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Math_Random_TestDistributions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Math_Random_TestDistributions.fmu > ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions_res.mat does not exist to compare? outputFormat=mat