Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestDistributions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001205/0.001205, allocations: 114.8 kB / 18.49 MB, free: 4.559 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001331/0.001331, allocations: 217.4 kB / 21.46 MB, free: 1.605 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.45/1.45, allocations: 230.6 MB / 254.8 MB, free: 15.26 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2243/0.2243, allocations: 46.92 MB / 357.8 MB, free: 10.32 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.Random.TestDistributions,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Math_Random_TestDistributions",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestDistributions,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Math_Random_TestDistributions",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001881/0.001881, allocations: 67.84 kB / 0.4916 GB, free: 7.977 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1278/0.1297, allocations: 65.99 MB / 0.5561 GB, free: 5.859 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.001739/0.1314, allocations: 0.4947 MB / 0.5565 GB, free: 5.363 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.003203/0.1346, allocations: 2.123 MB / 0.5586 GB, free: 3.219 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.821e-05/0.1346, allocations: 0 / 0.5586 GB, free: 3.219 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.365e-05/0.1347, allocations: 0 / 0.5586 GB, free: 3.219 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 6.512e-06/0.1347, allocations: 0 / 0.5586 GB, free: 3.219 MB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.001408/0.1361, allocations: 0.5063 MB / 0.5591 GB, free: 2.715 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 5.206e-05/0.1361, allocations: 3.984 kB / 0.5591 GB, free: 2.711 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.719e-05/0.1362, allocations: 4 kB / 0.5591 GB, free: 2.707 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.572e-05/0.1362, allocations: 0 / 0.5591 GB, free: 2.707 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.666e-05/0.1362, allocations: 3.938 kB / 0.5591 GB, free: 2.703 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 7.154e-06/0.1362, allocations: 4 kB / 0.5591 GB, free: 2.699 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001061/0.1373, allocations: 0.6668 MB / 0.5598 GB, free: 2.031 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 8.226e-06/0.1373, allocations: 0 / 0.5598 GB, free: 2.031 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.052e-05/0.1373, allocations: 3.984 kB / 0.5598 GB, free: 2.027 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005607/0.1379, allocations: 395 kB / 0.5602 GB, free: 1.641 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.1379, allocations: 0 / 0.5602 GB, free: 1.641 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1379, allocations: 0 / 0.5602 GB, free: 1.641 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.711e-06/0.1379, allocations: 4 kB / 0.5602 GB, free: 1.637 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.0005023/0.1384, allocations: 416.5 kB / 0.5606 GB, free: 1.176 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.329e-05/0.1384, allocations: 8.031 kB / 0.5606 GB, free: 1.168 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.995e-05/0.1384, allocations: 192 / 0.5606 GB, free: 1.168 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.568e-05/0.1385, allocations: 38.7 kB / 0.5606 GB, free: 1.121 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.68e-05/0.1385, allocations: 8.922 kB / 0.5606 GB, free: 1.113 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001148/0.1386, allocations: 160.4 kB / 0.5608 GB, free: 0.918 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.193e-05/0.1386, allocations: 384 / 0.5608 GB, free: 0.918 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.064e-06/0.1387, allocations: 384 / 0.5608 GB, free: 0.918 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001038/0.1388, allocations: 37.64 kB / 0.5608 GB, free: 0.875 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.23e-05/0.1388, allocations: 3.938 kB / 0.5608 GB, free: 0.8711 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.658e-06/0.1388, allocations: 4 kB / 0.5608 GB, free: 0.8672 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.278e-06/0.1388, allocations: 0 / 0.5608 GB, free: 0.8672 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.127e-05/0.1388, allocations: 3.984 kB / 0.5608 GB, free: 0.8633 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000254/0.1391, allocations: 236.8 kB / 0.561 GB, free: 0.582 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.538e-05/0.1391, allocations: 26.59 kB / 0.5611 GB, free: 0.5469 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.373e-05/0.1391, allocations: 8.922 kB / 0.5611 GB, free: 0.5352 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.881e-06/0.1391, allocations: 0 / 0.5611 GB, free: 0.5352 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.535e-05/0.1392, allocations: 64.2 kB / 0.5611 GB, free: 468 kB / 414.1 MB Notification: Performance of pre-optimization done (n=2): time 8.92e-07/0.1392, allocations: 0 / 0.5611 GB, free: 468 kB / 414.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001968/0.1394, allocations: 71.39 kB / 0.5612 GB, free: 384 kB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.031e-05/0.1394, allocations: 81.11 kB / 0.5613 GB, free: 284 kB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.911e-05/0.1395, allocations: 89.86 kB / 0.5614 GB, free: 184 kB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.711e-05/0.1395, allocations: 29.7 kB / 0.5614 GB, free: 148 kB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.1e-05/0.1395, allocations: 80.14 kB / 0.5615 GB, free: 64 kB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.174e-05/0.1396, allocations: 3.953 kB / 0.5615 GB, free: 60 kB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.775e-05/0.1396, allocations: 13.72 kB / 0.5615 GB, free: 40 kB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001464/0.1397, allocations: 315 kB / 0.5618 GB, free: 15.72 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.444e-05/0.1398, allocations: 3.984 kB / 0.5618 GB, free: 15.72 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.506e-06/0.1398, allocations: 8 kB / 0.5618 GB, free: 15.71 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.438e-05/0.1398, allocations: 68.14 kB / 0.5619 GB, free: 15.63 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.1398, allocations: 0 / 0.5619 GB, free: 15.63 MB / 430.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.595e-05/0.1399, allocations: 67.41 kB / 0.5619 GB, free: 15.55 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.733e-05/0.1399, allocations: 33.69 kB / 0.562 GB, free: 15.51 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.208e-06/0.1399, allocations: 0 / 0.562 GB, free: 15.51 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.548e-05/0.14, allocations: 96 / 0.562 GB, free: 15.51 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.572e-05/0.14, allocations: 8 kB / 0.562 GB, free: 15.5 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.478e-06/0.14, allocations: 0 / 0.562 GB, free: 15.5 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.418e-05/0.14, allocations: 0 / 0.562 GB, free: 15.5 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.41e-06/0.14, allocations: 0 / 0.562 GB, free: 15.5 MB / 430.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.78e-05/0.1401, allocations: 149.7 kB / 0.5621 GB, free: 15.34 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.348e-05/0.1401, allocations: 4 kB / 0.5621 GB, free: 15.34 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.281e-05/0.1401, allocations: 3.125 kB / 0.5621 GB, free: 15.34 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.835e-06/0.1401, allocations: 7.922 kB / 0.5621 GB, free: 15.33 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.496e-06/0.1401, allocations: 0 / 0.5621 GB, free: 15.33 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.2e-06/0.1401, allocations: 8 kB / 0.5621 GB, free: 15.32 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002634/0.1404, allocations: 296.3 kB / 0.5624 GB, free: 14.97 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.1404, allocations: 0 / 0.5624 GB, free: 14.97 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.356e-06/0.1404, allocations: 0 / 0.5624 GB, free: 14.97 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.383e-06/0.1404, allocations: 0 / 0.5624 GB, free: 14.97 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.135e-06/0.1404, allocations: 7.938 kB / 0.5624 GB, free: 14.96 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.92e-07/0.1404, allocations: 0 / 0.5624 GB, free: 14.96 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.1404, allocations: 0 / 0.5624 GB, free: 14.96 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001336/0.1405, allocations: 173.2 kB / 0.5626 GB, free: 14.77 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.402e-05/0.1406, allocations: 81.11 kB / 0.5627 GB, free: 14.68 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.364e-05/0.1406, allocations: 4 kB / 0.5627 GB, free: 14.67 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.276e-05/0.1407, allocations: 11.91 kB / 0.5627 GB, free: 14.66 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.419e-05/0.1407, allocations: 0 / 0.5627 GB, free: 14.66 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.655e-06/0.1407, allocations: 0 / 0.5627 GB, free: 14.66 MB / 430.1 MB Notification: Performance of sorting global known variables: time 3.41e-05/0.1407, allocations: 79.22 kB / 0.5628 GB, free: 14.58 MB / 430.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1407, allocations: 0 / 0.5628 GB, free: 14.58 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0004294/0.1411, allocations: 139.5 kB / 0.5629 GB, free: 14.45 MB / 430.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.00111/0.1422, allocations: 0.9103 MB / 0.5638 GB, free: 13.51 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0001202/0.1424, allocations: 63.39 kB / 0.5638 GB, free: 13.43 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.1424, allocations: 0 / 0.5638 GB, free: 13.43 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 4.805e-05/0.1424, allocations: 59.41 kB / 0.5639 GB, free: 13.36 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001933/0.1426, allocations: 4 kB / 0.5639 GB, free: 13.36 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001056/0.1437, allocations: 1.195 MB / 0.5651 GB, free: 12.08 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002938/0.144, allocations: 0.6768 MB / 0.5657 GB, free: 11.38 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 1.046e-05/0.144, allocations: 0 / 0.5657 GB, free: 11.38 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.393e-05/0.144, allocations: 15.5 kB / 0.5657 GB, free: 11.36 MB / 430.1 MB Notification: Performance of SimCode: time 2.81e-07/0.144, allocations: 0 / 0.5657 GB, free: 11.36 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02084/0.1648, allocations: 4.564 MB / 0.5702 GB, free: 6.898 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.078/8.243, allocations: 14.19 kB / 0.5702 GB, free: 6.887 MB / 430.1 MB " [Timeout remaining time 652] (rm -f ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestDistributions.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestDistributions.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestDistributions.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestDistributions.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestDistributions_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Math_Random_TestDistributions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Math_Random_TestDistributions.fmu > ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestDistributions.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestDistributions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/Random/TestDistributions/TestDistributions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.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.185602682002354]