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.001305/0.001305, allocations: 118.8 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001668/0.001668, allocations: 202 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.435/1.435, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2263/0.2263, allocations: 46.1 MB / 344.3 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00136/0.00136, allocations: 83.81 kB / 481.3 MB, free: 4.047 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4711/0.4725, allocations: 62.43 MB / 0.531 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.002687/0.4752, allocations: 0.4976 MB / 0.5315 GB, free: 13.23 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004091/0.4794, allocations: 2.023 MB / 0.5334 GB, free: 11.63 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.416e-05/0.4794, allocations: 0 / 0.5334 GB, free: 11.63 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.965e-05/0.4795, allocations: 0 / 0.5334 GB, free: 11.63 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 1.154e-05/0.4795, allocations: 0 / 0.5334 GB, free: 11.63 MB / 398.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.00267/0.4822, allocations: 0.4966 MB / 0.5339 GB, free: 11.34 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 7.236e-05/0.4823, allocations: 9.375 kB / 0.5339 GB, free: 11.34 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.85e-05/0.4824, allocations: 5.359 kB / 0.5339 GB, free: 11.33 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.698e-05/0.4824, allocations: 1.375 kB / 0.5339 GB, free: 11.33 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.619e-05/0.4824, allocations: 0 / 0.5339 GB, free: 11.33 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 9.979e-06/0.4825, allocations: 1.375 kB / 0.5339 GB, free: 11.33 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001845/0.4843, allocations: 0.6359 MB / 0.5346 GB, free: 10.98 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.41e-05/0.4843, allocations: 3.938 kB / 0.5346 GB, free: 10.98 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.249e-05/0.4844, allocations: 1.375 kB / 0.5346 GB, free: 10.98 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001326/0.4857, allocations: 387.7 kB / 0.5349 GB, free: 10.74 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.573e-06/0.4857, allocations: 0 / 0.5349 GB, free: 10.74 MB / 398.1 MB Notification: Performance of FrontEnd: time 4.168e-06/0.4858, allocations: 1.062 kB / 0.5349 GB, free: 10.74 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.764e-06/0.4858, allocations: 3.938 kB / 0.5349 GB, free: 10.74 MB / 398.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.001064/0.4868, allocations: 410.3 kB / 0.5353 GB, free: 10.31 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.809e-05/0.4869, allocations: 14.05 kB / 0.5354 GB, free: 10.3 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.836e-05/0.487, allocations: 4.938 kB / 0.5354 GB, free: 10.3 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001586/0.4871, allocations: 165.6 kB / 0.5355 GB, free: 10.1 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.565e-05/0.4872, allocations: 384 / 0.5355 GB, free: 10.1 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.047e-05/0.4872, allocations: 1.531 kB / 0.5355 GB, free: 10.1 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001623/0.4874, allocations: 32.11 kB / 0.5355 GB, free: 10.07 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.181e-05/0.4874, allocations: 0 / 0.5355 GB, free: 10.07 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.517e-05/0.4874, allocations: 1.094 kB / 0.5355 GB, free: 10.07 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.963e-06/0.4874, allocations: 0 / 0.5355 GB, free: 10.07 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.363e-05/0.4875, allocations: 4.969 kB / 0.5356 GB, free: 10.06 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002405/0.4877, allocations: 159.6 kB / 0.5357 GB, free: 9.863 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.539e-05/0.4878, allocations: 15.7 kB / 0.5357 GB, free: 9.84 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.276e-05/0.4878, allocations: 7.141 kB / 0.5357 GB, free: 9.832 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.523e-06/0.4878, allocations: 0 / 0.5357 GB, free: 9.832 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.567e-05/0.4879, allocations: 61.36 kB / 0.5358 GB, free: 9.758 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.543e-06/0.4879, allocations: 0 / 0.5358 GB, free: 9.758 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002711/0.4882, allocations: 75.45 kB / 0.5359 GB, free: 9.68 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.333e-05/0.4883, allocations: 78.2 kB / 0.5359 GB, free: 9.586 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.675e-05/0.4883, allocations: 89.86 kB / 0.536 GB, free: 9.488 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.007e-05/0.4884, allocations: 26.83 kB / 0.536 GB, free: 9.457 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.686e-05/0.4884, allocations: 80.14 kB / 0.5361 GB, free: 9.375 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.671e-05/0.4884, allocations: 1.062 kB / 0.5361 GB, free: 9.375 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.949e-05/0.4885, allocations: 12.12 kB / 0.5361 GB, free: 9.359 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001197/0.4886, allocations: 314.8 kB / 0.5364 GB, free: 9.043 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.897e-05/0.4886, allocations: 8.953 kB / 0.5364 GB, free: 9.035 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.296e-06/0.4886, allocations: 4.812 kB / 0.5364 GB, free: 9.031 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.984e-05/0.4887, allocations: 59.55 kB / 0.5365 GB, free: 8.961 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.4887, allocations: 1.125 kB / 0.5365 GB, free: 8.961 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.655e-05/0.4888, allocations: 62.03 kB / 0.5366 GB, free: 8.895 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.798e-05/0.4889, allocations: 39.31 kB / 0.5366 GB, free: 8.855 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.969e-06/0.4889, allocations: 0 / 0.5366 GB, free: 8.855 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.438e-05/0.4889, allocations: 5.156 kB / 0.5366 GB, free: 8.852 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.663e-06/0.4889, allocations: 0 / 0.5366 GB, free: 8.852 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.545e-06/0.4889, allocations: 5.188 kB / 0.5366 GB, free: 8.848 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.94e-05/0.489, allocations: 0 / 0.5366 GB, free: 8.848 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.959e-06/0.489, allocations: 1.188 kB / 0.5366 GB, free: 8.848 MB / 398.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.0001067/0.4891, allocations: 141.8 kB / 0.5367 GB, free: 8.695 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.492e-05/0.4891, allocations: 5 kB / 0.5368 GB, free: 8.691 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.322e-05/0.4891, allocations: 3.125 kB / 0.5368 GB, free: 8.691 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.707e-06/0.4891, allocations: 1.094 kB / 0.5368 GB, free: 8.691 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.83e-06/0.4891, allocations: 3.938 kB / 0.5368 GB, free: 8.688 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.856e-06/0.4892, allocations: 0 / 0.5368 GB, free: 8.688 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001214/0.4893, allocations: 155.8 kB / 0.5369 GB, free: 8.488 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.434e-06/0.4893, allocations: 0 / 0.5369 GB, free: 8.488 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.503e-06/0.4893, allocations: 0 / 0.5369 GB, free: 8.488 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.639e-06/0.4893, allocations: 5.125 kB / 0.5369 GB, free: 8.484 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.524e-06/0.4893, allocations: 1.219 kB / 0.5369 GB, free: 8.484 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.4893, allocations: 0 / 0.5369 GB, free: 8.484 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/0.4893, allocations: 0 / 0.5369 GB, free: 8.484 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001302/0.4895, allocations: 94.05 kB / 0.537 GB, free: 8.379 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.368e-05/0.4895, allocations: 82.23 kB / 0.5371 GB, free: 8.281 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.797e-05/0.4895, allocations: 5.25 kB / 0.5371 GB, free: 8.277 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.125e-05/0.4896, allocations: 0 / 0.5371 GB, free: 8.277 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.714e-05/0.4896, allocations: 5.109 kB / 0.5371 GB, free: 8.273 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.837e-06/0.4896, allocations: 1.188 kB / 0.5371 GB, free: 8.273 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.868e-05/0.4896, allocations: 75.28 kB / 0.5372 GB, free: 8.199 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4896, allocations: 0 / 0.5372 GB, free: 8.199 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007043/0.4903, allocations: 126.8 kB / 0.5373 GB, free: 8.168 MB / 398.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.001259/0.4916, allocations: 308.3 kB / 0.5376 GB, free: 7.988 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001288/0.4917, allocations: 64.44 kB / 0.5376 GB, free: 7.918 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.007e-06/0.4918, allocations: 4.062 kB / 0.5376 GB, free: 7.914 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.963e-05/0.4918, allocations: 58.77 kB / 0.5377 GB, free: 7.848 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001531/0.492, allocations: 2.25 kB / 0.5377 GB, free: 7.848 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002464/0.4922, allocations: 81.45 kB / 0.5378 GB, free: 7.75 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002626/0.4925, allocations: 0.674 MB / 0.5384 GB, free: 7.051 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 9.377e-06/0.4925, allocations: 0 / 0.5384 GB, free: 7.051 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.465e-05/0.4925, allocations: 8.781 kB / 0.5384 GB, free: 7.043 MB / 398.1 MB Notification: Performance of SimCode: time 6.21e-07/0.4925, allocations: 1.031 kB / 0.5384 GB, free: 7.043 MB / 398.1 MB Notification: Performance of Templates: time 0.01111/0.5037, allocations: 3.52 MB / 0.5419 GB, free: 5.25 MB / 398.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