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.0009409/0.000941, allocations: 95.34 kB / 17.35 MB, free: 6.344 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.0008182/0.0008184, allocations: 173.8 kB / 18.25 MB, free: 5.504 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.374/1.374, allocations: 223.2 MB / 242.3 MB, free: 14.51 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.2002/0.2002, allocations: 44.24 MB / 337.7 MB, free: 2.445 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002931/0.0002931, allocations: 8 kB / 410.4 MB, free: 27.19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.13/0.1303, allocations: 61.92 MB / 472.3 MB, free: 13.24 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.0006939/0.131, allocations: 226.9 kB / 472.6 MB, free: 13.02 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002826/0.1339, allocations: 2.072 MB / 474.6 MB, free: 10.92 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.027e-06/0.1339, allocations: 0 / 474.6 MB, free: 10.92 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.326e-05/0.1339, allocations: 4 kB / 474.6 MB, free: 10.92 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.533e-06/0.1339, allocations: 0 / 474.6 MB, free: 10.92 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.001207/0.1351, allocations: 430.2 kB / 475.1 MB, free: 10.5 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.397e-05/0.1352, allocations: 0 / 475.1 MB, free: 10.5 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.995e-05/0.1352, allocations: 3.984 kB / 475.1 MB, free: 10.5 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.431e-05/0.1352, allocations: 0 / 475.1 MB, free: 10.5 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.608e-05/0.1353, allocations: 0 / 475.1 MB, free: 10.5 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.871e-06/0.1353, allocations: 4 kB / 475.1 MB, free: 10.49 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009523/0.1362, allocations: 0.6394 MB / 475.7 MB, free: 9.852 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.376e-06/0.1363, allocations: 0 / 475.7 MB, free: 9.852 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.435e-05/0.1363, allocations: 25.7 kB / 475.7 MB, free: 9.82 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006185/0.1369, allocations: 403.1 kB / 476.1 MB, free: 9.426 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.1369, allocations: 0 / 476.1 MB, free: 9.426 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.103e-06/0.1369, allocations: 0 / 476.1 MB, free: 9.426 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.1e-06/0.1369, allocations: 0 / 476.1 MB, free: 9.426 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.0005471/0.1375, allocations: 409.5 kB / 476.5 MB, free: 8.973 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.031e-05/0.1376, allocations: 12.03 kB / 476.5 MB, free: 8.961 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.949e-05/0.1376, allocations: 38.69 kB / 476.6 MB, free: 8.914 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.279e-05/0.1377, allocations: 0.9375 kB / 476.6 MB, free: 8.914 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001661/0.1378, allocations: 160.4 kB / 476.7 MB, free: 8.719 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.08e-05/0.1378, allocations: 384 / 476.7 MB, free: 8.719 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.348e-06/0.1379, allocations: 4.375 kB / 476.7 MB, free: 8.715 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.747e-05/0.138, allocations: 45.75 kB / 476.8 MB, free: 8.664 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.512e-06/0.138, allocations: 0 / 476.8 MB, free: 8.664 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.326e-06/0.138, allocations: 0 / 476.8 MB, free: 8.664 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.889e-06/0.138, allocations: 0 / 476.8 MB, free: 8.664 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.877e-05/0.138, allocations: 0 / 476.8 MB, free: 8.664 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002428/0.1383, allocations: 232.9 kB / 477 MB, free: 8.387 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.25e-05/0.1383, allocations: 30.55 kB / 477 MB, free: 8.348 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.256e-05/0.1384, allocations: 8.922 kB / 477.1 MB, free: 8.336 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.325e-06/0.1384, allocations: 0 / 477.1 MB, free: 8.336 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.877e-05/0.1384, allocations: 64.27 kB / 477.1 MB, free: 8.258 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 9.62e-07/0.1384, allocations: 0 / 477.1 MB, free: 8.258 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001807/0.1386, allocations: 67.39 kB / 477.2 MB, free: 8.18 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.543e-05/0.1387, allocations: 77.11 kB / 477.3 MB, free: 8.086 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.55e-05/0.1387, allocations: 93.86 kB / 477.3 MB, free: 7.984 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.239e-05/0.1387, allocations: 25.7 kB / 477.4 MB, free: 7.953 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.485e-05/0.1388, allocations: 80.14 kB / 477.4 MB, free: 7.871 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.211e-05/0.1388, allocations: 7.906 kB / 477.5 MB, free: 7.863 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.964e-05/0.1388, allocations: 9.719 kB / 477.5 MB, free: 7.848 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001094/0.139, allocations: 319 kB / 477.8 MB, free: 7.527 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.222e-05/0.139, allocations: 7.938 kB / 477.8 MB, free: 7.52 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.175e-06/0.139, allocations: 4 kB / 477.8 MB, free: 7.516 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.336e-05/0.139, allocations: 60.27 kB / 477.8 MB, free: 7.441 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.118e-06/0.1391, allocations: 3.938 kB / 477.9 MB, free: 7.438 MB / 350.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 9.988e-05/0.1392, allocations: 71.39 kB / 477.9 MB, free: 7.355 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.967e-05/0.1392, allocations: 32.2 kB / 478 MB, free: 7.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.007e-06/0.1392, allocations: 0 / 478 MB, free: 7.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.044e-05/0.1392, allocations: 8.078 kB / 478 MB, free: 7.312 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.591e-05/0.1392, allocations: 4 kB / 478 MB, free: 7.309 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.629e-06/0.1393, allocations: 3.938 kB / 478 MB, free: 7.305 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.835e-05/0.1393, allocations: 0 / 478 MB, free: 7.305 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.797e-06/0.1393, allocations: 3.938 kB / 478 MB, free: 7.301 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 7.97e-05/0.1394, allocations: 147.4 kB / 478.1 MB, free: 7.141 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.297e-05/0.1394, allocations: 0 / 478.1 MB, free: 7.141 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.136e-05/0.1395, allocations: 11.08 kB / 478.1 MB, free: 7.129 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.242e-06/0.1395, allocations: 0 / 478.1 MB, free: 7.129 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/0.1395, allocations: 4 kB / 478.1 MB, free: 7.125 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.415e-06/0.1395, allocations: 0 / 478.1 MB, free: 7.125 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002973/0.1398, allocations: 300.3 kB / 478.4 MB, free: 6.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.1398, allocations: 0 / 478.4 MB, free: 6.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.119e-06/0.1398, allocations: 4 kB / 478.4 MB, free: 6.766 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.1398, allocations: 0 / 478.4 MB, free: 6.766 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.634e-06/0.1399, allocations: 4 kB / 478.4 MB, free: 6.762 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.475e-06/0.1399, allocations: 3.984 kB / 478.4 MB, free: 6.758 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.325e-06/0.1399, allocations: 0 / 478.4 MB, free: 6.758 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001309/0.14, allocations: 173.1 kB / 478.6 MB, free: 6.566 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.455e-05/0.14, allocations: 81.09 kB / 478.7 MB, free: 6.469 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.209e-05/0.1401, allocations: 4 kB / 478.7 MB, free: 6.465 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.939e-05/0.1401, allocations: 4 kB / 478.7 MB, free: 6.461 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.348e-05/0.1401, allocations: 0 / 478.7 MB, free: 6.461 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.986e-06/0.1401, allocations: 0 / 478.7 MB, free: 6.461 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.855e-05/0.1402, allocations: 75.28 kB / 478.8 MB, free: 6.387 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1402, allocations: 8.031 kB / 478.8 MB, free: 6.379 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004094/0.1406, allocations: 131.8 kB / 478.9 MB, free: 6.25 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.001135/0.1418, allocations: 0.8976 MB / 479.8 MB, free: 5.328 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000103/0.1419, allocations: 67.39 kB / 479.9 MB, free: 5.25 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.1419, allocations: 0 / 479.9 MB, free: 5.25 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.606e-05/0.142, allocations: 55.41 kB / 479.9 MB, free: 5.184 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001837/0.1422, allocations: 10.75 kB / 479.9 MB, free: 5.176 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000922/0.1431, allocations: 1.186 MB / 481.1 MB, free: 3.902 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002272/0.1433, allocations: 0.677 MB / 481.8 MB, free: 3.199 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.222e-05/0.1434, allocations: 7.984 kB / 481.8 MB, free: 3.191 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.769e-05/0.1434, allocations: 7.438 kB / 481.8 MB, free: 3.184 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1434, allocations: 0 / 481.8 MB, free: 3.184 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01502/0.1584, allocations: 4.201 MB / 486 MB, free: 15.1 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001893/0.1586, allocations: 252 kB / 486.3 MB, free: 14.83 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.856/2.015, allocations: 0 / 486.3 MB, free: 14.83 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","../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches