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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001276/0.001276, allocations: 116.8 kB / 18.5 MB, free: 4.434 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001289/0.001289, allocations: 189.2 kB / 21.44 MB, free: 1.504 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.606/1.606, allocations: 225.6 MB / 249.8 MB, free: 3.598 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2256/0.2256, allocations: 44.92 MB / 349.6 MB, free: 1.793 MB / 270.1 MB " [Timeout remaining time 180] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001935/0.001935, allocations: 68.69 kB / 491.8 MB, free: 30.29 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1236/0.1255, allocations: 64.26 MB / 0.543 GB, free: 4.109 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.001736/0.1272, allocations: 0.5038 MB / 0.5435 GB, free: 3.602 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003227/0.1305, allocations: 2.047 MB / 0.5455 GB, free: 1.531 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.117e-05/0.1305, allocations: 0 / 0.5455 GB, free: 1.531 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.652e-05/0.1305, allocations: 3.938 kB / 0.5455 GB, free: 1.527 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.542e-06/0.1305, allocations: 0 / 0.5455 GB, free: 1.527 MB / 398.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.0014/0.1319, allocations: 0.4959 MB / 0.546 GB, free: 1.031 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.272e-05/0.132, allocations: 4 kB / 0.546 GB, free: 1.027 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.098e-05/0.132, allocations: 4 kB / 0.546 GB, free: 1.023 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.519e-05/0.132, allocations: 0 / 0.546 GB, free: 1.023 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.82e-05/0.132, allocations: 3.984 kB / 0.546 GB, free: 1.02 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.943e-06/0.132, allocations: 0 / 0.546 GB, free: 1.02 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001066/0.1331, allocations: 0.6512 MB / 0.5466 GB, free: 376 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.456e-06/0.1331, allocations: 0 / 0.5466 GB, free: 376 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.09e-05/0.1331, allocations: 3.984 kB / 0.5466 GB, free: 372 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005987/0.1337, allocations: 387.2 kB / 0.547 GB, free: 15.98 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.1337, allocations: 0 / 0.547 GB, free: 15.98 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.1337, allocations: 0 / 0.547 GB, free: 15.98 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.063e-05/0.1337, allocations: 4 kB / 0.547 GB, free: 15.98 MB / 414.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.0004859/0.1342, allocations: 412.5 kB / 0.5474 GB, free: 15.52 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.299e-05/0.1343, allocations: 12.03 kB / 0.5474 GB, free: 15.51 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.562e-05/0.1343, allocations: 38.67 kB / 0.5474 GB, free: 15.46 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.231e-05/0.1344, allocations: 0.9375 kB / 0.5474 GB, free: 15.46 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000118/0.1345, allocations: 160.4 kB / 0.5476 GB, free: 15.27 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.463e-05/0.1345, allocations: 4.375 kB / 0.5476 GB, free: 15.27 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.23e-05/0.1345, allocations: 384 / 0.5476 GB, free: 15.27 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001123/0.1346, allocations: 41.77 kB / 0.5476 GB, free: 15.22 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.204e-05/0.1346, allocations: 4 kB / 0.5476 GB, free: 15.21 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.415e-06/0.1346, allocations: 0 / 0.5476 GB, free: 15.21 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.999e-06/0.1346, allocations: 3.938 kB / 0.5477 GB, free: 15.21 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.335e-05/0.1347, allocations: 7.984 kB / 0.5477 GB, free: 15.2 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002631/0.1349, allocations: 220.9 kB / 0.5479 GB, free: 14.94 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.952e-05/0.135, allocations: 26.66 kB / 0.5479 GB, free: 14.9 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.496e-05/0.135, allocations: 12.86 kB / 0.5479 GB, free: 14.89 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.217e-05/0.135, allocations: 7.938 kB / 0.5479 GB, free: 14.88 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.104e-05/0.1351, allocations: 60.27 kB / 0.548 GB, free: 14.8 MB / 414.1 MB Notification: Performance of pre-optimization done (n=2): time 4.077e-06/0.1351, allocations: 3.984 kB / 0.548 GB, free: 14.8 MB / 414.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001999/0.1353, allocations: 67.39 kB / 0.548 GB, free: 14.72 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.457e-05/0.1353, allocations: 77.11 kB / 0.5481 GB, free: 14.63 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.811e-05/0.1354, allocations: 97.81 kB / 0.5482 GB, free: 14.52 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.594e-05/0.1354, allocations: 25.7 kB / 0.5482 GB, free: 14.49 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.309e-05/0.1354, allocations: 84.27 kB / 0.5483 GB, free: 14.41 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.791e-05/0.1355, allocations: 4 kB / 0.5483 GB, free: 14.4 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.846e-05/0.1355, allocations: 9.719 kB / 0.5483 GB, free: 14.39 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001424/0.1356, allocations: 310.8 kB / 0.5486 GB, free: 14.07 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.738e-05/0.1356, allocations: 11.98 kB / 0.5486 GB, free: 14.06 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.216e-06/0.1357, allocations: 3.953 kB / 0.5486 GB, free: 14.06 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.357e-05/0.1357, allocations: 68.27 kB / 0.5487 GB, free: 13.98 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.1357, allocations: 8 kB / 0.5487 GB, free: 13.97 MB / 414.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.616e-05/0.1358, allocations: 67.39 kB / 0.5488 GB, free: 13.89 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.356e-05/0.1358, allocations: 29.7 kB / 0.5488 GB, free: 13.86 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.929e-06/0.1358, allocations: 4 kB / 0.5488 GB, free: 13.85 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.182e-05/0.1359, allocations: 0 / 0.5488 GB, free: 13.85 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.436e-05/0.1359, allocations: 0 / 0.5488 GB, free: 13.85 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.238e-06/0.1359, allocations: 0 / 0.5488 GB, free: 13.85 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.292e-05/0.1359, allocations: 0 / 0.5488 GB, free: 13.85 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.034e-06/0.1359, allocations: 0 / 0.5488 GB, free: 13.85 MB / 414.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.136, allocations: 155.4 kB / 0.549 GB, free: 13.68 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.334e-05/0.136, allocations: 3.953 kB / 0.549 GB, free: 13.68 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.712e-05/0.1361, allocations: 7.109 kB / 0.549 GB, free: 13.67 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.135e-06/0.1361, allocations: 4 kB / 0.549 GB, free: 13.67 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.1361, allocations: 0 / 0.549 GB, free: 13.67 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.555e-06/0.1361, allocations: 0 / 0.549 GB, free: 13.67 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002789/0.1363, allocations: 296.3 kB / 0.5493 GB, free: 13.32 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.1363, allocations: 0 / 0.5493 GB, free: 13.32 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.386e-06/0.1363, allocations: 0 / 0.5493 GB, free: 13.32 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.483e-06/0.1363, allocations: 4.031 kB / 0.5493 GB, free: 13.31 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.061e-06/0.1364, allocations: 4 kB / 0.5493 GB, free: 13.31 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.1364, allocations: 0 / 0.5493 GB, free: 13.31 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.32e-07/0.1364, allocations: 0 / 0.5493 GB, free: 13.31 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001318/0.1365, allocations: 177.1 kB / 0.5494 GB, free: 13.11 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.223e-05/0.1365, allocations: 85.05 kB / 0.5495 GB, free: 13.01 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.353e-05/0.1366, allocations: 3.984 kB / 0.5495 GB, free: 13.01 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.677e-05/0.1366, allocations: 0 / 0.5495 GB, free: 13.01 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.718e-05/0.1366, allocations: 4.031 kB / 0.5495 GB, free: 13 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.779e-06/0.1366, allocations: 4 kB / 0.5495 GB, free: 13 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.329e-05/0.1366, allocations: 75.28 kB / 0.5496 GB, free: 12.93 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1366, allocations: 0 / 0.5496 GB, free: 12.93 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004133/0.1371, allocations: 131.5 kB / 0.5497 GB, free: 12.8 MB / 414.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.001077/0.1381, allocations: 0.9068 MB / 0.5506 GB, free: 11.86 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001206/0.1383, allocations: 59.41 kB / 0.5507 GB, free: 11.79 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.1383, allocations: 0 / 0.5507 GB, free: 11.79 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.381e-05/0.1383, allocations: 59.39 kB / 0.5507 GB, free: 11.72 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001937/0.1385, allocations: 12.12 kB / 0.5507 GB, free: 11.71 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001037/0.1395, allocations: 1.195 MB / 0.5519 GB, free: 10.43 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003131/0.1398, allocations: 0.6766 MB / 0.5526 GB, free: 9.723 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 9.568e-06/0.1399, allocations: 0 / 0.5526 GB, free: 9.723 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.054e-05/0.1399, allocations: 7.438 kB / 0.5526 GB, free: 9.715 MB / 414.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1399, allocations: 0 / 0.5526 GB, free: 9.715 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02955/0.1694, allocations: 4.446 MB / 0.5569 GB, free: 5.359 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.261/8.43, allocations: 10.5 kB / 0.5569 GB, free: 5.352 MB / 414.1 MB " [Timeout remaining time 651] (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) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestDistributions/TestDistributions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.50259109819308]