Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.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: translateModel(ModelicaTest.Math.Random.TestSpecial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial") translateModel(ModelicaTest.Math.Random.TestSpecial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009145/0.0009145, allocations: 95.84 kB / 17.35 MB, free: 6.023 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001247/0.001247, allocations: 200.3 kB / 18.28 MB, free: 5.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.462/1.462, allocations: 227.7 MB / 246.8 MB, free: 9.766 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2636/0.2636, allocations: 46.18 MB / 345.2 MB, free: 11.17 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002794/0.0002794, allocations: 11.98 kB / 419.5 MB, free: 19.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1495/0.1498, allocations: 63.56 MB / 483.1 MB, free: 4.133 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.000721/0.1506, allocations: 234.8 kB / 483.3 MB, free: 3.902 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002983/0.1536, allocations: 2.081 MB / 485.4 MB, free: 1.801 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.125e-05/0.1536, allocations: 0 / 485.4 MB, free: 1.801 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.769e-05/0.1537, allocations: 0 / 485.4 MB, free: 1.801 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.392e-06/0.1537, allocations: 0 / 485.4 MB, free: 1.801 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Math.mo:928:5-1011:16:writable] Warning: Pure function ‘ModelicaTest.Math.Random.special‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.001251/0.1549, allocations: 410.4 kB / 485.8 MB, free: 1.402 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.497e-05/0.155, allocations: 4 kB / 485.8 MB, free: 1.398 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.988e-05/0.155, allocations: 0 / 485.8 MB, free: 1.398 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.975e-05/0.1551, allocations: 4 kB / 485.8 MB, free: 1.395 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.849e-05/0.1551, allocations: 3.984 kB / 485.8 MB, free: 1.391 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.724e-06/0.1551, allocations: 0 / 485.8 MB, free: 1.391 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009792/0.1561, allocations: 0.6784 MB / 486.5 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.875e-06/0.1561, allocations: 0 / 486.5 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.196e-05/0.1561, allocations: 37.62 kB / 486.5 MB, free: 0.668 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005351/0.1567, allocations: 403.4 kB / 486.9 MB, free: 280 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.1567, allocations: 4 kB / 486.9 MB, free: 276 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.1567, allocations: 0 / 486.9 MB, free: 276 kB / 350.1 MB Notification: Performance of Transformations before backend: time 4.378e-06/0.1567, allocations: 0 / 486.9 MB, free: 276 kB / 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.0004762/0.1572, allocations: 411.8 kB / 487.3 MB, free: 15.82 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.41e-05/0.1572, allocations: 8.875 kB / 487.3 MB, free: 15.81 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.144e-05/0.1573, allocations: 4.875 kB / 487.3 MB, free: 15.8 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001056/0.1574, allocations: 164.4 kB / 487.5 MB, free: 15.61 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.126e-05/0.1574, allocations: 4.375 kB / 487.5 MB, free: 15.6 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.189e-05/0.1574, allocations: 384 / 487.5 MB, free: 15.6 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.883e-05/0.1575, allocations: 34.02 kB / 487.5 MB, free: 15.56 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.288e-06/0.1576, allocations: 4 kB / 487.5 MB, free: 15.56 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.638e-06/0.1576, allocations: 0 / 487.5 MB, free: 15.56 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.549e-06/0.1576, allocations: 0 / 487.5 MB, free: 15.56 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.901e-05/0.1576, allocations: 3.938 kB / 487.5 MB, free: 15.55 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001348/0.1577, allocations: 145.7 kB / 487.7 MB, free: 15.36 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.218e-05/0.1578, allocations: 22.59 kB / 487.7 MB, free: 15.33 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.44e-05/0.1578, allocations: 4.859 kB / 487.7 MB, free: 15.32 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.546e-06/0.1578, allocations: 4 kB / 487.7 MB, free: 15.32 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.444e-05/0.1579, allocations: 64.27 kB / 487.8 MB, free: 15.24 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 1.153e-06/0.1579, allocations: 0 / 487.8 MB, free: 15.24 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001834/0.1581, allocations: 71.33 kB / 487.8 MB, free: 15.16 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.431e-05/0.1581, allocations: 77.11 kB / 487.9 MB, free: 15.07 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.554e-05/0.1582, allocations: 89.86 kB / 488 MB, free: 14.97 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.738e-05/0.1582, allocations: 25.7 kB / 488 MB, free: 14.94 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.66e-05/0.1583, allocations: 84.27 kB / 488.1 MB, free: 14.85 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.701e-05/0.1583, allocations: 0 / 488.1 MB, free: 14.85 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.816e-05/0.1583, allocations: 13.72 kB / 488.1 MB, free: 14.83 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001003/0.1584, allocations: 310.8 kB / 488.4 MB, free: 14.52 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.808e-06/0.1584, allocations: 4 kB / 488.4 MB, free: 14.52 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.288e-06/0.1584, allocations: 0 / 488.4 MB, free: 14.52 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.485e-05/0.1585, allocations: 60.27 kB / 488.5 MB, free: 14.44 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.228e-06/0.1585, allocations: 0 / 488.5 MB, free: 14.44 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.182e-05/0.1586, allocations: 75.33 kB / 488.6 MB, free: 14.36 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.383e-05/0.1586, allocations: 33.64 kB / 488.6 MB, free: 14.32 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.358e-06/0.1586, allocations: 0 / 488.6 MB, free: 14.32 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.409e-05/0.1587, allocations: 4 kB / 488.6 MB, free: 14.31 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.483e-06/0.1587, allocations: 0 / 488.6 MB, free: 14.31 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.366e-06/0.1587, allocations: 3.984 kB / 488.6 MB, free: 14.31 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.537e-05/0.1587, allocations: 0 / 488.6 MB, free: 14.31 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.742e-06/0.1587, allocations: 0 / 488.6 MB, free: 14.31 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: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * 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 8.955e-05/0.1588, allocations: 143.5 kB / 488.7 MB, free: 14.15 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.037e-06/0.1588, allocations: 11.97 kB / 488.8 MB, free: 14.14 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.706e-06/0.1588, allocations: 3.125 kB / 488.8 MB, free: 14.14 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.21e-07/0.1588, allocations: 0 / 488.8 MB, free: 14.14 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.1589, allocations: 0 / 488.8 MB, free: 14.14 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.224e-06/0.1589, allocations: 0 / 488.8 MB, free: 14.14 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.93e-05/0.159, allocations: 149.7 kB / 488.9 MB, free: 13.95 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.52e-07/0.159, allocations: 3.938 kB / 488.9 MB, free: 13.94 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.61e-07/0.159, allocations: 0 / 488.9 MB, free: 13.94 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.394e-06/0.159, allocations: 3.938 kB / 488.9 MB, free: 13.94 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.512e-06/0.159, allocations: 0 / 488.9 MB, free: 13.94 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.42e-07/0.159, allocations: 0 / 488.9 MB, free: 13.94 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.159, allocations: 4 kB / 488.9 MB, free: 13.93 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.351e-05/0.1591, allocations: 98.75 kB / 489 MB, free: 13.81 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.308e-05/0.1591, allocations: 81.02 kB / 489.1 MB, free: 13.71 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.504e-05/0.1592, allocations: 7.938 kB / 489.1 MB, free: 13.71 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.755e-06/0.1592, allocations: 0 / 489.1 MB, free: 13.71 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.624e-05/0.1592, allocations: 0 / 489.1 MB, free: 13.71 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.274e-06/0.1592, allocations: 0 / 489.1 MB, free: 13.71 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.253e-05/0.1592, allocations: 79.31 kB / 489.2 MB, free: 13.63 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1593, allocations: 0 / 489.2 MB, free: 13.63 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003598/0.1596, allocations: 132 kB / 489.3 MB, free: 13.5 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: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * 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.0007948/0.1604, allocations: 308.8 kB / 489.6 MB, free: 13.19 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 9.524e-05/0.1605, allocations: 63.41 kB / 489.7 MB, free: 13.12 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.35e-06/0.1605, allocations: 3.938 kB / 489.7 MB, free: 13.11 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 2.554e-05/0.1606, allocations: 51.41 kB / 489.7 MB, free: 13.05 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001244/0.1607, allocations: 6.031 kB / 489.7 MB, free: 13.05 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001868/0.1609, allocations: 78.75 kB / 489.8 MB, free: 12.94 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002234/0.1611, allocations: 0.6772 MB / 490.5 MB, free: 12.24 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.902e-06/0.1611, allocations: 0 / 490.5 MB, free: 12.24 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.265e-06/0.1612, allocations: 7.438 kB / 490.5 MB, free: 12.23 MB / 366.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1612, allocations: 3.938 kB / 490.5 MB, free: 12.23 MB / 366.1 MB Notification: Performance of Templates: time 0.007088/0.1683, allocations: 3.494 MB / 494 MB, free: 8.738 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.sim & ./ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestSpecial/TestSpecial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches