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.001311/0.001311, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001421/0.001421, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.476/1.476, allocations: 227.4 MB / 246.8 MB, free: 10.6 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2556/0.2556, allocations: 46.13 MB / 344.2 MB, free: 11.55 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002173/0.002173, allocations: 83.02 kB / 417.7 MB, free: 19.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1513/0.1535, allocations: 62.46 MB / 480.1 MB, free: 5.223 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.001891/0.1554, allocations: 499.7 kB / 480.6 MB, free: 4.73 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003122/0.1586, allocations: 2.034 MB / 482.6 MB, free: 2.676 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.729e-05/0.1586, allocations: 0 / 482.6 MB, free: 2.676 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.258e-05/0.1586, allocations: 0 / 482.6 MB, free: 2.676 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.41e-06/0.1587, allocations: 0 / 482.6 MB, free: 2.676 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.001551/0.1602, allocations: 0.4944 MB / 483.1 MB, free: 2.184 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.82e-05/0.1603, allocations: 0 / 483.1 MB, free: 2.184 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.384e-05/0.1603, allocations: 4 kB / 483.1 MB, free: 2.18 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.699e-05/0.1604, allocations: 3.938 kB / 483.1 MB, free: 2.176 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.192e-05/0.1604, allocations: 0 / 483.1 MB, free: 2.176 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.813e-06/0.1604, allocations: 0 / 483.1 MB, free: 2.176 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001082/0.1615, allocations: 0.6396 MB / 483.8 MB, free: 1.535 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.565e-06/0.1615, allocations: 0 / 483.8 MB, free: 1.535 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.57e-05/0.1615, allocations: 7.938 kB / 483.8 MB, free: 1.527 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005971/0.1621, allocations: 387.3 kB / 484.2 MB, free: 1.148 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.1622, allocations: 4 kB / 484.2 MB, free: 1.145 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.1622, allocations: 0 / 484.2 MB, free: 1.145 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.42e-06/0.1622, allocations: 0 / 484.2 MB, free: 1.145 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.0005415/0.1627, allocations: 409.5 kB / 484.6 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.171e-05/0.1628, allocations: 12.03 kB / 484.6 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.292e-05/0.1628, allocations: 0.9375 kB / 484.6 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001337/0.1629, allocations: 160.4 kB / 484.7 MB, free: 496 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.281e-05/0.163, allocations: 4.375 kB / 484.7 MB, free: 492 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.177e-05/0.163, allocations: 384 / 484.7 MB, free: 492 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001073/0.1631, allocations: 42 kB / 484.8 MB, free: 444 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.935e-06/0.1631, allocations: 0 / 484.8 MB, free: 444 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.153e-06/0.1631, allocations: 0 / 484.8 MB, free: 444 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.482e-06/0.1631, allocations: 0 / 484.8 MB, free: 444 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.261e-05/0.1632, allocations: 7.938 kB / 484.8 MB, free: 436 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001791/0.1633, allocations: 145.6 kB / 484.9 MB, free: 240 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.379e-05/0.1634, allocations: 22.67 kB / 485 MB, free: 208 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.484e-05/0.1634, allocations: 4.859 kB / 485 MB, free: 200 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.568e-06/0.1634, allocations: 4 kB / 485 MB, free: 196 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.192e-05/0.1635, allocations: 64.19 kB / 485 MB, free: 116 kB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.092e-06/0.1635, allocations: 0 / 485 MB, free: 116 kB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001975/0.1637, allocations: 63.34 kB / 485.1 MB, free: 40 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.846e-05/0.1638, allocations: 81.11 kB / 485.2 MB, free: 15.94 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.2e-05/0.1639, allocations: 93.86 kB / 485.3 MB, free: 15.84 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.6e-05/0.1639, allocations: 25.7 kB / 485.3 MB, free: 15.81 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.666e-05/0.1639, allocations: 80.27 kB / 485.4 MB, free: 15.73 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.232e-05/0.1639, allocations: 7.984 kB / 485.4 MB, free: 15.72 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.97e-05/0.164, allocations: 13.72 kB / 485.4 MB, free: 15.7 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001448/0.1641, allocations: 310.8 kB / 485.7 MB, free: 15.39 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.013e-05/0.1641, allocations: 0 / 485.7 MB, free: 15.39 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.401e-06/0.1642, allocations: 0 / 485.7 MB, free: 15.39 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.928e-05/0.1642, allocations: 64.27 kB / 485.8 MB, free: 15.31 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.1642, allocations: 3.938 kB / 485.8 MB, free: 15.3 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.299e-05/0.1643, allocations: 67.45 kB / 485.8 MB, free: 15.23 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.788e-05/0.1644, allocations: 33.64 kB / 485.9 MB, free: 15.19 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.571e-06/0.1644, allocations: 3.938 kB / 485.9 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.114e-05/0.1644, allocations: 7.938 kB / 485.9 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.172e-06/0.1644, allocations: 0 / 485.9 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.951e-06/0.1644, allocations: 0 / 485.9 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.3e-05/0.1644, allocations: 0 / 485.9 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.143e-06/0.1645, allocations: 0 / 485.9 MB, free: 15.18 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 0.0001096/0.1646, allocations: 135.5 kB / 486 MB, free: 15.03 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.408e-05/0.1646, allocations: 15.95 kB / 486 MB, free: 15.01 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.935e-06/0.1646, allocations: 3.125 kB / 486 MB, free: 15.01 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.579e-06/0.1646, allocations: 3.984 kB / 486 MB, free: 15.01 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.1646, allocations: 0 / 486 MB, free: 15.01 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.1646, allocations: 0 / 486 MB, free: 15.01 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001279/0.1648, allocations: 145.7 kB / 486.2 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.11e-07/0.1648, allocations: 0 / 486.2 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.8e-07/0.1648, allocations: 0 / 486.2 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.919e-06/0.1648, allocations: 7.922 kB / 486.2 MB, free: 14.81 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.812e-06/0.1648, allocations: 0 / 486.2 MB, free: 14.81 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.32e-07/0.1648, allocations: 0 / 486.2 MB, free: 14.81 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.1648, allocations: 7.938 kB / 486.2 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001058/0.1649, allocations: 86.84 kB / 486.3 MB, free: 14.69 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.839e-05/0.165, allocations: 85 kB / 486.3 MB, free: 14.59 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.843e-05/0.165, allocations: 11.94 kB / 486.4 MB, free: 14.58 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.426e-06/0.165, allocations: 0 / 486.4 MB, free: 14.58 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.523e-05/0.165, allocations: 0 / 486.4 MB, free: 14.58 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.495e-06/0.1651, allocations: 0 / 486.4 MB, free: 14.58 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.828e-05/0.1651, allocations: 83.34 kB / 486.4 MB, free: 14.5 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1651, allocations: 0 / 486.4 MB, free: 14.5 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004108/0.1655, allocations: 132 kB / 486.6 MB, free: 14.37 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.0008386/0.1664, allocations: 311.8 kB / 486.9 MB, free: 14.06 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000119/0.1665, allocations: 71.33 kB / 486.9 MB, free: 13.98 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.1665, allocations: 0 / 486.9 MB, free: 13.98 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.489e-05/0.1666, allocations: 51.41 kB / 487 MB, free: 13.91 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001183/0.1667, allocations: 4 kB / 487 MB, free: 13.91 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002051/0.1669, allocations: 80.94 kB / 487.1 MB, free: 13.8 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000338/0.1672, allocations: 0.6769 MB / 487.8 MB, free: 13.1 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 7.043e-06/0.1673, allocations: 0 / 487.8 MB, free: 13.1 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.156e-05/0.1673, allocations: 11.44 kB / 487.8 MB, free: 13.09 MB / 366.1 MB Notification: Performance of SimCode: time 2e-07/0.1673, allocations: 0 / 487.8 MB, free: 13.09 MB / 366.1 MB Notification: Performance of Templates: time 0.00784/0.1751, allocations: 3.511 MB / 491.3 MB, free: 9.586 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