Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.Random.TestDistributions,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestDistributions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestDistributions,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestDistributions",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009629/0.0009629, allocations: 96.48 kB / 16.99 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009856/0.0009856, allocations: 180.9 kB / 17.87 MB, free: 5.609 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.349/1.349, allocations: 223.2 MB / 241.8 MB, free: 14.65 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2199/0.2199, allocations: 44.22 MB / 337.1 MB, free: 2.672 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003139/0.0003139, allocations: 11.98 kB / 409.6 MB, free: 27.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1239/0.1243, allocations: 61.92 MB / 471.5 MB, free: 13.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.0005834/0.1249, allocations: 222.9 kB / 471.8 MB, free: 13.41 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002436/0.1273, allocations: 1.933 MB / 473.7 MB, free: 11.46 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.219e-05/0.1274, allocations: 0 / 473.7 MB, free: 11.46 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.326e-05/0.1274, allocations: 0 / 473.7 MB, free: 11.46 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.809e-06/0.1274, allocations: 4 kB / 473.7 MB, free: 11.46 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.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.00112/0.1285, allocations: 409.5 kB / 474.1 MB, free: 11.06 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 2.976e-05/0.1286, allocations: 0 / 474.1 MB, free: 11.06 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.788e-05/0.1286, allocations: 4 kB / 474.1 MB, free: 11.05 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.884e-05/0.1287, allocations: 0 / 474.1 MB, free: 11.05 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.274e-05/0.1287, allocations: 3.938 kB / 474.1 MB, free: 11.05 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.677e-06/0.1287, allocations: 0 / 474.1 MB, free: 11.05 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008519/0.1296, allocations: 0.5968 MB / 474.7 MB, free: 10.45 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.801e-06/0.1296, allocations: 0 / 474.7 MB, free: 10.45 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4e-05/0.1296, allocations: 29.7 kB / 474.7 MB, free: 10.42 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003659/0.13, allocations: 255.5 kB / 475 MB, free: 10.17 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.13, allocations: 0 / 475 MB, free: 10.17 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.13, allocations: 0 / 475 MB, free: 10.17 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.316e-06/0.13, allocations: 0 / 475 MB, free: 10.17 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.0003798/0.1304, allocations: 409.3 kB / 475.4 MB, free: 9.715 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.879e-05/0.1304, allocations: 8.031 kB / 475.4 MB, free: 9.707 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.982e-05/0.1305, allocations: 30.56 kB / 475.4 MB, free: 9.668 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.106e-05/0.1305, allocations: 0 / 475.4 MB, free: 9.668 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.141e-05/0.1306, allocations: 175 kB / 475.6 MB, free: 9.457 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.697e-06/0.1306, allocations: 0 / 475.6 MB, free: 9.457 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.866e-06/0.1306, allocations: 3.953 kB / 475.6 MB, free: 9.453 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.712e-05/0.1307, allocations: 29.7 kB / 475.6 MB, free: 9.418 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.871e-06/0.1307, allocations: 3.938 kB / 475.6 MB, free: 9.414 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.505e-06/0.1308, allocations: 4 kB / 475.6 MB, free: 9.41 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.142e-06/0.1308, allocations: 0 / 475.6 MB, free: 9.41 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.239e-05/0.1308, allocations: 8 kB / 475.6 MB, free: 9.402 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002156/0.131, allocations: 232.9 kB / 475.9 MB, free: 9.125 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.563e-05/0.1311, allocations: 30.5 kB / 475.9 MB, free: 9.086 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.785e-06/0.1311, allocations: 0 / 475.9 MB, free: 9.086 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.239e-05/0.1311, allocations: 56.27 kB / 475.9 MB, free: 9.016 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 8.71e-07/0.1311, allocations: 0 / 475.9 MB, free: 9.016 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001873/0.1313, allocations: 71.45 kB / 476 MB, free: 8.934 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.257e-05/0.1314, allocations: 85.17 kB / 476.1 MB, free: 8.832 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.975e-05/0.1314, allocations: 89.86 kB / 476.2 MB, free: 8.734 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.338e-05/0.1314, allocations: 29.7 kB / 476.2 MB, free: 8.699 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.397e-05/0.1315, allocations: 80.14 kB / 476.3 MB, free: 8.617 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.499e-05/0.1315, allocations: 7.844 kB / 476.3 MB, free: 8.609 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.535e-06/0.1315, allocations: 0 / 476.3 MB, free: 8.609 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001107/0.1316, allocations: 318.8 kB / 476.6 MB, free: 8.289 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.216e-05/0.1316, allocations: 4 kB / 476.6 MB, free: 8.285 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.053e-06/0.1317, allocations: 4 kB / 476.6 MB, free: 8.281 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.792e-05/0.1317, allocations: 29.7 kB / 476.7 MB, free: 8.246 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.1317, allocations: 0 / 476.7 MB, free: 8.246 MB / 350.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 6.715e-05/0.1318, allocations: 71.34 kB / 476.7 MB, free: 8.164 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.782e-05/0.1318, allocations: 33.7 kB / 476.8 MB, free: 8.125 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.887e-06/0.1318, allocations: 0 / 476.8 MB, free: 8.125 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.117e-06/0.1318, allocations: 0 / 476.8 MB, free: 8.125 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.358e-05/0.1318, allocations: 0 / 476.8 MB, free: 8.125 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.308e-06/0.1318, allocations: 0 / 476.8 MB, free: 8.125 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.819e-05/0.1319, allocations: 0 / 476.8 MB, free: 8.125 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.982e-06/0.1319, allocations: 8.031 kB / 476.8 MB, free: 8.117 MB / 350.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 7.897e-05/0.132, allocations: 136.1 kB / 476.9 MB, free: 7.969 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.179e-05/0.132, allocations: 3.953 kB / 476.9 MB, free: 7.965 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.782e-05/0.132, allocations: 15.06 kB / 476.9 MB, free: 7.949 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.395e-06/0.132, allocations: 4 kB / 476.9 MB, free: 7.945 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/0.132, allocations: 0 / 476.9 MB, free: 7.945 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.455e-06/0.132, allocations: 0 / 476.9 MB, free: 7.945 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002194/0.1323, allocations: 296.3 kB / 477.2 MB, free: 7.594 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.1323, allocations: 7.969 kB / 477.2 MB, free: 7.586 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.748e-06/0.1323, allocations: 4 kB / 477.2 MB, free: 7.582 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.403e-06/0.1323, allocations: 0 / 477.2 MB, free: 7.582 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.021e-06/0.1323, allocations: 0 / 477.2 MB, free: 7.582 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.1323, allocations: 0 / 477.2 MB, free: 7.582 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.1323, allocations: 0 / 477.2 MB, free: 7.582 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.964e-05/0.1324, allocations: 173.1 kB / 477.4 MB, free: 7.391 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.566e-05/0.1325, allocations: 81.06 kB / 477.5 MB, free: 7.293 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.468e-05/0.1325, allocations: 12.02 kB / 477.5 MB, free: 7.281 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.708e-05/0.1325, allocations: 0 / 477.5 MB, free: 7.281 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.69e-05/0.1325, allocations: 0 / 477.5 MB, free: 7.281 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.258e-06/0.1326, allocations: 4 kB / 477.5 MB, free: 7.277 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.551e-05/0.1326, allocations: 75.28 kB / 477.6 MB, free: 7.203 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1326, allocations: 0 / 477.6 MB, free: 7.203 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004055/0.133, allocations: 131.9 kB / 477.7 MB, free: 7.074 MB / 350.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.001014/0.134, allocations: 0.905 MB / 478.6 MB, free: 6.145 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.838e-05/0.1341, allocations: 67.39 kB / 478.7 MB, free: 6.066 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.1341, allocations: 4.094 kB / 478.7 MB, free: 6.062 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.58e-05/0.1342, allocations: 55.41 kB / 478.7 MB, free: 5.996 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001154/0.1343, allocations: 7.938 kB / 478.7 MB, free: 5.988 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005005/0.1348, allocations: 348.6 kB / 479.1 MB, free: 5.598 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002235/0.135, allocations: 0.6731 MB / 479.7 MB, free: 4.898 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.226e-05/0.1351, allocations: 8.094 kB / 479.7 MB, free: 4.891 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.648e-05/0.1351, allocations: 7.438 kB / 479.8 MB, free: 4.883 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1351, allocations: 0 / 479.8 MB, free: 4.883 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01486/0.15, allocations: 4.242 MB / 484 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002409/0.1502, allocations: 215.7 kB / 484.2 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.95/2.1, allocations: 3.938 kB / 484.2 MB, free: 0.5195 MB / 350.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestDistributions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestDistributions.fmu > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions_res.mat does not exist to compare? outputFormat=mat