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.001111/0.001111, allocations: 115.9 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001124/0.001124, allocations: 207.5 kB / 19.36 MB, free: 3.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.367/1.367, allocations: 227.4 MB / 247.5 MB, free: 10.32 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2109/0.2109, allocations: 46.09 MB / 344.9 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001388/0.001388, allocations: 72.45 kB / 419 MB, free: 19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1219/0.1233, allocations: 62.45 MB / 481.5 MB, free: 4.512 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.002313/0.1256, allocations: 0.491 MB / 482 MB, free: 4.02 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003357/0.129, allocations: 2.022 MB / 484 MB, free: 1.977 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.239e-05/0.1291, allocations: 3.938 kB / 484 MB, free: 1.973 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.525e-05/0.1291, allocations: 4 kB / 484 MB, free: 1.969 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.721e-06/0.1292, allocations: 0 / 484 MB, free: 1.969 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.001901/0.1311, allocations: 0.4905 MB / 484.5 MB, free: 1.48 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 7.585e-05/0.1311, allocations: 7.984 kB / 484.5 MB, free: 1.473 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.437e-05/0.1312, allocations: 0 / 484.5 MB, free: 1.473 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.124e-05/0.1312, allocations: 0 / 484.5 MB, free: 1.473 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.451e-05/0.1313, allocations: 3.938 kB / 484.5 MB, free: 1.469 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.978e-06/0.1313, allocations: 4 kB / 484.5 MB, free: 1.465 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00117/0.1325, allocations: 0.6357 MB / 485.1 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.968e-06/0.1325, allocations: 4 kB / 485.1 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.371e-05/0.1325, allocations: 0 / 485.1 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007347/0.1333, allocations: 391.3 kB / 485.5 MB, free: 452 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.1333, allocations: 0 / 485.5 MB, free: 452 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.1333, allocations: 0 / 485.5 MB, free: 452 kB / 350.1 MB Notification: Performance of Transformations before backend: time 5.831e-06/0.1333, allocations: 0 / 485.5 MB, free: 452 kB / 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.0005397/0.1338, allocations: 409.2 kB / 485.9 MB, free: 15.99 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.351e-05/0.1339, allocations: 8.031 kB / 485.9 MB, free: 15.98 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.531e-05/0.1339, allocations: 0.9375 kB / 485.9 MB, free: 15.98 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001103/0.134, allocations: 160.4 kB / 486.1 MB, free: 15.79 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.438e-06/0.1341, allocations: 384 / 486.1 MB, free: 15.79 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.316e-05/0.1341, allocations: 16.3 kB / 486.1 MB, free: 15.77 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.31e-05/0.1342, allocations: 34 kB / 486.1 MB, free: 15.73 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.935e-06/0.1342, allocations: 3.938 kB / 486.1 MB, free: 15.73 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.196e-06/0.1342, allocations: 0 / 486.1 MB, free: 15.73 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.488e-06/0.1342, allocations: 4 kB / 486.1 MB, free: 15.72 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.991e-05/0.1342, allocations: 0 / 486.1 MB, free: 15.72 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001425/0.1344, allocations: 149.6 kB / 486.3 MB, free: 15.53 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.745e-05/0.1344, allocations: 18.61 kB / 486.3 MB, free: 15.5 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.747e-05/0.1345, allocations: 12.8 kB / 486.3 MB, free: 15.48 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.444e-06/0.1345, allocations: 0 / 486.3 MB, free: 15.48 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.285e-05/0.1345, allocations: 64.19 kB / 486.4 MB, free: 15.41 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 1.012e-06/0.1345, allocations: 4.062 kB / 486.4 MB, free: 15.4 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001756/0.1347, allocations: 63.41 kB / 486.4 MB, free: 15.33 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.491e-05/0.1348, allocations: 77.11 kB / 486.5 MB, free: 15.23 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.138e-05/0.1348, allocations: 89.86 kB / 486.6 MB, free: 15.14 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.64e-05/0.1348, allocations: 25.83 kB / 486.6 MB, free: 15.11 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.494e-05/0.1349, allocations: 88.08 kB / 486.7 MB, free: 15.02 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.238e-05/0.1349, allocations: 0 / 486.7 MB, free: 15.02 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.003e-05/0.135, allocations: 21.7 kB / 486.7 MB, free: 14.99 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001217/0.1351, allocations: 310.8 kB / 487 MB, free: 14.68 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.087e-05/0.1351, allocations: 3.938 kB / 487 MB, free: 14.67 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.981e-06/0.1351, allocations: 0 / 487 MB, free: 14.67 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.296e-05/0.1352, allocations: 60.27 kB / 487.1 MB, free: 14.6 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.1352, allocations: 4.062 kB / 487.1 MB, free: 14.59 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.274e-05/0.1353, allocations: 67.39 kB / 487.2 MB, free: 14.52 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.511e-05/0.1353, allocations: 37.64 kB / 487.2 MB, free: 14.47 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.029e-06/0.1353, allocations: 0 / 487.2 MB, free: 14.47 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.244e-05/0.1353, allocations: 0 / 487.2 MB, free: 14.47 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.42e-07/0.1353, allocations: 0 / 487.2 MB, free: 14.47 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.889e-06/0.1354, allocations: 0 / 487.2 MB, free: 14.47 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.665e-05/0.1354, allocations: 0 / 487.2 MB, free: 14.47 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.354e-06/0.1354, allocations: 0 / 487.2 MB, free: 14.47 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.0001043/0.1355, allocations: 143.5 kB / 487.4 MB, free: 14.32 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.568e-06/0.1355, allocations: 3.938 kB / 487.4 MB, free: 14.31 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.085e-05/0.1355, allocations: 7.109 kB / 487.4 MB, free: 14.31 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.413e-06/0.1355, allocations: 0 / 487.4 MB, free: 14.31 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.1355, allocations: 4 kB / 487.4 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.134e-06/0.1355, allocations: 0 / 487.4 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.919e-05/0.1356, allocations: 141.7 kB / 487.5 MB, free: 14.12 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.62e-07/0.1357, allocations: 0 / 487.5 MB, free: 14.12 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.11e-07/0.1357, allocations: 0 / 487.5 MB, free: 14.12 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.397e-06/0.1357, allocations: 3.938 kB / 487.5 MB, free: 14.11 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.03e-05/0.1357, allocations: 11.98 kB / 487.5 MB, free: 14.1 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.1357, allocations: 4 kB / 487.5 MB, free: 14.1 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.1357, allocations: 3.938 kB / 487.5 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.538e-05/0.1358, allocations: 86.84 kB / 487.6 MB, free: 13.98 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.967e-05/0.1358, allocations: 85 kB / 487.7 MB, free: 13.88 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.465e-05/0.1359, allocations: 3.938 kB / 487.7 MB, free: 13.88 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.071e-05/0.1359, allocations: 4 kB / 487.7 MB, free: 13.88 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.9e-05/0.1359, allocations: 4.031 kB / 487.7 MB, free: 13.87 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.019e-06/0.1359, allocations: 4 kB / 487.7 MB, free: 13.87 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.9e-05/0.1359, allocations: 83.25 kB / 487.8 MB, free: 13.79 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.136, allocations: 3.938 kB / 487.8 MB, free: 13.78 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004676/0.1364, allocations: 128 kB / 487.9 MB, free: 13.66 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.0006987/0.1371, allocations: 317.4 kB / 488.2 MB, free: 13.34 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 8.863e-05/0.1372, allocations: 59.39 kB / 488.3 MB, free: 13.27 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.1372, allocations: 0 / 488.3 MB, free: 13.27 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 2.903e-05/0.1373, allocations: 55.41 kB / 488.3 MB, free: 13.2 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001198/0.1374, allocations: 0 / 488.3 MB, free: 13.2 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000177/0.1376, allocations: 85.06 kB / 488.4 MB, free: 13.09 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002683/0.1379, allocations: 0.6768 MB / 489.1 MB, free: 12.39 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.661e-06/0.1379, allocations: 0 / 489.1 MB, free: 12.39 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.012e-05/0.1379, allocations: 7.438 kB / 489.1 MB, free: 12.39 MB / 366.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1379, allocations: 0 / 489.1 MB, free: 12.39 MB / 366.1 MB Notification: Performance of Templates: time 0.00671/0.1446, allocations: 3.511 MB / 492.6 MB, free: 8.883 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 -s cvode -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