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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001486/0.001486, allocations: 120 kB / 18.49 MB, free: 4.59 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001597/0.001597, allocations: 214.3 kB / 21.45 MB, free: 1.637 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.403/1.403, allocations: 230.4 MB / 254.7 MB, free: 14.85 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2113/0.2113, allocations: 46.92 MB / 357.7 MB, free: 10.27 MB / 286.1 MB " [Timeout remaining time 180] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestDistributions,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_Random_TestDistributions",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002372/0.002372, allocations: 75.88 kB / 0.4917 GB, free: 7.801 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1237/0.1261, allocations: 66.04 MB / 0.5561 GB, free: 5.625 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.001733/0.1278, allocations: 0.494 MB / 0.5566 GB, free: 5.125 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.003306/0.1311, allocations: 2.123 MB / 0.5587 GB, free: 2.98 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.236e-05/0.1312, allocations: 0 / 0.5587 GB, free: 2.98 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.347e-05/0.1312, allocations: 0 / 0.5587 GB, free: 2.98 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 7.394e-06/0.1312, allocations: 0 / 0.5587 GB, free: 2.98 MB / 414.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.001827/0.133, allocations: 0.5046 MB / 0.5592 GB, free: 2.477 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 5.95e-05/0.1331, allocations: 4 kB / 0.5592 GB, free: 2.473 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.477e-05/0.1331, allocations: 4 kB / 0.5592 GB, free: 2.469 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.722e-05/0.1331, allocations: 0 / 0.5592 GB, free: 2.469 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.119e-05/0.1332, allocations: 3.938 kB / 0.5592 GB, free: 2.465 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 7.905e-06/0.1332, allocations: 0 / 0.5592 GB, free: 2.465 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0014/0.1346, allocations: 0.6668 MB / 0.5599 GB, free: 1.797 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.228e-05/0.1346, allocations: 3.984 kB / 0.5599 GB, free: 1.793 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.265e-05/0.1346, allocations: 0 / 0.5599 GB, free: 1.793 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008877/0.1355, allocations: 387.1 kB / 0.5602 GB, free: 1.414 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.1355, allocations: 7.938 kB / 0.5602 GB, free: 1.406 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.1355, allocations: 0 / 0.5602 GB, free: 1.406 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.019e-05/0.1355, allocations: 0 / 0.5602 GB, free: 1.406 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.0005707/0.1361, allocations: 420.4 kB / 0.5606 GB, free: 0.9414 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.054e-05/0.1361, allocations: 12.03 kB / 0.5607 GB, free: 0.9297 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.43e-05/0.1361, allocations: 4.188 kB / 0.5607 GB, free: 0.9258 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.243e-05/0.1362, allocations: 34.7 kB / 0.5607 GB, free: 0.8828 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.661e-05/0.1362, allocations: 0.9375 kB / 0.5607 GB, free: 0.8828 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001266/0.1363, allocations: 164.3 kB / 0.5608 GB, free: 0.6836 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.141e-05/0.1363, allocations: 384 / 0.5608 GB, free: 0.6836 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.454e-05/0.1364, allocations: 4.375 kB / 0.5609 GB, free: 0.6797 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001033/0.1365, allocations: 37.62 kB / 0.5609 GB, free: 0.6367 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.185e-06/0.1365, allocations: 4 kB / 0.5609 GB, free: 0.6328 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.225e-06/0.1365, allocations: 4 kB / 0.5609 GB, free: 0.6289 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.385e-06/0.1365, allocations: 0 / 0.5609 GB, free: 0.6289 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.009e-05/0.1365, allocations: 0 / 0.5609 GB, free: 0.6289 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000266/0.1368, allocations: 232.9 kB / 0.5611 GB, free: 360 kB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.86e-05/0.1368, allocations: 30.42 kB / 0.5611 GB, free: 320 kB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.707e-05/0.1369, allocations: 12.91 kB / 0.5612 GB, free: 304 kB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.059e-05/0.1369, allocations: 4 kB / 0.5612 GB, free: 300 kB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.683e-05/0.1369, allocations: 64.27 kB / 0.5612 GB, free: 220 kB / 414.1 MB Notification: Performance of pre-optimization done (n=2): time 1.102e-06/0.1369, allocations: 0 / 0.5612 GB, free: 220 kB / 414.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002051/0.1371, allocations: 75.31 kB / 0.5613 GB, free: 132 kB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.715e-05/0.1372, allocations: 81.11 kB / 0.5614 GB, free: 32 kB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.46e-05/0.1373, allocations: 89.86 kB / 0.5615 GB, free: 15.93 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.559e-05/0.1373, allocations: 25.7 kB / 0.5615 GB, free: 15.9 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.408e-05/0.1373, allocations: 84.27 kB / 0.5616 GB, free: 15.82 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.309e-05/0.1374, allocations: 3.953 kB / 0.5616 GB, free: 15.81 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.812e-05/0.1374, allocations: 17.7 kB / 0.5616 GB, free: 15.79 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001635/0.1376, allocations: 314.8 kB / 0.5619 GB, free: 15.47 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.599e-05/0.1376, allocations: 4 kB / 0.5619 GB, free: 15.47 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.682e-06/0.1376, allocations: 0 / 0.5619 GB, free: 15.47 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.129e-05/0.1377, allocations: 64.2 kB / 0.5619 GB, free: 15.39 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.1377, allocations: 0 / 0.5619 GB, free: 15.39 MB / 430.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001099/0.1378, allocations: 79.39 kB / 0.562 GB, free: 15.3 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.052e-05/0.1378, allocations: 29.7 kB / 0.5621 GB, free: 15.27 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.1378, allocations: 0 / 0.5621 GB, free: 15.27 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.589e-05/0.1378, allocations: 0 / 0.5621 GB, free: 15.27 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.942e-05/0.1379, allocations: 4 kB / 0.5621 GB, free: 15.26 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.182e-06/0.1379, allocations: 0 / 0.5621 GB, free: 15.26 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.612e-05/0.1379, allocations: 0 / 0.5621 GB, free: 15.26 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.434e-06/0.1379, allocations: 0 / 0.5621 GB, free: 15.26 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 0.0001356/0.138, allocations: 151.5 kB / 0.5622 GB, free: 15.1 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.49e-05/0.138, allocations: 4.031 kB / 0.5622 GB, free: 15.09 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.566e-05/0.1381, allocations: 3.125 kB / 0.5622 GB, free: 15.09 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/0.1381, allocations: 0 / 0.5622 GB, free: 15.09 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.399e-06/0.1381, allocations: 0 / 0.5622 GB, free: 15.09 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/0.1381, allocations: 4 kB / 0.5622 GB, free: 15.09 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003155/0.1384, allocations: 300.2 kB / 0.5625 GB, free: 14.73 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.774e-06/0.1384, allocations: 0 / 0.5625 GB, free: 14.73 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.618e-06/0.1384, allocations: 0 / 0.5625 GB, free: 14.73 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.1384, allocations: 0 / 0.5625 GB, free: 14.73 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.134e-05/0.1384, allocations: 7.984 kB / 0.5625 GB, free: 14.73 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.1384, allocations: 7.969 kB / 0.5625 GB, free: 14.72 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/0.1384, allocations: 0 / 0.5625 GB, free: 14.72 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001575/0.1386, allocations: 165.2 kB / 0.5627 GB, free: 14.54 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.902e-05/0.1386, allocations: 81.09 kB / 0.5627 GB, free: 14.44 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.349e-05/0.1386, allocations: 4 kB / 0.5628 GB, free: 14.43 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.825e-05/0.1387, allocations: 0 / 0.5628 GB, free: 14.43 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.041e-05/0.1387, allocations: 3.938 kB / 0.5628 GB, free: 14.43 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.928e-06/0.1387, allocations: 4.031 kB / 0.5628 GB, free: 14.43 MB / 430.1 MB Notification: Performance of sorting global known variables: time 3.799e-05/0.1387, allocations: 83.22 kB / 0.5628 GB, free: 14.34 MB / 430.1 MB Notification: Performance of sort global known variables: time 5e-08/0.1387, allocations: 0 / 0.5628 GB, free: 14.34 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0005373/0.1393, allocations: 135.5 kB / 0.563 GB, free: 14.21 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.001253/0.1405, allocations: 0.9104 MB / 0.5639 GB, free: 13.27 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0001365/0.1407, allocations: 67.39 kB / 0.5639 GB, free: 13.2 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.1407, allocations: 0 / 0.5639 GB, free: 13.2 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 4.73e-05/0.1407, allocations: 59.34 kB / 0.564 GB, free: 13.12 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001941/0.1409, allocations: 4 kB / 0.564 GB, free: 13.12 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001199/0.1421, allocations: 1.203 MB / 0.5652 GB, free: 11.83 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003437/0.1424, allocations: 0.6768 MB / 0.5658 GB, free: 11.13 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 1.156e-05/0.1425, allocations: 0 / 0.5658 GB, free: 11.13 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.412e-05/0.1425, allocations: 7.438 kB / 0.5658 GB, free: 11.12 MB / 430.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1425, allocations: 0 / 0.5658 GB, free: 11.12 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0221/0.1646, allocations: 4.565 MB / 0.5703 GB, free: 6.648 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.156/8.321, allocations: 6.031 kB / 0.5703 GB, free: 6.645 MB / 430.1 MB " [Timeout remaining time 652] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Math_Random_TestDistributions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Math_Random_TestDistributions.fmu > ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_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_trunk_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.160031573032029]