Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) 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.TestTruncatedDistributions,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_Random_TestTruncatedDistributions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestTruncatedDistributions,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_Random_TestTruncatedDistributions",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001432/0.001432, allocations: 103.5 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001599/0.001599, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.456/1.456, allocations: 227.4 MB / 246.3 MB, free: 10.73 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2394/0.2394, allocations: 46.11 MB / 343.6 MB, free: 11.8 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001384/0.001384, allocations: 74.44 kB / 416.9 MB, free: 20.1 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1465/0.1479, allocations: 62.45 MB / 479.4 MB, free: 5.629 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001733/0.1496, allocations: 0.5584 MB / 479.9 MB, free: 5.066 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003564/0.1532, allocations: 2.443 MB / 482.4 MB, free: 2.602 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.479e-05/0.1533, allocations: 0 / 482.4 MB, free: 2.602 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.733e-05/0.1533, allocations: 0 / 482.4 MB, free: 2.602 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.39e-06/0.1533, allocations: 0 / 482.4 MB, free: 2.602 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Math.mo:1098:5-1194:31:writable] Warning: Pure function ‘ModelicaTest.Math.Random.truncatedDistributions‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.001587/0.1549, allocations: 482.2 kB / 482.9 MB, free: 2.133 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.773e-05/0.155, allocations: 0 / 482.9 MB, free: 2.133 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.903e-05/0.155, allocations: 0 / 482.9 MB, free: 2.133 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.076e-05/0.155, allocations: 0 / 482.9 MB, free: 2.133 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.234e-05/0.1551, allocations: 4 kB / 482.9 MB, free: 2.129 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.552e-06/0.1551, allocations: 0 / 482.9 MB, free: 2.129 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001338/0.1564, allocations: 0.7408 MB / 483.6 MB, free: 1.387 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.261e-05/0.1565, allocations: 0 / 483.6 MB, free: 1.387 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.726e-05/0.1565, allocations: 0 / 483.6 MB, free: 1.387 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007476/0.1573, allocations: 471.4 kB / 484.1 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/0.1573, allocations: 3.938 kB / 484.1 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.073e-06/0.1573, allocations: 0 / 484.1 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.69e-06/0.1573, allocations: 0 / 484.1 MB, free: 0.9219 MB / 350.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.0005044/0.1578, allocations: 437.3 kB / 484.5 MB, free: 452 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.474e-05/0.1579, allocations: 8.875 kB / 484.5 MB, free: 444 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.758e-05/0.1579, allocations: 30.75 kB / 484.5 MB, free: 404 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.153e-05/0.158, allocations: 0.9375 kB / 484.5 MB, free: 404 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001252/0.1581, allocations: 172.3 kB / 484.7 MB, free: 192 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.976e-06/0.1581, allocations: 4.375 kB / 484.7 MB, free: 188 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.094e-05/0.1581, allocations: 384 / 484.7 MB, free: 188 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000113/0.1583, allocations: 41.81 kB / 484.7 MB, free: 140 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.126e-05/0.1583, allocations: 0 / 484.7 MB, free: 140 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.127e-06/0.1583, allocations: 0 / 484.7 MB, free: 140 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.167e-06/0.1583, allocations: 0 / 484.7 MB, free: 140 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.811e-05/0.1583, allocations: 7.938 kB / 484.8 MB, free: 132 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003017/0.1586, allocations: 232.9 kB / 485 MB, free: 15.85 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.859e-05/0.1587, allocations: 26.52 kB / 485 MB, free: 15.82 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.525e-05/0.1587, allocations: 8.922 kB / 485 MB, free: 15.8 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.213e-05/0.1588, allocations: 0 / 485 MB, free: 15.8 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.211e-05/0.1588, allocations: 64.25 kB / 485.1 MB, free: 15.73 MB / 366.1 MB Notification: Performance of pre-optimization done (n=2): time 1.122e-06/0.1588, allocations: 0 / 485.1 MB, free: 15.73 MB / 366.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002146/0.1591, allocations: 67.34 kB / 485.1 MB, free: 15.65 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.992e-05/0.1591, allocations: 89.23 kB / 485.2 MB, free: 15.54 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.238e-05/0.1592, allocations: 93.86 kB / 485.3 MB, free: 15.44 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.51e-05/0.1592, allocations: 29.69 kB / 485.4 MB, free: 15.41 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.965e-05/0.1592, allocations: 80.14 kB / 485.4 MB, free: 15.32 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.169e-05/0.1593, allocations: 7.844 kB / 485.4 MB, free: 15.32 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.671e-05/0.1593, allocations: 13.72 kB / 485.5 MB, free: 15.3 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001308/0.1595, allocations: 314.8 kB / 485.8 MB, free: 14.98 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.321e-05/0.1595, allocations: 0 / 485.8 MB, free: 14.98 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.638e-06/0.1595, allocations: 8 kB / 485.8 MB, free: 14.97 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.735e-05/0.1596, allocations: 64.25 kB / 485.8 MB, free: 14.89 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.917e-06/0.1596, allocations: 3.938 kB / 485.8 MB, free: 14.89 MB / 366.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.462e-05/0.1597, allocations: 71.34 kB / 485.9 MB, free: 14.81 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.592e-05/0.1597, allocations: 29.7 kB / 485.9 MB, free: 14.77 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.73e-06/0.1597, allocations: 0 / 485.9 MB, free: 14.77 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.2e-05/0.1597, allocations: 0 / 485.9 MB, free: 14.77 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.897e-05/0.1598, allocations: 4 kB / 485.9 MB, free: 14.77 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.295e-06/0.1598, allocations: 3.984 kB / 485.9 MB, free: 14.77 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.796e-05/0.1598, allocations: 8.078 kB / 485.9 MB, free: 14.76 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.355e-06/0.1598, allocations: 0 / 485.9 MB, free: 14.76 MB / 366.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.0001056/0.1599, allocations: 147.5 kB / 486.1 MB, free: 14.6 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.159e-05/0.1599, allocations: 0 / 486.1 MB, free: 14.6 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.533e-05/0.16, allocations: 3.125 kB / 486.1 MB, free: 14.6 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.042e-06/0.16, allocations: 0 / 486.1 MB, free: 14.6 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.85e-06/0.16, allocations: 0 / 486.1 MB, free: 14.6 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.16, allocations: 0 / 486.1 MB, free: 14.6 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002683/0.1603, allocations: 312.2 kB / 486.4 MB, free: 14.23 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.1603, allocations: 0 / 486.4 MB, free: 14.23 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.02e-06/0.1603, allocations: 3.938 kB / 486.4 MB, free: 14.23 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.282e-06/0.1603, allocations: 3.938 kB / 486.4 MB, free: 14.22 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.037e-06/0.1603, allocations: 4 kB / 486.4 MB, free: 14.22 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.82e-07/0.1603, allocations: 0 / 486.4 MB, free: 14.22 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/0.1603, allocations: 0 / 486.4 MB, free: 14.22 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001318/0.1605, allocations: 177.1 kB / 486.6 MB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.255e-05/0.1605, allocations: 81.11 kB / 486.7 MB, free: 13.93 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.394e-05/0.1605, allocations: 0 / 486.7 MB, free: 13.93 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.098e-05/0.1606, allocations: 0 / 486.7 MB, free: 13.93 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.127e-05/0.1606, allocations: 0 / 486.7 MB, free: 13.93 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.43e-06/0.1606, allocations: 4 kB / 486.7 MB, free: 13.92 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.746e-05/0.1606, allocations: 75.28 kB / 486.7 MB, free: 13.85 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1607, allocations: 0 / 486.7 MB, free: 13.85 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004489/0.1611, allocations: 159.9 kB / 486.9 MB, free: 13.69 MB / 366.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.001246/0.1624, allocations: 0.9434 MB / 487.8 MB, free: 12.71 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001282/0.1625, allocations: 67.38 kB / 487.9 MB, free: 12.64 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.1625, allocations: 0 / 487.9 MB, free: 12.64 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.133e-05/0.1626, allocations: 67.33 kB / 488 MB, free: 12.56 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002028/0.1628, allocations: 0 / 488 MB, free: 12.56 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001099/0.1639, allocations: 1.201 MB / 489.2 MB, free: 11.27 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002686/0.1642, allocations: 0.6847 MB / 489.9 MB, free: 10.56 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.33e-05/0.1642, allocations: 0 / 489.9 MB, free: 10.56 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.017e-05/0.1642, allocations: 11.44 kB / 489.9 MB, free: 10.55 MB / 366.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1642, allocations: 0 / 489.9 MB, free: 10.55 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01655/0.1808, allocations: 4.488 MB / 494.4 MB, free: 6.168 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002096/0.181, allocations: 258.8 kB / 494.6 MB, free: 5.902 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.995/2.176, allocations: 3.625 kB / 494.6 MB, free: 5.902 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Math_Random_TestTruncatedDistributions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Math_Random_TestTruncatedDistributions.fmu > ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestTruncatedDistributions/TestTruncatedDistributions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches