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.001141/0.001141, allocations: 110.5 kB / 17.32 MB, free: 6.008 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.001239/0.001238, allocations: 193.3 kB / 18.25 MB, free: 5.105 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.354/1.354, allocations: 222.9 MB / 241.9 MB, free: 15.44 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.231/0.231, allocations: 44.19 MB / 336.3 MB, free: 2.945 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001478/0.001478, allocations: 68.14 kB / 408 MB, free: 27.51 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1352/0.1367, allocations: 60.82 MB / 468.8 MB, free: 14.65 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.002133/0.1389, allocations: 0.5605 MB / 469.4 MB, free: 14.08 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003476/0.1424, allocations: 2.038 MB / 471.4 MB, free: 12.02 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.157e-05/0.1424, allocations: 0 / 471.4 MB, free: 12.02 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.021e-05/0.1424, allocations: 0 / 471.4 MB, free: 12.02 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.699e-06/0.1425, allocations: 0 / 471.4 MB, free: 12.02 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.002155/0.1447, allocations: 469.5 kB / 471.9 MB, free: 11.57 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.633e-05/0.1447, allocations: 4 kB / 471.9 MB, free: 11.56 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.545e-05/0.1448, allocations: 0 / 471.9 MB, free: 11.56 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.678e-05/0.1448, allocations: 0 / 471.9 MB, free: 11.56 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.969e-05/0.1448, allocations: 0 / 471.9 MB, free: 11.56 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.883e-06/0.1449, allocations: 0 / 471.9 MB, free: 11.56 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001325/0.1462, allocations: 0.6511 MB / 472.5 MB, free: 10.91 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.609e-06/0.1462, allocations: 0 / 472.5 MB, free: 10.91 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.196e-05/0.1462, allocations: 4 kB / 472.5 MB, free: 10.91 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008205/0.1471, allocations: 395.1 kB / 472.9 MB, free: 10.52 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.1471, allocations: 0 / 472.9 MB, free: 10.52 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.003e-06/0.1471, allocations: 0 / 472.9 MB, free: 10.52 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.691e-06/0.1471, allocations: 4 kB / 472.9 MB, free: 10.52 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.0005444/0.1477, allocations: 417.4 kB / 473.3 MB, free: 10.05 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.159e-05/0.1477, allocations: 12.03 kB / 473.3 MB, free: 10.04 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.658e-05/0.1478, allocations: 30.75 kB / 473.4 MB, free: 10 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.72e-05/0.1478, allocations: 0.9375 kB / 473.4 MB, free: 10 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.971e-05/0.1479, allocations: 160.4 kB / 473.5 MB, free: 9.809 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.125e-05/0.1479, allocations: 384 / 473.5 MB, free: 9.809 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.146e-05/0.1479, allocations: 4.375 kB / 473.5 MB, free: 9.805 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001141/0.1481, allocations: 49.75 kB / 473.6 MB, free: 9.75 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.385e-06/0.1481, allocations: 0 / 473.6 MB, free: 9.75 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.995e-06/0.1481, allocations: 0 / 473.6 MB, free: 9.75 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.875e-06/0.1481, allocations: 0 / 473.6 MB, free: 9.75 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.349e-05/0.1481, allocations: 0 / 473.6 MB, free: 9.75 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00026/0.1484, allocations: 232.9 kB / 473.8 MB, free: 9.473 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.362e-05/0.1485, allocations: 26.55 kB / 473.8 MB, free: 9.438 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.723e-05/0.1485, allocations: 16.92 kB / 473.9 MB, free: 9.418 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.015e-05/0.1485, allocations: 0 / 473.9 MB, free: 9.418 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.428e-05/0.1486, allocations: 56.27 kB / 473.9 MB, free: 9.348 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 1.183e-06/0.1486, allocations: 0 / 473.9 MB, free: 9.348 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002017/0.1488, allocations: 71.39 kB / 474 MB, free: 9.266 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.043e-05/0.1488, allocations: 77.11 kB / 474.1 MB, free: 9.172 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.316e-05/0.1489, allocations: 89.86 kB / 474.1 MB, free: 9.074 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.479e-05/0.1489, allocations: 29.83 kB / 474.2 MB, free: 9.039 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.533e-05/0.149, allocations: 80.14 kB / 474.2 MB, free: 8.957 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.977e-05/0.149, allocations: 7.906 kB / 474.3 MB, free: 8.949 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.108e-05/0.149, allocations: 13.7 kB / 474.3 MB, free: 8.93 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001223/0.1491, allocations: 318.8 kB / 474.6 MB, free: 8.609 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.208e-05/0.1492, allocations: 3.938 kB / 474.6 MB, free: 8.605 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.366e-06/0.1492, allocations: 4 kB / 474.6 MB, free: 8.602 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.394e-05/0.1492, allocations: 68.33 kB / 474.7 MB, free: 8.52 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.1493, allocations: 3.938 kB / 474.7 MB, free: 8.516 MB / 350.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.832e-05/0.1493, allocations: 63.39 kB / 474.7 MB, free: 8.441 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.573e-05/0.1494, allocations: 36.2 kB / 474.8 MB, free: 8.402 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.1494, allocations: 0 / 474.8 MB, free: 8.402 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.188e-05/0.1494, allocations: 0 / 474.8 MB, free: 8.402 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.693e-05/0.1494, allocations: 0 / 474.8 MB, free: 8.402 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.195e-06/0.1494, allocations: 3.938 kB / 474.8 MB, free: 8.398 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.986e-05/0.1495, allocations: 3.938 kB / 474.8 MB, free: 8.395 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.568e-06/0.1495, allocations: 7.938 kB / 474.8 MB, free: 8.387 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 ($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.0001141/0.1496, allocations: 151.5 kB / 474.9 MB, free: 8.223 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.471e-05/0.1496, allocations: 0 / 474.9 MB, free: 8.223 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.838e-05/0.1497, allocations: 11.08 kB / 474.9 MB, free: 8.211 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-06/0.1497, allocations: 0 / 474.9 MB, free: 8.211 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.1497, allocations: 0 / 474.9 MB, free: 8.211 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/0.1497, allocations: 0 / 474.9 MB, free: 8.211 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002883/0.15, allocations: 296.3 kB / 475.2 MB, free: 7.859 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.15, allocations: 4 kB / 475.2 MB, free: 7.855 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.27e-06/0.15, allocations: 32 / 475.2 MB, free: 7.855 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.729e-06/0.15, allocations: 7.984 kB / 475.2 MB, free: 7.848 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.578e-06/0.15, allocations: 3.984 kB / 475.2 MB, free: 7.844 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.362e-06/0.15, allocations: 0 / 475.2 MB, free: 7.844 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.447e-06/0.1501, allocations: 0 / 475.2 MB, free: 7.844 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001359/0.1502, allocations: 181 kB / 475.4 MB, free: 7.645 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.666e-05/0.1502, allocations: 77.11 kB / 475.5 MB, free: 7.551 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.364e-05/0.1503, allocations: 0 / 475.5 MB, free: 7.551 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.94e-05/0.1503, allocations: 4.031 kB / 475.5 MB, free: 7.547 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.17e-05/0.1503, allocations: 4 kB / 475.5 MB, free: 7.543 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.086e-06/0.1503, allocations: 0 / 475.5 MB, free: 7.543 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.063e-05/0.1504, allocations: 75.28 kB / 475.6 MB, free: 7.469 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1504, allocations: 0 / 475.6 MB, free: 7.469 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005255/0.1509, allocations: 139.8 kB / 475.7 MB, free: 7.332 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 (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.001278/0.1522, allocations: 0.8978 MB / 476.6 MB, free: 6.414 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001275/0.1523, allocations: 67.39 kB / 476.7 MB, free: 6.336 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.1524, allocations: 0 / 476.7 MB, free: 6.336 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.252e-05/0.1524, allocations: 59.5 kB / 476.7 MB, free: 6.266 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000205/0.1526, allocations: 8 kB / 476.7 MB, free: 6.258 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001087/0.1537, allocations: 1.192 MB / 477.9 MB, free: 4.98 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002927/0.154, allocations: 0.6768 MB / 478.6 MB, free: 4.277 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.245e-05/0.154, allocations: 0 / 478.6 MB, free: 4.277 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.079e-05/0.1541, allocations: 7.438 kB / 478.6 MB, free: 4.27 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1541, allocations: 0 / 478.6 MB, free: 4.27 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01726/0.1713, allocations: 4.338 MB / 482.9 MB, free: 44 kB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002288/0.1716, allocations: 234.2 kB / 483.2 MB, free: 15.79 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.955/2.127, allocations: 0 / 483.2 MB, free: 15.79 MB / 366.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/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) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Math.Random.TestDistributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches