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.001199/0.001205, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001279/0.001279, allocations: 210.4 kB / 18.58 MB, free: 4.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.447/1.447, allocations: 227.4 MB / 246.8 MB, free: 10.6 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2452/0.2452, allocations: 46.1 MB / 344.1 MB, free: 11.59 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001542/0.001542, allocations: 71.2 kB / 417.7 MB, free: 19.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1317/0.1333, allocations: 62.44 MB / 480.1 MB, free: 5.172 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.002624/0.136, allocations: 0.4902 MB / 480.6 MB, free: 4.68 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003366/0.1394, allocations: 2.112 MB / 482.7 MB, free: 2.547 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.901e-05/0.1394, allocations: 0 / 482.7 MB, free: 2.547 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.959e-05/0.1394, allocations: 0 / 482.7 MB, free: 2.547 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.672e-06/0.1395, allocations: 0 / 482.7 MB, free: 2.547 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.001686/0.1412, allocations: 0.5022 MB / 483.2 MB, free: 2.047 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.503e-05/0.1413, allocations: 0 / 483.2 MB, free: 2.047 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.771e-05/0.1413, allocations: 7.984 kB / 483.2 MB, free: 2.039 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.497e-05/0.1413, allocations: 4 kB / 483.2 MB, free: 2.035 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.985e-05/0.1414, allocations: 0 / 483.2 MB, free: 2.035 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.705e-06/0.1414, allocations: 0 / 483.2 MB, free: 2.035 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00119/0.1426, allocations: 0.62 MB / 483.9 MB, free: 1.414 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.544e-06/0.1426, allocations: 4 kB / 483.9 MB, free: 1.41 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.488e-05/0.1426, allocations: 4 kB / 483.9 MB, free: 1.406 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007526/0.1434, allocations: 387.3 kB / 484.2 MB, free: 1.027 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.1434, allocations: 3.984 kB / 484.2 MB, free: 1.023 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.926e-06/0.1434, allocations: 0 / 484.2 MB, free: 1.023 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.15e-06/0.1434, allocations: 7.938 kB / 484.3 MB, free: 1.016 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.0005051/0.1439, allocations: 421.4 kB / 484.7 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.433e-05/0.144, allocations: 8.031 kB / 484.7 MB, free: 0.543 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.001e-05/0.1441, allocations: 30.75 kB / 484.7 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.067e-05/0.1441, allocations: 0.9375 kB / 484.7 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001141/0.1442, allocations: 160.4 kB / 484.9 MB, free: 316 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.696e-05/0.1442, allocations: 4.375 kB / 484.9 MB, free: 312 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.318e-06/0.1443, allocations: 384 / 484.9 MB, free: 312 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001281/0.1444, allocations: 37.81 kB / 484.9 MB, free: 268 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.387e-06/0.1444, allocations: 4 kB / 484.9 MB, free: 264 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.023e-05/0.1444, allocations: 0 / 484.9 MB, free: 264 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.282e-06/0.1444, allocations: 0 / 484.9 MB, free: 264 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.071e-05/0.1445, allocations: 11.94 kB / 484.9 MB, free: 252 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003306/0.1448, allocations: 224.9 kB / 485.1 MB, free: 15.98 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.701e-05/0.1449, allocations: 26.61 kB / 485.2 MB, free: 15.94 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.507e-05/0.1449, allocations: 12.92 kB / 485.2 MB, free: 15.93 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.849e-06/0.1449, allocations: 0 / 485.2 MB, free: 15.93 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.015e-05/0.145, allocations: 56.27 kB / 485.2 MB, free: 15.86 MB / 366.1 MB Notification: Performance of pre-optimization done (n=2): time 1.313e-06/0.145, allocations: 0 / 485.2 MB, free: 15.86 MB / 366.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002443/0.1452, allocations: 75.33 kB / 485.3 MB, free: 15.77 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.862e-05/0.1453, allocations: 77.11 kB / 485.4 MB, free: 15.68 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.378e-05/0.1454, allocations: 93.8 kB / 485.5 MB, free: 15.57 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.371e-05/0.1454, allocations: 29.83 kB / 485.5 MB, free: 15.54 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.658e-05/0.1454, allocations: 84.14 kB / 485.6 MB, free: 15.45 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.256e-05/0.1454, allocations: 7.906 kB / 485.6 MB, free: 15.45 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.152e-05/0.1455, allocations: 17.7 kB / 485.6 MB, free: 15.42 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001156/0.1456, allocations: 310.8 kB / 485.9 MB, free: 15.11 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.401e-05/0.1456, allocations: 0 / 485.9 MB, free: 15.11 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.131e-05/0.1456, allocations: 7.938 kB / 485.9 MB, free: 15.1 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.341e-05/0.1457, allocations: 64.27 kB / 486 MB, free: 15.02 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.985e-06/0.1457, allocations: 8 kB / 486 MB, free: 15.02 MB / 366.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.172e-05/0.1458, allocations: 71.33 kB / 486.1 MB, free: 14.93 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.63e-05/0.1458, allocations: 36.05 kB / 486.1 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.1459, allocations: 0 / 486.1 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.255e-05/0.1459, allocations: 0 / 486.1 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.339e-05/0.1459, allocations: 0 / 486.1 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.28e-06/0.1459, allocations: 0 / 486.1 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.696e-05/0.1459, allocations: 4 kB / 486.1 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.464e-06/0.1459, 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.67e-05/0.146, allocations: 143.5 kB / 486.2 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.826e-05/0.1461, allocations: 4 kB / 486.2 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.781e-05/0.1461, allocations: 7.125 kB / 486.3 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-06/0.1461, allocations: 0 / 486.3 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.1461, allocations: 0 / 486.3 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.885e-06/0.1461, allocations: 0 / 486.3 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002654/0.1464, allocations: 304.2 kB / 486.6 MB, free: 14.37 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/0.1464, allocations: 0 / 486.6 MB, free: 14.37 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.737e-06/0.1464, allocations: 7.984 kB / 486.6 MB, free: 14.36 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.543e-06/0.1464, allocations: 4.031 kB / 486.6 MB, free: 14.36 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.705e-06/0.1464, allocations: 0 / 486.6 MB, free: 14.36 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.1464, allocations: 0 / 486.6 MB, free: 14.36 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.1465, allocations: 0 / 486.6 MB, free: 14.36 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001237/0.1466, allocations: 173.1 kB / 486.7 MB, free: 14.16 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.969e-05/0.1466, allocations: 77.11 kB / 486.8 MB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.182e-05/0.1466, allocations: 3.938 kB / 486.8 MB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.254e-05/0.1467, allocations: 8 kB / 486.8 MB, free: 14.06 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.642e-05/0.1467, allocations: 8.016 kB / 486.8 MB, free: 14.05 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.925e-06/0.1467, allocations: 0 / 486.8 MB, free: 14.05 MB / 366.1 MB Notification: Performance of sorting global known variables: time 2.775e-05/0.1468, allocations: 75.28 kB / 486.9 MB, free: 13.98 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1468, allocations: 0 / 486.9 MB, free: 13.98 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004882/0.1473, allocations: 135.8 kB / 487 MB, free: 13.84 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.001206/0.1485, allocations: 0.9151 MB / 487.9 MB, free: 12.9 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001134/0.1486, allocations: 63.34 kB / 488 MB, free: 12.82 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.1486, allocations: 0 / 488 MB, free: 12.82 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.829e-05/0.1487, allocations: 59.41 kB / 488.1 MB, free: 12.75 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001937/0.1489, allocations: 4.125 kB / 488.1 MB, free: 12.75 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001097/0.15, allocations: 1.199 MB / 489.3 MB, free: 11.46 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000315/0.1503, allocations: 0.669 MB / 489.9 MB, free: 10.77 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.368e-05/0.1503, allocations: 0 / 489.9 MB, free: 10.77 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.639e-05/0.1503, allocations: 11.44 kB / 490 MB, free: 10.76 MB / 366.1 MB Notification: Performance of SimCode: time 6.31e-07/0.1503, allocations: 0 / 490 MB, free: 10.76 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02633/0.1767, allocations: 4.488 MB / 494.4 MB, free: 6.34 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.936/8.112, allocations: 12.58 kB / 494.5 MB, free: 6.332 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 & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 ModelicaTest_trunk_ModelicaTest_Math_Random_TestDistributions.fmu > ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions_res.csv","/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