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.0009947/0.0009947, allocations: 95.25 kB / 18.01 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001238/0.001238, allocations: 207.7 kB / 18.94 MB, free: 4.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.344/1.344, allocations: 227.7 MB / 247.5 MB, free: 11.11 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1878/0.1878, allocations: 46.18 MB / 345.9 MB, free: 11.36 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002728/0.0002728, allocations: 8 kB / 420.2 MB, free: 19.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1089/0.1092, allocations: 63.57 MB / 483.7 MB, free: 4.156 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.0005763/0.1098, allocations: 227 kB / 484 MB, free: 3.934 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002854/0.1127, allocations: 2.089 MB / 486 MB, free: 1.824 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.244e-05/0.1127, allocations: 0 / 486 MB, free: 1.824 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.338e-05/0.1127, allocations: 0 / 486 MB, free: 1.824 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.199e-06/0.1127, allocations: 4 kB / 486 MB, free: 1.82 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.001257/0.114, allocations: 410.8 kB / 486.4 MB, free: 1.422 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 2.94e-05/0.114, allocations: 0 / 486.4 MB, free: 1.422 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.238e-05/0.1141, allocations: 3.984 kB / 486.5 MB, free: 1.418 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.852e-05/0.1141, allocations: 4 kB / 486.5 MB, free: 1.414 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.676e-05/0.1141, allocations: 4 kB / 486.5 MB, free: 1.41 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.853e-06/0.1141, allocations: 0 / 486.5 MB, free: 1.41 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00108/0.1152, allocations: 0.6823 MB / 487.1 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.504e-06/0.1152, allocations: 0 / 487.1 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.324e-05/0.1153, allocations: 33.64 kB / 487.2 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000423/0.1157, allocations: 255.8 kB / 487.4 MB, free: 448 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.1157, allocations: 0 / 487.4 MB, free: 448 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1157, allocations: 0 / 487.4 MB, free: 448 kB / 350.1 MB Notification: Performance of Transformations before backend: time 3.657e-06/0.1157, allocations: 0 / 487.4 MB, free: 448 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.0004404/0.1162, allocations: 413.2 kB / 487.8 MB, free: 15.98 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.889e-05/0.1162, allocations: 8.875 kB / 487.8 MB, free: 15.97 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.796e-05/0.1163, allocations: 4.938 kB / 487.8 MB, free: 15.97 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.74e-05/0.1164, allocations: 160.4 kB / 488 MB, free: 15.77 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.201e-05/0.1164, allocations: 384 / 488 MB, free: 15.77 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.438e-06/0.1164, allocations: 4.375 kB / 488 MB, free: 15.77 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.345e-05/0.1165, allocations: 34.02 kB / 488 MB, free: 15.73 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.931e-06/0.1165, allocations: 0 / 488 MB, free: 15.73 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.488e-06/0.1165, allocations: 0 / 488 MB, free: 15.73 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.499e-06/0.1165, allocations: 3.938 kB / 488 MB, free: 15.73 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.768e-05/0.1165, allocations: 3.984 kB / 488 MB, free: 15.72 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001166/0.1167, allocations: 149.7 kB / 488.2 MB, free: 15.53 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.765e-05/0.1167, allocations: 14.58 kB / 488.2 MB, free: 15.5 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.279e-05/0.1167, allocations: 8.859 kB / 488.2 MB, free: 15.49 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.231e-06/0.1167, allocations: 4.094 kB / 488.2 MB, free: 15.49 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.84e-05/0.1168, allocations: 60.2 kB / 488.3 MB, free: 15.41 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 1.022e-06/0.1168, allocations: 0 / 488.3 MB, free: 15.41 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001595/0.117, allocations: 71.33 kB / 488.3 MB, free: 15.33 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.37e-05/0.117, allocations: 81.05 kB / 488.4 MB, free: 15.23 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.421e-05/0.117, allocations: 89.86 kB / 488.5 MB, free: 15.14 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.549e-05/0.1171, allocations: 29.83 kB / 488.5 MB, free: 15.1 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.095e-05/0.1171, allocations: 80.14 kB / 488.6 MB, free: 15.02 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.651e-05/0.1171, allocations: 4 kB / 488.6 MB, free: 15.02 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.172e-05/0.1171, allocations: 9.719 kB / 488.6 MB, free: 15 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.341e-05/0.1172, allocations: 318.8 kB / 488.9 MB, free: 14.68 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.736e-06/0.1173, allocations: 0 / 488.9 MB, free: 14.68 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.18e-06/0.1173, allocations: 0 / 488.9 MB, free: 14.68 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.682e-05/0.1173, allocations: 64.2 kB / 489 MB, free: 14.6 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.1173, allocations: 4.062 kB / 489 MB, free: 14.6 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.767e-05/0.1174, allocations: 59.41 kB / 489.1 MB, free: 14.53 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.764e-05/0.1175, allocations: 41.62 kB / 489.1 MB, free: 14.48 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.098e-06/0.1175, allocations: 0 / 489.1 MB, free: 14.48 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.718e-06/0.1175, allocations: 0 / 489.1 MB, free: 14.48 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.334e-06/0.1175, allocations: 0 / 489.1 MB, free: 14.48 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.428e-06/0.1175, allocations: 3.938 kB / 489.1 MB, free: 14.48 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.407e-05/0.1175, allocations: 0 / 489.1 MB, free: 14.48 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.232e-06/0.1175, allocations: 0 / 489.1 MB, free: 14.48 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 7.729e-05/0.1176, allocations: 143.6 kB / 489.3 MB, free: 14.32 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.957e-06/0.1176, allocations: 3.938 kB / 489.3 MB, free: 14.32 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.045e-06/0.1176, allocations: 3.125 kB / 489.3 MB, free: 14.32 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.383e-06/0.1176, allocations: 0 / 489.3 MB, free: 14.32 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.581e-06/0.1176, allocations: 3.984 kB / 489.3 MB, free: 14.31 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.1177, allocations: 7.984 kB / 489.3 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.169e-05/0.1177, allocations: 141.7 kB / 489.4 MB, free: 14.12 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.01e-07/0.1177, allocations: 0 / 489.4 MB, free: 14.12 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.21e-07/0.1178, allocations: 0 / 489.4 MB, free: 14.12 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.086e-06/0.1178, allocations: 3.938 kB / 489.4 MB, free: 14.11 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.452e-06/0.1178, allocations: 4 kB / 489.4 MB, free: 14.11 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.286e-06/0.1178, allocations: 4 kB / 489.4 MB, free: 14.11 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.1178, allocations: 3.938 kB / 489.4 MB, free: 14.1 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.513e-05/0.1179, allocations: 90.83 kB / 489.5 MB, free: 13.99 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.337e-05/0.1179, allocations: 81.02 kB / 489.6 MB, free: 13.89 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.336e-05/0.1179, allocations: 3.938 kB / 489.6 MB, free: 13.89 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.036e-05/0.118, allocations: 4 kB / 489.6 MB, free: 13.88 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.348e-05/0.118, allocations: 8.016 kB / 489.6 MB, free: 13.88 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.189e-06/0.118, allocations: 4 kB / 489.6 MB, free: 13.87 MB / 366.1 MB Notification: Performance of sorting global known variables: time 2.264e-05/0.118, allocations: 79.28 kB / 489.7 MB, free: 13.79 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.118, allocations: 0 / 489.7 MB, free: 13.79 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004042/0.1184, allocations: 120 kB / 489.8 MB, free: 13.68 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.000828/0.1193, allocations: 313.6 kB / 490.1 MB, free: 13.36 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 8.34e-05/0.1194, allocations: 67.34 kB / 490.2 MB, free: 13.28 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.1194, allocations: 0 / 490.2 MB, free: 13.28 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.627e-05/0.1194, allocations: 59.39 kB / 490.2 MB, free: 13.21 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001211/0.1195, allocations: 0 / 490.2 MB, free: 13.21 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001757/0.1197, allocations: 108.6 kB / 490.3 MB, free: 13.07 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002038/0.1199, allocations: 0.6692 MB / 491 MB, free: 12.38 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.168e-05/0.12, allocations: 11.44 kB / 491 MB, free: 12.37 MB / 366.1 MB Notification: Performance of SimCode: time 2.21e-07/0.12, allocations: 0 / 491 MB, free: 12.37 MB / 366.1 MB Notification: Performance of Templates: time 0.006125/0.1261, allocations: 3.405 MB / 494.4 MB, free: 8.957 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