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.001064/0.001065, allocations: 106 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.001225/0.001225, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.351/1.351, allocations: 227.4 MB / 246.8 MB, free: 10.56 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2338/0.2338, allocations: 46.09 MB / 344.1 MB, free: 11.59 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001358/0.001358, allocations: 72.22 kB / 417.7 MB, free: 19.65 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1289/0.1302, allocations: 62.45 MB / 480.1 MB, free: 5.184 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.002296/0.1326, allocations: 0.4915 MB / 480.6 MB, free: 4.691 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003724/0.1363, allocations: 2.1 MB / 482.7 MB, free: 2.57 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.347e-05/0.1364, allocations: 0 / 482.7 MB, free: 2.57 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.324e-05/0.1364, allocations: 0 / 482.7 MB, free: 2.57 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.784e-06/0.1365, allocations: 3.938 kB / 482.7 MB, free: 2.566 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.001873/0.1383, allocations: 0.4987 MB / 483.2 MB, free: 2.066 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.907e-05/0.1384, allocations: 0 / 483.2 MB, free: 2.066 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.375e-05/0.1384, allocations: 4 kB / 483.2 MB, free: 2.062 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.869e-05/0.1385, allocations: 4 kB / 483.2 MB, free: 2.059 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.1e-05/0.1385, allocations: 3.984 kB / 483.2 MB, free: 2.055 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.381e-06/0.1385, allocations: 0 / 483.2 MB, free: 2.055 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001222/0.1397, allocations: 0.6161 MB / 483.9 MB, free: 1.438 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.009e-05/0.1398, allocations: 7.984 kB / 483.9 MB, free: 1.43 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.248e-05/0.1398, allocations: 7.938 kB / 483.9 MB, free: 1.422 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000776/0.1406, allocations: 379.3 kB / 484.2 MB, free: 1.051 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.1406, allocations: 4 kB / 484.2 MB, free: 1.047 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.1406, allocations: 0 / 484.2 MB, free: 1.047 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.063e-05/0.1406, allocations: 0 / 484.2 MB, free: 1.047 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.0005984/0.1412, allocations: 425.4 kB / 484.7 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.768e-05/0.1413, allocations: 8.031 kB / 484.7 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.28e-05/0.1413, allocations: 30.75 kB / 484.7 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.509e-05/0.1414, allocations: 0.9375 kB / 484.7 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001055/0.1415, allocations: 168.3 kB / 484.9 MB, free: 336 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.526e-06/0.1415, allocations: 4.375 kB / 484.9 MB, free: 332 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.08e-05/0.1415, allocations: 384 / 484.9 MB, free: 332 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000104/0.1416, allocations: 37.77 kB / 484.9 MB, free: 288 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.154e-06/0.1416, allocations: 4 kB / 484.9 MB, free: 284 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.787e-06/0.1417, allocations: 0 / 484.9 MB, free: 284 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.787e-06/0.1417, allocations: 0 / 484.9 MB, free: 284 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.267e-05/0.1417, allocations: 4 kB / 484.9 MB, free: 280 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002594/0.142, allocations: 229.2 kB / 485.1 MB, free: 16 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.79e-05/0.142, allocations: 30.45 kB / 485.2 MB, free: 15.96 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.501e-05/0.1421, allocations: 16.91 kB / 485.2 MB, free: 15.94 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.766e-06/0.1421, allocations: 0 / 485.2 MB, free: 15.94 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.362e-05/0.1421, allocations: 60.25 kB / 485.2 MB, free: 15.86 MB / 366.1 MB Notification: Performance of pre-optimization done (n=2): time 1.643e-06/0.1421, allocations: 0 / 485.2 MB, free: 15.86 MB / 366.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002038/0.1424, allocations: 71.39 kB / 485.3 MB, free: 15.78 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.722e-05/0.1424, allocations: 81.05 kB / 485.4 MB, free: 15.68 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.787e-05/0.1425, allocations: 89.86 kB / 485.5 MB, free: 15.59 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.342e-05/0.1425, allocations: 29.7 kB / 485.5 MB, free: 15.55 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.933e-05/0.1425, allocations: 84.27 kB / 485.6 MB, free: 15.46 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.626e-05/0.1426, allocations: 7.906 kB / 485.6 MB, free: 15.46 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.143e-05/0.1426, allocations: 13.72 kB / 485.6 MB, free: 15.44 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001274/0.1427, allocations: 310.8 kB / 485.9 MB, free: 15.12 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.171e-05/0.1428, allocations: 3.938 kB / 485.9 MB, free: 15.12 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.146e-05/0.1428, allocations: 7.984 kB / 485.9 MB, free: 15.11 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.854e-05/0.1428, allocations: 64.27 kB / 486 MB, free: 15.04 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.1428, allocations: 4.062 kB / 486 MB, free: 15.03 MB / 366.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.837e-05/0.1429, allocations: 71.28 kB / 486.1 MB, free: 14.95 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.92e-05/0.143, allocations: 37.69 kB / 486.1 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.102e-06/0.143, allocations: 0 / 486.1 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.686e-05/0.143, allocations: 4 kB / 486.1 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.742e-05/0.1431, allocations: 0 / 486.1 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.943e-06/0.1431, allocations: 3.984 kB / 486.1 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.852e-05/0.1431, allocations: 4 kB / 486.1 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.873e-06/0.1431, allocations: 0 / 486.1 MB, free: 14.89 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.556e-05/0.1432, allocations: 139.5 kB / 486.2 MB, free: 14.74 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.596e-05/0.1432, allocations: 7.984 kB / 486.3 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.957e-05/0.1433, allocations: 7.125 kB / 486.3 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.492e-06/0.1433, allocations: 0 / 486.3 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.1433, allocations: 0 / 486.3 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.47e-06/0.1433, allocations: 3.984 kB / 486.3 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002731/0.1436, allocations: 296.3 kB / 486.6 MB, free: 14.38 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.1436, allocations: 3.938 kB / 486.6 MB, free: 14.37 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.849e-06/0.1436, allocations: 0 / 486.6 MB, free: 14.37 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.896e-06/0.1436, allocations: 4.031 kB / 486.6 MB, free: 14.37 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.804e-06/0.1436, allocations: 0 / 486.6 MB, free: 14.37 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.1436, allocations: 3.938 kB / 486.6 MB, free: 14.36 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.1436, allocations: 0 / 486.6 MB, free: 14.36 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001435/0.1438, allocations: 173.1 kB / 486.7 MB, free: 14.17 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.055e-05/0.1438, allocations: 77.11 kB / 486.8 MB, free: 14.08 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.467e-05/0.1438, allocations: 0 / 486.8 MB, free: 14.08 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.919e-05/0.1439, allocations: 8 kB / 486.8 MB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.003e-05/0.1439, allocations: 8.016 kB / 486.8 MB, free: 14.06 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.196e-06/0.1439, allocations: 0 / 486.8 MB, free: 14.06 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.259e-05/0.144, allocations: 75.28 kB / 486.9 MB, free: 13.99 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.144, allocations: 0 / 486.9 MB, free: 13.99 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005372/0.1445, allocations: 127.9 kB / 487 MB, free: 13.86 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.001297/0.1458, allocations: 0.9214 MB / 487.9 MB, free: 12.91 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001319/0.146, allocations: 63.39 kB / 488 MB, free: 12.84 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.146, allocations: 0 / 488 MB, free: 12.84 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 5.932e-05/0.146, allocations: 63.34 kB / 488.1 MB, free: 12.77 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002125/0.1463, allocations: 4.125 kB / 488.1 MB, free: 12.76 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001126/0.1474, allocations: 1.195 MB / 489.3 MB, free: 11.48 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002945/0.1477, allocations: 0.669 MB / 489.9 MB, free: 10.79 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.294e-05/0.1477, allocations: 0 / 489.9 MB, free: 10.79 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.954e-05/0.1478, allocations: 15.38 kB / 490 MB, free: 10.77 MB / 366.1 MB Notification: Performance of SimCode: time 5.01e-07/0.1478, allocations: 0 / 490 MB, free: 10.77 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02413/0.1719, allocations: 4.487 MB / 494.4 MB, free: 6.352 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.403/7.575, allocations: 7.688 kB / 494.4 MB, free: 6.348 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/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) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestDistributions/TestDistributions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches