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.001113/0.001113, allocations: 116.2 kB / 17.33 MB, free: 5.984 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001179/0.001179, allocations: 205.8 kB / 18.27 MB, free: 5.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.425/1.425, allocations: 227.4 MB / 246.4 MB, free: 10.8 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2323/0.2323, allocations: 46.12 MB / 343.8 MB, free: 11.76 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001405/0.001405, allocations: 76.5 kB / 417 MB, free: 20.1 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1392/0.1407, allocations: 62.44 MB / 479.5 MB, free: 5.637 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.002417/0.1431, allocations: 0.5527 MB / 480 MB, free: 5.078 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002946/0.1461, allocations: 2.034 MB / 482.1 MB, free: 3.023 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.381e-05/0.1461, allocations: 0 / 482.1 MB, free: 3.023 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.802e-05/0.1462, allocations: 0 / 482.1 MB, free: 3.023 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.971e-06/0.1462, allocations: 0 / 482.1 MB, free: 3.023 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.001424/0.1476, allocations: 454.5 kB / 482.5 MB, free: 2.582 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.974e-05/0.1477, allocations: 4 kB / 482.5 MB, free: 2.578 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.601e-05/0.1477, allocations: 7.984 kB / 482.5 MB, free: 2.57 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.656e-05/0.1477, allocations: 0 / 482.5 MB, free: 2.57 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.409e-05/0.1478, allocations: 8 kB / 482.5 MB, free: 2.562 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.963e-06/0.1478, allocations: 3.938 kB / 482.5 MB, free: 2.559 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001006/0.1488, allocations: 0.6707 MB / 483.2 MB, free: 1.887 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.377e-05/0.1488, allocations: 3.938 kB / 483.2 MB, free: 1.883 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.245e-05/0.1489, allocations: 4 kB / 483.2 MB, free: 1.879 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005896/0.1495, allocations: 407.4 kB / 483.6 MB, free: 1.48 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.1495, allocations: 4 kB / 483.6 MB, free: 1.477 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.1495, allocations: 0 / 483.6 MB, free: 1.477 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.462e-06/0.1495, allocations: 0 / 483.6 MB, free: 1.477 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.0005166/0.15, allocations: 409.2 kB / 484 MB, free: 1.023 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.756e-05/0.1501, allocations: 8.031 kB / 484 MB, free: 1.016 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.31e-05/0.1501, allocations: 8.922 kB / 484 MB, free: 1.008 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001173/0.1502, allocations: 164.4 kB / 484.2 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.359e-05/0.1503, allocations: 384 / 484.2 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.25e-05/0.1503, allocations: 4.312 kB / 484.2 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001129/0.1504, allocations: 38.02 kB / 484.2 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.027e-06/0.1504, allocations: 0 / 484.2 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.056e-05/0.1504, allocations: 0 / 484.2 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.23e-06/0.1504, allocations: 0 / 484.2 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.123e-05/0.1505, allocations: 0 / 484.2 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001654/0.1506, allocations: 157.7 kB / 484.4 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.609e-05/0.1507, allocations: 14.58 kB / 484.4 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.852e-05/0.1507, allocations: 12.89 kB / 484.4 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.874e-06/0.1507, allocations: 4 kB / 484.4 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.453e-05/0.1508, allocations: 60.2 kB / 484.5 MB, free: 452 kB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 8.92e-07/0.1508, allocations: 0 / 484.5 MB, free: 452 kB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001973/0.151, allocations: 67.39 kB / 484.5 MB, free: 372 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.423e-05/0.1511, allocations: 77.11 kB / 484.6 MB, free: 276 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.288e-05/0.1511, allocations: 89.86 kB / 484.7 MB, free: 176 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.444e-05/0.1511, allocations: 25.7 kB / 484.7 MB, free: 144 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.872e-05/0.1512, allocations: 84.27 kB / 484.8 MB, free: 56 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.192e-05/0.1512, allocations: 4 kB / 484.8 MB, free: 52 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.654e-05/0.1512, allocations: 9.719 kB / 484.8 MB, free: 36 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001493/0.1514, allocations: 314.8 kB / 485.1 MB, free: 15.72 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.286e-05/0.1514, allocations: 11.88 kB / 485.1 MB, free: 15.71 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.053e-06/0.1514, allocations: 3.984 kB / 485.2 MB, free: 15.7 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.289e-05/0.1515, allocations: 60.27 kB / 485.2 MB, free: 15.63 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.1515, allocations: 4.062 kB / 485.2 MB, free: 15.62 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.236e-05/0.1516, allocations: 59.41 kB / 485.3 MB, free: 15.55 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.329e-05/0.1516, allocations: 33.64 kB / 485.3 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.631e-06/0.1516, allocations: 0 / 485.3 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.438e-05/0.1516, allocations: 3.984 kB / 485.3 MB, free: 15.51 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.31e-07/0.1516, allocations: 0 / 485.3 MB, free: 15.51 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.478e-06/0.1517, allocations: 3.938 kB / 485.3 MB, free: 15.51 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.795e-05/0.1517, allocations: 8 kB / 485.3 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.274e-06/0.1517, allocations: 0 / 485.3 MB, free: 15.5 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.342e-05/0.1518, allocations: 139.5 kB / 485.5 MB, free: 15.35 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.067e-05/0.1518, allocations: 7.938 kB / 485.5 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.823e-05/0.1518, allocations: 7.125 kB / 485.5 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.92e-07/0.1518, allocations: 0 / 485.5 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.1518, allocations: 0 / 485.5 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.913e-06/0.1518, allocations: 0 / 485.5 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001023/0.152, allocations: 145.7 kB / 485.6 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.02e-07/0.152, allocations: 0 / 485.6 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.4e-07/0.152, allocations: 4 kB / 485.6 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.737e-06/0.152, allocations: 3.938 kB / 485.6 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.963e-06/0.152, allocations: 0 / 485.6 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.61e-07/0.152, allocations: 4 kB / 485.6 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.41e-07/0.152, allocations: 0 / 485.6 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001093/0.1521, allocations: 90.83 kB / 485.7 MB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.916e-05/0.1522, allocations: 81.02 kB / 485.8 MB, free: 14.92 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.752e-05/0.1522, allocations: 3.938 kB / 485.8 MB, free: 14.92 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.708e-06/0.1522, allocations: 4 kB / 485.8 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.58e-05/0.1522, allocations: 0 / 485.8 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.16e-06/0.1522, allocations: 12.02 kB / 485.8 MB, free: 14.9 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.92e-05/0.1523, allocations: 79.22 kB / 485.9 MB, free: 14.82 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1523, allocations: 0 / 485.9 MB, free: 14.82 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003805/0.1527, allocations: 124 kB / 486 MB, free: 14.7 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.000803/0.1535, allocations: 314.9 kB / 486.3 MB, free: 14.39 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001018/0.1536, allocations: 59.34 kB / 486.4 MB, free: 14.32 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.1536, allocations: 0 / 486.4 MB, free: 14.32 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.254e-05/0.1536, allocations: 59.39 kB / 486.4 MB, free: 14.25 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001242/0.1538, allocations: 7.938 kB / 486.4 MB, free: 14.24 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000177/0.154, allocations: 85.06 kB / 486.5 MB, free: 14.13 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002612/0.1542, allocations: 0.6729 MB / 487.2 MB, free: 13.43 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.481e-06/0.1542, allocations: 0 / 487.2 MB, free: 13.43 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.067e-05/0.1543, allocations: 7.438 kB / 487.2 MB, free: 13.43 MB / 366.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1543, allocations: 0 / 487.2 MB, free: 13.43 MB / 366.1 MB Notification: Performance of Templates: time 0.006831/0.1611, allocations: 3.508 MB / 490.7 MB, free: 9.926 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