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.00159/0.00159, allocations: 77.92 kB / 22.21 MB, free: 2.293 MB / 18.57 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.001668/0.001668, allocations: 155 kB / 25.61 MB, free: 8.613 MB / 18.57 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.053/1.053, allocations: 177 MB / 205.9 MB, free: 4.438 MB / 186.7 MB " [Timeout remaining time 179] 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.1612/0.1612, allocations: 34.88 MB / 297.4 MB, free: 13.34 MB / 282.7 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 2.034e-06/2.034e-06, allocations: 0 / 380 MB, free: 22.76 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.209e-05/3.413e-05, allocations: 3.438 kB / 380 MB, free: 22.76 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.001448/0.001482, allocations: 0.5043 MB / 380.5 MB, free: 22.26 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.002225/0.003707, allocations: 1.969 MB / 382.5 MB, free: 20.27 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.799e-05/0.003735, allocations: 0 / 382.5 MB, free: 20.27 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 2.115e-05/0.003756, allocations: 0 / 382.5 MB, free: 20.27 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 9.959e-06/0.003766, allocations: 0 / 382.5 MB, free: 20.27 MB / 314.7 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.001277/0.005043, allocations: 0.5023 MB / 383 MB, free: 19.77 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 5.975e-05/0.005103, allocations: 3.984 kB / 383 MB, free: 19.76 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.841e-05/0.005151, allocations: 4 kB / 383 MB, free: 19.76 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.638e-05/0.005178, allocations: 0 / 383 MB, free: 19.76 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.136e-05/0.005199, allocations: 0 / 383 MB, free: 19.76 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 8.366e-06/0.005207, allocations: 0 / 383 MB, free: 19.76 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007089/0.005916, allocations: 0.6431 MB / 383.6 MB, free: 19.11 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 1.183e-05/0.005928, allocations: 11.91 kB / 383.6 MB, free: 19.1 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 1.64e-05/0.005944, allocations: 0 / 383.6 MB, free: 19.1 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004557/0.0064, allocations: 466.8 kB / 384.1 MB, free: 18.64 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.006405, allocations: 0 / 384.1 MB, free: 18.64 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.032e-06/0.006406, allocations: 4 kB / 384.1 MB, free: 18.64 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.31e-06/0.006411, allocations: 0 / 384.1 MB, free: 18.64 MB / 314.7 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.0003842/0.006795, allocations: 449.3 kB / 384.5 MB, free: 18.16 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.294e-05/0.006838, allocations: 8.031 kB / 384.5 MB, free: 18.15 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.545e-05/0.006874, allocations: 4.938 kB / 384.6 MB, free: 18.15 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.117e-05/0.006925, allocations: 112.6 kB / 384.7 MB, free: 18.01 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.19e-05/0.006937, allocations: 384 / 384.7 MB, free: 18.01 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.831e-06/0.006943, allocations: 384 / 384.7 MB, free: 18.01 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.515e-05/0.007018, allocations: 55.97 kB / 384.7 MB, free: 17.95 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.168e-06/0.007027, allocations: 192 / 384.7 MB, free: 17.95 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.885e-06/0.007035, allocations: 4.375 kB / 384.7 MB, free: 17.94 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.063e-06/0.007042, allocations: 3.938 kB / 384.7 MB, free: 17.94 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.588e-05/0.007058, allocations: 33.64 kB / 384.8 MB, free: 17.9 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.018e-05/0.007128, allocations: 89.27 kB / 384.8 MB, free: 17.79 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.337e-05/0.007171, allocations: 60.78 kB / 384.9 MB, free: 17.71 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.238e-05/0.007184, allocations: 33.39 kB / 384.9 MB, free: 17.66 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.427e-06/0.007187, allocations: 0 / 384.9 MB, free: 17.66 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.081e-05/0.007218, allocations: 63.16 kB / 385 MB, free: 17.59 MB / 314.7 MB Notification: Performance of pre-optimization done (n=1): time 8.52e-07/0.007219, allocations: 0 / 385 MB, free: 17.59 MB / 314.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001693/0.007388, allocations: 118.7 kB / 385.1 MB, free: 17.45 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.982e-05/0.007418, allocations: 81.23 kB / 385.2 MB, free: 17.35 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.735e-05/0.007445, allocations: 142.2 kB / 385.3 MB, free: 17.2 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.16e-06/0.00745, allocations: 25.7 kB / 385.4 MB, free: 17.16 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.461e-05/0.007465, allocations: 130.9 kB / 385.5 MB, free: 17.03 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.24e-05/0.007487, allocations: 0 / 385.5 MB, free: 17.03 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.561e-05/0.007513, allocations: 19.38 kB / 385.5 MB, free: 17 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5e-05/0.007563, allocations: 0.4922 MB / 386 MB, free: 16.5 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.133e-05/0.007574, allocations: 25.7 kB / 386 MB, free: 16.47 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.915e-06/0.007582, allocations: 29.69 kB / 386 MB, free: 16.43 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.316e-05/0.007616, allocations: 63.16 kB / 386.1 MB, free: 16.36 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.007618, allocations: 4 kB / 386.1 MB, free: 16.35 MB / 314.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.592e-05/0.007663, allocations: 89.05 kB / 386.2 MB, free: 16.25 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.538e-05/0.007689, allocations: 41.62 kB / 386.2 MB, free: 16.2 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.96e-06/0.007694, allocations: 0 / 386.2 MB, free: 16.2 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.386e-06/0.007702, allocations: 0 / 386.2 MB, free: 16.2 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.182e-06/0.007703, allocations: 0 / 386.2 MB, free: 16.2 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.184e-06/0.007706, allocations: 0 / 386.2 MB, free: 16.2 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.409e-05/0.00772, allocations: 3.938 kB / 386.2 MB, free: 16.2 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.471e-06/0.007725, allocations: 0 / 386.2 MB, free: 16.2 MB / 314.7 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.685e-05/0.007772, allocations: 190.3 kB / 386.4 MB, free: 15.99 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.39e-06/0.007777, allocations: 352 / 386.4 MB, free: 15.99 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.305e-06/0.007786, allocations: 7 kB / 386.4 MB, free: 15.99 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/0.007787, allocations: 0 / 386.4 MB, free: 15.99 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.294e-06/0.00779, allocations: 0 / 386.4 MB, free: 15.99 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.007793, allocations: 3.984 kB / 386.4 MB, free: 15.98 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.942e-05/0.007832, allocations: 93.2 kB / 386.5 MB, free: 15.87 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.11e-07/0.007833, allocations: 4 kB / 386.5 MB, free: 15.86 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.32e-07/0.007834, allocations: 4 kB / 386.5 MB, free: 15.86 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.71e-07/0.007834, allocations: 0 / 386.5 MB, free: 15.86 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.627e-06/0.007838, allocations: 0 / 386.5 MB, free: 15.86 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.11e-07/0.007839, allocations: 4 kB / 386.5 MB, free: 15.86 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.00784, allocations: 0 / 386.5 MB, free: 15.86 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.872e-05/0.007909, allocations: 139.7 kB / 386.7 MB, free: 15.68 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.08e-06/0.007914, allocations: 4 kB / 386.7 MB, free: 15.68 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.997e-06/0.007923, allocations: 0 / 386.7 MB, free: 15.68 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.139e-06/0.007928, allocations: 0 / 386.7 MB, free: 15.68 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.048e-05/0.007938, allocations: 0 / 386.7 MB, free: 15.68 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.446e-06/0.007942, allocations: 4 kB / 386.7 MB, free: 15.68 MB / 314.7 MB Notification: Performance of sorting global known variables: time 1.483e-05/0.007957, allocations: 119.2 kB / 386.8 MB, free: 15.56 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007957, allocations: 0 / 386.8 MB, free: 15.56 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002738/0.00823, allocations: 127.6 kB / 386.9 MB, free: 15.43 MB / 314.7 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.0005333/0.008764, allocations: 342.9 kB / 387.3 MB, free: 15.1 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 9.314e-05/0.008857, allocations: 126.4 kB / 387.4 MB, free: 14.95 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.373e-06/0.008858, allocations: 0 / 387.4 MB, free: 14.95 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 1.739e-05/0.008876, allocations: 92.8 kB / 387.5 MB, free: 14.83 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.606e-05/0.008972, allocations: 7.938 kB / 387.5 MB, free: 14.82 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001549/0.009127, allocations: 108.5 kB / 387.6 MB, free: 14.68 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.231e-05/0.009149, allocations: 55.22 kB / 387.6 MB, free: 14.61 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 8.155e-06/0.009157, allocations: 0 / 387.6 MB, free: 14.61 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.476e-05/0.009192, allocations: 70.2 kB / 387.7 MB, free: 14.54 MB / 314.7 MB Notification: Performance of SimCode: time 7.51e-07/0.009193, allocations: 0 / 387.7 MB, free: 14.54 MB / 314.7 MB Notification: Performance of Templates: time 0.005463/0.01466, allocations: 3.939 MB / 391.7 MB, free: 10.61 MB / 314.7 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=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.6440264428965747]