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.001638/0.001638, allocations: 132.4 kB / 17.8 MB, free: 5.219 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.001833/0.001833, allocations: 210.5 kB / 20.75 MB, free: 2.27 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.51/1.51, allocations: 230.5 MB / 254 MB, free: 15.17 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.2364/0.2364, allocations: 46.92 MB / 357 MB, free: 10.21 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="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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002262/0.002262, allocations: 87.81 kB / 0.491 GB, free: 7.723 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1441/0.1464, allocations: 66.04 MB / 0.5555 GB, free: 5.551 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.001837/0.1482, allocations: 0.5031 MB / 0.5559 GB, free: 5.043 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.003541/0.1517, allocations: 2.119 MB / 0.558 GB, free: 2.902 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.066e-05/0.1518, allocations: 0 / 0.558 GB, free: 2.902 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.592e-05/0.1518, allocations: 0 / 0.558 GB, free: 2.902 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 5.991e-06/0.1518, allocations: 0 / 0.558 GB, free: 2.902 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.001533/0.1533, allocations: 0.5015 MB / 0.5585 GB, free: 2.402 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 4.051e-05/0.1534, allocations: 0 / 0.5585 GB, free: 2.402 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.141e-05/0.1534, allocations: 4 kB / 0.5585 GB, free: 2.398 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.243e-05/0.1534, allocations: 0 / 0.5585 GB, free: 2.398 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.583e-05/0.1534, allocations: 3.938 kB / 0.5585 GB, free: 2.395 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.68e-06/0.1534, allocations: 0 / 0.5585 GB, free: 2.395 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001074/0.1545, allocations: 0.6707 MB / 0.5592 GB, free: 1.723 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 8.957e-06/0.1545, allocations: 3.984 kB / 0.5592 GB, free: 1.719 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 1.697e-05/0.1545, allocations: 0 / 0.5592 GB, free: 1.719 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005817/0.1551, allocations: 391.1 kB / 0.5595 GB, free: 1.336 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.1551, allocations: 3.938 kB / 0.5596 GB, free: 1.332 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.1551, allocations: 0 / 0.5596 GB, free: 1.332 MB / 414.1 MB Notification: Performance of Transformations before backend: time 9.929e-06/0.1551, allocations: 0 / 0.5596 GB, free: 1.332 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.0005339/0.1556, allocations: 420.4 kB / 0.56 GB, free: 0.8672 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.828e-05/0.1557, allocations: 12.03 kB / 0.56 GB, free: 0.8555 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.781e-05/0.1558, allocations: 34.7 kB / 0.56 GB, free: 0.8125 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.828e-05/0.1558, allocations: 0.9375 kB / 0.56 GB, free: 0.8125 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001241/0.1559, allocations: 160.4 kB / 0.5601 GB, free: 0.6172 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.101e-05/0.1559, allocations: 4.375 kB / 0.5602 GB, free: 0.6133 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.294e-05/0.1559, allocations: 4.375 kB / 0.5602 GB, free: 0.6094 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001149/0.156, allocations: 41.75 kB / 0.5602 GB, free: 0.5625 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.373e-06/0.1561, allocations: 4 kB / 0.5602 GB, free: 0.5586 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.206e-06/0.1561, allocations: 0 / 0.5602 GB, free: 0.5586 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.111e-06/0.1561, allocations: 3.984 kB / 0.5602 GB, free: 0.5547 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.052e-05/0.1561, allocations: 3.938 kB / 0.5602 GB, free: 0.5508 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003104/0.1564, allocations: 236.9 kB / 0.5604 GB, free: 276 kB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.376e-05/0.1565, allocations: 26.55 kB / 0.5605 GB, free: 240 kB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.428e-05/0.1565, allocations: 12.86 kB / 0.5605 GB, free: 224 kB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.165e-05/0.1565, allocations: 4 kB / 0.5605 GB, free: 220 kB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001195/0.1566, allocations: 64.25 kB / 0.5605 GB, free: 140 kB / 414.1 MB Notification: Performance of pre-optimization done (n=2): time 1.172e-06/0.1566, allocations: 0 / 0.5605 GB, free: 140 kB / 414.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002369/0.1569, allocations: 71.39 kB / 0.5606 GB, free: 56 kB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.611e-05/0.1569, allocations: 81.23 kB / 0.5607 GB, free: 15.96 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.792e-05/0.157, allocations: 89.86 kB / 0.5608 GB, free: 15.86 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.659e-05/0.157, allocations: 25.7 kB / 0.5608 GB, free: 15.83 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.623e-05/0.1571, allocations: 80.14 kB / 0.5609 GB, free: 15.75 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.093e-05/0.1571, allocations: 7.891 kB / 0.5609 GB, free: 15.74 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.375e-05/0.1571, allocations: 17.7 kB / 0.5609 GB, free: 15.71 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001512/0.1573, allocations: 314.8 kB / 0.5612 GB, free: 15.4 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.459e-05/0.1573, allocations: 4 kB / 0.5612 GB, free: 15.39 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.344e-06/0.1573, allocations: 4 kB / 0.5612 GB, free: 15.39 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.182e-05/0.1573, allocations: 64.27 kB / 0.5613 GB, free: 15.31 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.1573, allocations: 3.938 kB / 0.5613 GB, free: 15.31 MB / 430.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.95e-05/0.1574, allocations: 67.39 kB / 0.5613 GB, free: 15.23 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.132e-05/0.1575, allocations: 31.73 kB / 0.5614 GB, free: 15.2 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.609e-06/0.1575, allocations: 0 / 0.5614 GB, free: 15.2 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.418e-05/0.1575, allocations: 0 / 0.5614 GB, free: 15.2 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.577e-05/0.1575, allocations: 4 kB / 0.5614 GB, free: 15.19 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.22e-06/0.1575, allocations: 4.031 kB / 0.5614 GB, free: 15.19 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.566e-05/0.1575, allocations: 4 kB / 0.5614 GB, free: 15.18 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.731e-06/0.1575, allocations: 0 / 0.5614 GB, free: 15.18 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.0001128/0.1576, allocations: 151.5 kB / 0.5615 GB, free: 15.02 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.237e-05/0.1577, allocations: 0 / 0.5615 GB, free: 15.02 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.557e-05/0.1577, allocations: 3.125 kB / 0.5615 GB, free: 15.02 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.393e-06/0.1577, allocations: 0 / 0.5615 GB, free: 15.02 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.1577, allocations: 0 / 0.5615 GB, free: 15.02 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/0.1577, allocations: 4 kB / 0.5615 GB, free: 15.02 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003025/0.158, allocations: 296.3 kB / 0.5618 GB, free: 14.66 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.158, allocations: 0 / 0.5618 GB, free: 14.66 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.446e-06/0.158, allocations: 0 / 0.5618 GB, free: 14.66 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.358e-06/0.158, allocations: 3.984 kB / 0.5618 GB, free: 14.66 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.036e-05/0.158, allocations: 4 kB / 0.5618 GB, free: 14.66 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.979e-06/0.158, allocations: 3.938 kB / 0.5618 GB, free: 14.65 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.158, allocations: 3.938 kB / 0.5618 GB, free: 14.65 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001531/0.1582, allocations: 173.2 kB / 0.562 GB, free: 14.46 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.542e-05/0.1582, allocations: 77.11 kB / 0.5621 GB, free: 14.36 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.291e-05/0.1582, allocations: 7.938 kB / 0.5621 GB, free: 14.36 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.874e-05/0.1583, allocations: 0 / 0.5621 GB, free: 14.36 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.841e-05/0.1583, allocations: 0 / 0.5621 GB, free: 14.36 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.795e-06/0.1583, allocations: 0 / 0.5621 GB, free: 14.36 MB / 430.1 MB Notification: Performance of sorting global known variables: time 3.614e-05/0.1583, allocations: 79.28 kB / 0.5621 GB, free: 14.28 MB / 430.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1583, allocations: 0 / 0.5621 GB, free: 14.28 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0005205/0.1589, allocations: 139.5 kB / 0.5623 GB, free: 14.14 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.001281/0.1601, allocations: 0.9099 MB / 0.5632 GB, free: 13.2 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0001379/0.1603, allocations: 67.44 kB / 0.5632 GB, free: 13.12 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.1603, allocations: 0 / 0.5632 GB, free: 13.12 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 5.458e-05/0.1603, allocations: 55.41 kB / 0.5633 GB, free: 13.05 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001988/0.1605, allocations: 4 kB / 0.5633 GB, free: 13.05 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00117/0.1617, allocations: 1.203 MB / 0.5645 GB, free: 11.76 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003518/0.1621, allocations: 0.669 MB / 0.5651 GB, free: 11.07 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 1.344e-05/0.1621, allocations: 4 kB / 0.5651 GB, free: 11.06 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.399e-05/0.1621, allocations: 7.438 kB / 0.5651 GB, free: 11.05 MB / 430.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1621, allocations: 0 / 0.5651 GB, free: 11.05 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02889/0.191, allocations: 4.528 MB / 0.5695 GB, free: 6.605 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.205/8.396, allocations: 8.047 kB / 0.5696 GB, free: 6.598 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 & 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) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions_res.csv","/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.54310396395158]