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.001614/0.001614, allocations: 117.3 kB / 17.98 MB, free: 5.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001467/0.001467, allocations: 201.8 kB / 18.92 MB, free: 4.445 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.442/1.442, allocations: 227.4 MB / 247.1 MB, free: 10.68 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2306/0.2306, allocations: 46.12 MB / 344.5 MB, free: 11.71 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002215/0.002215, allocations: 82.83 kB / 417.8 MB, free: 20.04 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1251/0.1273, allocations: 62.45 MB / 480.2 MB, free: 5.574 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.001877/0.1292, allocations: 0.5528 MB / 480.8 MB, free: 5.016 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00305/0.1323, allocations: 2.038 MB / 482.8 MB, free: 2.957 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.35e-05/0.1323, allocations: 0 / 482.8 MB, free: 2.957 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.555e-05/0.1323, allocations: 0 / 482.8 MB, free: 2.957 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.05e-06/0.1324, allocations: 0 / 482.8 MB, free: 2.957 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.001472/0.1339, allocations: 462.6 kB / 483.3 MB, free: 2.508 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.331e-05/0.1339, allocations: 4 kB / 483.3 MB, free: 2.504 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.097e-05/0.134, allocations: 4 kB / 483.3 MB, free: 2.5 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.733e-05/0.134, allocations: 3.984 kB / 483.3 MB, free: 2.496 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.881e-05/0.134, allocations: 4 kB / 483.3 MB, free: 2.492 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.372e-06/0.134, allocations: 0 / 483.3 MB, free: 2.492 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001073/0.1351, allocations: 0.6707 MB / 483.9 MB, free: 1.82 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.171e-05/0.1351, allocations: 3.984 kB / 483.9 MB, free: 1.816 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.105e-05/0.1351, allocations: 7.938 kB / 484 MB, free: 1.809 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000396/0.1356, allocations: 251.9 kB / 484.2 MB, free: 1.562 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.082e-06/0.1356, allocations: 0 / 484.2 MB, free: 1.562 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.1356, allocations: 3.938 kB / 484.2 MB, free: 1.559 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.187e-06/0.1356, allocations: 0 / 484.2 MB, free: 1.559 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.0005177/0.1361, allocations: 417.1 kB / 484.6 MB, free: 1.098 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.842e-05/0.1362, allocations: 16.03 kB / 484.6 MB, free: 1.082 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.263e-05/0.1362, allocations: 4.875 kB / 484.6 MB, free: 1.078 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000127/0.1363, allocations: 160.4 kB / 484.8 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.259e-05/0.1363, allocations: 384 / 484.8 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.905e-06/0.1364, allocations: 384 / 484.8 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.152e-05/0.1365, allocations: 34.02 kB / 484.8 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.584e-06/0.1365, allocations: 0 / 484.8 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.724e-06/0.1365, allocations: 0 / 484.8 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.429e-06/0.1365, allocations: 0 / 484.8 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.108e-05/0.1365, allocations: 7.984 kB / 484.8 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001609/0.1367, allocations: 149.7 kB / 485 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.301e-05/0.1367, allocations: 18.52 kB / 485 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.738e-05/0.1368, allocations: 8.953 kB / 485 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.258e-06/0.1368, allocations: 0 / 485 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.38e-05/0.1368, allocations: 64.19 kB / 485.1 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 9.52e-07/0.1368, allocations: 0 / 485.1 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001836/0.137, allocations: 75.33 kB / 485.1 MB, free: 448 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.436e-05/0.1371, allocations: 77.11 kB / 485.2 MB, free: 352 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.034e-05/0.1372, allocations: 89.86 kB / 485.3 MB, free: 252 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.471e-05/0.1372, allocations: 25.7 kB / 485.3 MB, free: 220 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.624e-05/0.1372, allocations: 84.14 kB / 485.4 MB, free: 132 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.984e-05/0.1373, allocations: 0 / 485.4 MB, free: 132 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.795e-05/0.1373, allocations: 9.719 kB / 485.4 MB, free: 116 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001775/0.1375, allocations: 322.8 kB / 485.7 MB, free: 15.79 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.278e-06/0.1375, allocations: 4.125 kB / 485.7 MB, free: 15.79 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.919e-06/0.1375, allocations: 0 / 485.7 MB, free: 15.79 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.525e-05/0.1376, allocations: 60.27 kB / 485.8 MB, free: 15.71 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.1376, allocations: 0 / 485.8 MB, free: 15.71 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.583e-05/0.1376, allocations: 63.34 kB / 485.9 MB, free: 15.64 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.285e-05/0.1377, allocations: 41.62 kB / 485.9 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.938e-06/0.1377, allocations: 3.938 kB / 485.9 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.404e-05/0.1377, allocations: 0 / 485.9 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.012e-06/0.1377, allocations: 96 / 485.9 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.522e-06/0.1377, allocations: 8 kB / 485.9 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.481e-05/0.1378, allocations: 0 / 485.9 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.192e-06/0.1378, allocations: 0 / 485.9 MB, free: 15.58 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.0001075/0.1379, allocations: 131.5 kB / 486 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.094e-05/0.1379, allocations: 7.938 kB / 486.1 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.425e-06/0.1379, allocations: 3.125 kB / 486.1 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.307e-06/0.1379, allocations: 3.984 kB / 486.1 MB, free: 15.42 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.111e-06/0.1379, allocations: 4 kB / 486.1 MB, free: 15.42 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.144e-06/0.1379, allocations: 4 kB / 486.1 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001272/0.1381, allocations: 145.7 kB / 486.2 MB, free: 15.22 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.21e-07/0.1381, allocations: 3.938 kB / 486.2 MB, free: 15.22 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.11e-07/0.1381, allocations: 0 / 486.2 MB, free: 15.22 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.396e-06/0.1381, allocations: 3.938 kB / 486.2 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.292e-06/0.1381, allocations: 0 / 486.2 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.71e-07/0.1381, allocations: 0 / 486.2 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.1381, allocations: 0 / 486.2 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001158/0.1382, allocations: 98.77 kB / 486.3 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.605e-05/0.1383, allocations: 81.02 kB / 486.4 MB, free: 15 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.714e-05/0.1383, allocations: 11.92 kB / 486.4 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.015e-06/0.1383, allocations: 0 / 486.4 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.331e-05/0.1384, allocations: 4 kB / 486.4 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.725e-06/0.1384, allocations: 0 / 486.4 MB, free: 14.98 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.364e-05/0.1384, allocations: 75.28 kB / 486.5 MB, free: 14.91 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1384, allocations: 0 / 486.5 MB, free: 14.91 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004249/0.1388, allocations: 128 kB / 486.6 MB, free: 14.78 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.0008528/0.1397, allocations: 315.6 kB / 486.9 MB, free: 14.47 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001189/0.1398, allocations: 59.39 kB / 487 MB, free: 14.4 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.1398, allocations: 4.062 kB / 487 MB, free: 14.39 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.185e-05/0.1399, allocations: 55.41 kB / 487 MB, free: 14.33 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001234/0.14, allocations: 7.938 kB / 487 MB, free: 14.32 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002241/0.1402, allocations: 106.6 kB / 487.1 MB, free: 14.18 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003302/0.1406, allocations: 0.6729 MB / 487.8 MB, free: 13.48 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.253e-05/0.1406, allocations: 7.438 kB / 487.8 MB, free: 13.48 MB / 366.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1406, allocations: 0 / 487.8 MB, free: 13.48 MB / 366.1 MB Notification: Performance of Templates: time 0.006554/0.1472, allocations: 3.413 MB / 491.2 MB, free: 10.06 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestSpecial/TestSpecial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches