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.001714/0.001714, allocations: 124.5 kB / 17.79 MB, free: 5.227 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.00207/0.00207, allocations: 207.2 kB / 20.75 MB, free: 2.273 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.561/1.561, allocations: 230.6 MB / 254.1 MB, free: 15.06 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.2376/0.2376, allocations: 46.92 MB / 357.1 MB, free: 10.3 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestDistributions,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Math_Random_TestDistributions",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002018/0.002018, allocations: 71.89 kB / 0.4909 GB, free: 7.949 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1387/0.1407, allocations: 65.99 MB / 0.5554 GB, free: 5.832 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.001849/0.1426, allocations: 0.5028 MB / 0.5559 GB, free: 5.328 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.003697/0.1463, allocations: 2.115 MB / 0.5579 GB, free: 3.191 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.572e-05/0.1463, allocations: 0 / 0.5579 GB, free: 3.191 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.428e-05/0.1463, allocations: 0 / 0.5579 GB, free: 3.191 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 6.272e-06/0.1463, allocations: 0 / 0.5579 GB, free: 3.191 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.001891/0.1482, allocations: 0.5018 MB / 0.5584 GB, free: 2.691 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 5.323e-05/0.1482, allocations: 4 kB / 0.5584 GB, free: 2.688 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.537e-05/0.1483, allocations: 4 kB / 0.5584 GB, free: 2.684 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.633e-05/0.1483, allocations: 0 / 0.5584 GB, free: 2.684 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.955e-05/0.1483, allocations: 11.92 kB / 0.5584 GB, free: 2.672 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.262e-06/0.1483, allocations: 0 / 0.5584 GB, free: 2.672 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001306/0.1496, allocations: 0.6668 MB / 0.5591 GB, free: 2.004 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 9.027e-06/0.1497, allocations: 0 / 0.5591 GB, free: 2.004 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 1.995e-05/0.1497, allocations: 0 / 0.5591 GB, free: 2.004 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006178/0.1503, allocations: 391 kB / 0.5595 GB, free: 1.621 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.1503, allocations: 0 / 0.5595 GB, free: 1.621 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1503, allocations: 0 / 0.5595 GB, free: 1.621 MB / 414.1 MB Notification: Performance of Transformations before backend: time 4.879e-06/0.1503, allocations: 0 / 0.5595 GB, free: 1.621 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.000544/0.1508, allocations: 424.4 kB / 0.5599 GB, free: 1.152 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.271e-05/0.1509, allocations: 12.03 kB / 0.5599 GB, free: 1.141 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.096e-05/0.1509, allocations: 38.7 kB / 0.5599 GB, free: 1.094 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.511e-05/0.151, allocations: 0.9375 kB / 0.5599 GB, free: 1.094 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001263/0.1511, allocations: 164.4 kB / 0.5601 GB, free: 0.8945 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.476e-06/0.1511, allocations: 384 / 0.5601 GB, free: 0.8945 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.415e-05/0.1511, allocations: 12.25 kB / 0.5601 GB, free: 0.8828 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001233/0.1512, allocations: 37.81 kB / 0.5601 GB, free: 0.8398 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.071e-05/0.1513, allocations: 0 / 0.5601 GB, free: 0.8398 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.787e-06/0.1513, allocations: 0 / 0.5601 GB, free: 0.8398 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.99e-06/0.1513, allocations: 0 / 0.5601 GB, free: 0.8398 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.887e-05/0.1513, allocations: 0 / 0.5601 GB, free: 0.8398 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002832/0.1516, allocations: 236.9 kB / 0.5603 GB, free: 0.5586 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.968e-05/0.1516, allocations: 26.48 kB / 0.5604 GB, free: 0.5234 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.544e-05/0.1517, allocations: 12.92 kB / 0.5604 GB, free: 0.5078 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.881e-06/0.1517, allocations: 0 / 0.5604 GB, free: 0.5078 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.261e-05/0.1517, allocations: 60.27 kB / 0.5604 GB, free: 444 kB / 414.1 MB Notification: Performance of pre-optimization done (n=2): time 9.52e-07/0.1517, allocations: 0 / 0.5604 GB, free: 444 kB / 414.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002135/0.1519, allocations: 75.39 kB / 0.5605 GB, free: 356 kB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.539e-05/0.152, allocations: 77.11 kB / 0.5606 GB, free: 260 kB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.737e-05/0.1521, allocations: 89.86 kB / 0.5607 GB, free: 160 kB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.696e-05/0.1521, allocations: 29.64 kB / 0.5607 GB, free: 124 kB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.347e-05/0.1521, allocations: 80.14 kB / 0.5608 GB, free: 40 kB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.249e-05/0.1521, allocations: 3.953 kB / 0.5608 GB, free: 36 kB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.429e-05/0.1522, allocations: 21.7 kB / 0.5608 GB, free: 8 kB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001754/0.1523, allocations: 310.8 kB / 0.5611 GB, free: 15.7 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.387e-05/0.1523, allocations: 8.125 kB / 0.5611 GB, free: 15.69 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.323e-06/0.1524, allocations: 0 / 0.5611 GB, free: 15.69 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.362e-05/0.1524, allocations: 64.27 kB / 0.5612 GB, free: 15.61 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.818e-06/0.1524, allocations: 7.938 kB / 0.5612 GB, free: 15.6 MB / 430.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.336e-05/0.1525, allocations: 67.39 kB / 0.5612 GB, free: 15.52 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.09e-05/0.1525, allocations: 29.7 kB / 0.5613 GB, free: 15.49 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.887e-06/0.1525, allocations: 0 / 0.5613 GB, free: 15.49 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.854e-05/0.1526, allocations: 4 kB / 0.5613 GB, free: 15.48 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.576e-05/0.1526, allocations: 8.031 kB / 0.5613 GB, free: 15.48 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.53e-06/0.1526, allocations: 0 / 0.5613 GB, free: 15.48 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.651e-05/0.1526, allocations: 0 / 0.5613 GB, free: 15.48 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.271e-06/0.1526, allocations: 0 / 0.5613 GB, free: 15.48 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.0001074/0.1527, allocations: 149.7 kB / 0.5614 GB, free: 15.32 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.479e-05/0.1527, allocations: 3.984 kB / 0.5614 GB, free: 15.31 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.219e-05/0.1528, allocations: 3.125 kB / 0.5614 GB, free: 15.31 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.212e-06/0.1528, allocations: 0 / 0.5614 GB, free: 15.31 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.111e-06/0.1528, allocations: 4 kB / 0.5614 GB, free: 15.31 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.204e-06/0.1528, allocations: 4 kB / 0.5614 GB, free: 15.3 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000291/0.1531, allocations: 300.3 kB / 0.5617 GB, free: 14.95 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.1531, allocations: 0 / 0.5617 GB, free: 14.95 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.596e-06/0.1531, allocations: 0 / 0.5617 GB, free: 14.95 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.664e-06/0.1531, allocations: 0 / 0.5617 GB, free: 14.95 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.995e-06/0.1531, allocations: 15.86 kB / 0.5617 GB, free: 14.93 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.1531, allocations: 3.938 kB / 0.5617 GB, free: 14.93 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.1531, allocations: 0 / 0.5617 GB, free: 14.93 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001405/0.1532, allocations: 165.2 kB / 0.5619 GB, free: 14.75 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.542e-05/0.1533, allocations: 85.09 kB / 0.562 GB, free: 14.64 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.15e-05/0.1533, allocations: 0 / 0.562 GB, free: 14.64 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.028e-05/0.1533, allocations: 0 / 0.562 GB, free: 14.64 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.651e-05/0.1533, allocations: 0 / 0.562 GB, free: 14.64 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.29e-06/0.1533, allocations: 4 kB / 0.562 GB, free: 14.64 MB / 430.1 MB Notification: Performance of sorting global known variables: time 3.465e-05/0.1534, allocations: 75.28 kB / 0.5621 GB, free: 14.57 MB / 430.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1534, allocations: 0 / 0.5621 GB, free: 14.57 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0004933/0.1539, allocations: 139.5 kB / 0.5622 GB, free: 14.43 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.001231/0.1551, allocations: 0.9087 MB / 0.5631 GB, free: 13.49 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0001345/0.1552, allocations: 67.42 kB / 0.5631 GB, free: 13.41 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.993e-06/0.1552, allocations: 0 / 0.5631 GB, free: 13.41 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 5.5e-05/0.1553, allocations: 55.41 kB / 0.5632 GB, free: 13.35 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001947/0.1555, allocations: 4 kB / 0.5632 GB, free: 13.34 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001213/0.1567, allocations: 1.203 MB / 0.5644 GB, free: 12.05 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003532/0.157, allocations: 0.6729 MB / 0.565 GB, free: 11.36 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 1.177e-05/0.1571, allocations: 0 / 0.565 GB, free: 11.36 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.483e-05/0.1571, allocations: 7.438 kB / 0.565 GB, free: 11.35 MB / 430.1 MB Notification: Performance of SimCode: time 7.52e-07/0.1571, allocations: 7.969 kB / 0.565 GB, free: 11.34 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03175/0.1888, allocations: 4.527 MB / 0.5695 GB, free: 6.898 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.276/8.465, allocations: 14.38 kB / 0.5695 GB, free: 6.887 MB / 430.1 MB " [Timeout remaining time 651] (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.551562991924584]