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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001384/0.001384, allocations: 86.02 kB / 20.68 MB, free: 1.035 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.001478/0.001478, allocations: 158.8 kB / 23.95 MB, free: 4.168 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.497/1.497, allocations: 177 MB / 204.1 MB, free: 9.18 MB / 190.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.2266/0.2266, allocations: 34.26 MB / 294.8 MB, free: 14.54 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: translateModel(ModelicaTest.Math.Random.TestSpecial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial") translateModel(ModelicaTest.Math.Random.TestSpecial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.804e-06/1.804e-06, allocations: 0 / 442.6 MB, free: 5.332 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.311e-05/3.492e-05, allocations: 4.812 kB / 442.6 MB, free: 5.328 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.001612/0.001647, allocations: 0.5088 MB / 443.2 MB, free: 4.82 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003283/0.004929, allocations: 1.93 MB / 445.1 MB, free: 2.867 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.16e-05/0.004951, allocations: 0 / 445.1 MB, free: 2.867 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 1.756e-05/0.004969, allocations: 0 / 445.1 MB, free: 2.867 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 7.995e-06/0.004977, allocations: 3.938 kB / 445.1 MB, free: 2.863 MB / 366.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.001519/0.006496, allocations: 0.5059 MB / 445.6 MB, free: 2.359 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 4.88e-05/0.006545, allocations: 8 kB / 445.6 MB, free: 2.352 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.738e-05/0.006582, allocations: 0 / 445.6 MB, free: 2.352 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.765e-05/0.00661, allocations: 0 / 445.6 MB, free: 2.352 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.013e-05/0.00663, allocations: 4 kB / 445.6 MB, free: 2.348 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.937e-06/0.006639, allocations: 0 / 445.6 MB, free: 2.348 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001113/0.007752, allocations: 0.6743 MB / 446.3 MB, free: 1.672 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 1.205e-05/0.007764, allocations: 4 kB / 446.3 MB, free: 1.668 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 2.076e-05/0.007785, allocations: 0 / 446.3 MB, free: 1.668 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007874/0.008572, allocations: 482.9 kB / 446.8 MB, free: 1.195 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.008575, allocations: 7.938 kB / 446.8 MB, free: 1.188 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.008576, allocations: 0 / 446.8 MB, free: 1.188 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.139e-05/0.008588, allocations: 0 / 446.8 MB, free: 1.188 MB / 366.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.0005327/0.00912, allocations: 335.5 kB / 447.1 MB, free: 0.8242 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.594e-05/0.009166, allocations: 8.031 kB / 447.1 MB, free: 0.8164 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.315e-05/0.009199, allocations: 0.9375 kB / 447.1 MB, free: 0.8164 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001038/0.009303, allocations: 113.8 kB / 447.2 MB, free: 0.6797 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.746e-06/0.009312, allocations: 384 / 447.2 MB, free: 0.6797 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.336e-05/0.009325, allocations: 384 / 447.2 MB, free: 0.6797 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001324/0.009458, allocations: 55.97 kB / 447.3 MB, free: 0.6133 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.898e-06/0.009468, allocations: 4.125 kB / 447.3 MB, free: 0.6094 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.845e-06/0.009475, allocations: 4.375 kB / 447.3 MB, free: 0.6055 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.573e-06/0.009482, allocations: 7.875 kB / 447.3 MB, free: 0.5977 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.206e-05/0.009514, allocations: 25.7 kB / 447.3 MB, free: 0.5664 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001267/0.009641, allocations: 105.3 kB / 447.4 MB, free: 444 kB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.082e-05/0.009712, allocations: 40.38 kB / 447.4 MB, free: 388 kB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.422e-05/0.009746, allocations: 34.56 kB / 447.5 MB, free: 344 kB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.566e-06/0.009754, allocations: 0 / 447.5 MB, free: 344 kB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.822e-05/0.009803, allocations: 56.27 kB / 447.5 MB, free: 272 kB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 2.776e-06/0.009805, allocations: 7.984 kB / 447.5 MB, free: 264 kB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002617/0.01007, allocations: 130.8 kB / 447.7 MB, free: 108 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.555e-05/0.01012, allocations: 85.05 kB / 447.8 MB, free: 4 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1783/0.1885, allocations: 89.86 kB / 447.8 MB, free: 19.35 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.349e-05/0.1885, allocations: 25.7 kB / 447.9 MB, free: 19.32 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.134e-05/0.1885, allocations: 80.14 kB / 447.9 MB, free: 19.24 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.361e-05/0.1885, allocations: 0.6875 kB / 447.9 MB, free: 19.24 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.956e-05/0.1885, allocations: 12.53 kB / 448 MB, free: 19.22 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.111e-05/0.1886, allocations: 314.1 kB / 448.3 MB, free: 18.91 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.036e-05/0.1886, allocations: 27.2 kB / 448.3 MB, free: 18.88 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.779e-05/0.1886, allocations: 28.19 kB / 448.3 MB, free: 18.85 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.679e-05/0.1887, allocations: 68.42 kB / 448.4 MB, free: 18.78 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.1887, allocations: 0 / 448.4 MB, free: 18.78 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.55e-05/0.1888, allocations: 87.41 kB / 448.5 MB, free: 18.68 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.777e-05/0.1888, allocations: 31.44 kB / 448.5 MB, free: 18.65 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.262e-06/0.1888, allocations: 0.6094 kB / 448.5 MB, free: 18.65 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.73e-05/0.1888, allocations: 4.906 kB / 448.5 MB, free: 18.65 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.903e-06/0.1888, allocations: 5.469 kB / 448.5 MB, free: 18.65 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.462e-06/0.1888, allocations: 4.266 kB / 448.5 MB, free: 18.65 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.567e-05/0.1889, allocations: 1.094 kB / 448.5 MB, free: 18.65 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.865e-06/0.1889, allocations: 1.156 kB / 448.5 MB, free: 18.65 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 4.875e-05/0.1889, allocations: 136.7 kB / 448.7 MB, free: 18.51 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.001e-05/0.1889, allocations: 2.156 kB / 448.7 MB, free: 18.51 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.079e-05/0.1889, allocations: 4.828 kB / 448.7 MB, free: 18.5 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-06/0.1889, allocations: 0 / 448.7 MB, free: 18.5 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.409e-06/0.1889, allocations: 7.562 kB / 448.7 MB, free: 18.5 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.174e-06/0.1889, allocations: 1.062 kB / 448.7 MB, free: 18.5 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.232e-05/0.189, allocations: 101.6 kB / 448.8 MB, free: 18.38 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.11e-07/0.189, allocations: 0.9688 kB / 448.8 MB, free: 18.38 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.72e-07/0.189, allocations: 0.8906 kB / 448.8 MB, free: 18.38 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.092e-06/0.189, allocations: 1.094 kB / 448.8 MB, free: 18.38 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.682e-06/0.189, allocations: 1 kB / 448.8 MB, free: 18.38 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.189, allocations: 2.125 kB / 448.8 MB, free: 18.38 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.189, allocations: 4.641 kB / 448.8 MB, free: 18.38 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.701e-05/0.1891, allocations: 123.9 kB / 448.9 MB, free: 18.25 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.879e-06/0.1891, allocations: 2.719 kB / 448.9 MB, free: 18.25 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.185e-05/0.1891, allocations: 1.906 kB / 448.9 MB, free: 18.25 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.488e-06/0.1891, allocations: 4.031 kB / 448.9 MB, free: 18.25 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.585e-05/0.1891, allocations: 3.938 kB / 448.9 MB, free: 18.25 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.667e-06/0.1891, allocations: 1.781 kB / 448.9 MB, free: 18.25 MB / 366.1 MB Notification: Performance of sorting global known variables: time 1.068e-05/0.1891, allocations: 76.31 kB / 449 MB, free: 18.17 MB / 366.1 MB Notification: Performance of sort global known variables: time 4e-08/0.1891, allocations: 0 / 449 MB, free: 18.17 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00047/0.1896, allocations: 132.7 kB / 449.1 MB, free: 18.17 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.0007758/0.1904, allocations: 331.6 kB / 449.4 MB, free: 18.07 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 9.197e-05/0.1905, allocations: 115.1 kB / 449.6 MB, free: 17.95 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.774e-06/0.1905, allocations: 2.125 kB / 449.6 MB, free: 17.95 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 2.266e-05/0.1905, allocations: 81.77 kB / 449.6 MB, free: 17.86 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001256/0.1906, allocations: 7.516 kB / 449.6 MB, free: 17.86 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000165/0.1908, allocations: 112.6 kB / 449.8 MB, free: 17.73 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.702e-05/0.1908, allocations: 58.27 kB / 449.8 MB, free: 17.66 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.149e-06/0.1908, allocations: 0 / 449.8 MB, free: 17.66 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.206e-05/0.1908, allocations: 10.72 kB / 449.8 MB, free: 17.65 MB / 366.1 MB Notification: Performance of SimCode: time 4.21e-07/0.1908, allocations: 0.8438 kB / 449.8 MB, free: 17.65 MB / 366.1 MB Notification: Performance of Templates: time 0.008281/0.1991, allocations: 3.555 MB / 453.4 MB, free: 17.44 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.029374521225691]