Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.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.001057/0.001057, allocations: 84.25 kB / 22.21 MB, free: 2.285 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.001793/0.001793, allocations: 161.2 kB / 25.61 MB, free: 8.887 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.037/1.037, 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.1445/0.1445, 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.TestDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions") translateModel(ModelicaTest.Math.Random.TestDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.433e-06/1.433e-06, allocations: 0 / 380 MB, free: 22.74 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.054e-05/2.197e-05, allocations: 2.312 kB / 380 MB, free: 22.74 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.001461/0.001483, allocations: 0.4971 MB / 380.5 MB, free: 22.25 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.002442/0.003925, allocations: 2.043 MB / 382.5 MB, free: 20.18 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.392e-05/0.003949, allocations: 0 / 382.5 MB, free: 20.18 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 1.955e-05/0.003968, allocations: 0 / 382.5 MB, free: 20.18 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 9.107e-06/0.003978, allocations: 4 kB / 382.6 MB, free: 20.18 MB / 314.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Math.mo:1013:5-1096:22:writable] Warning: Pure function 'ModelicaTest.Math.Random.distributions' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.001214/0.005192, allocations: 0.5294 MB / 383.1 MB, free: 19.64 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 4.412e-05/0.005236, allocations: 0 / 383.1 MB, free: 19.64 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.266e-05/0.005269, allocations: 4 kB / 383.1 MB, free: 19.64 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.07e-05/0.005289, allocations: 4 kB / 383.1 MB, free: 19.64 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.477e-05/0.005304, allocations: 3.984 kB / 383.1 MB, free: 19.63 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 6.433e-06/0.005311, allocations: 0 / 383.1 MB, free: 19.63 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008039/0.006114, allocations: 0.6353 MB / 383.7 MB, free: 19 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 6.793e-06/0.006121, allocations: 4 kB / 383.7 MB, free: 18.99 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 1.181e-05/0.006133, allocations: 3.938 kB / 383.7 MB, free: 18.99 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004873/0.00662, allocations: 458.8 kB / 384.2 MB, free: 18.54 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.844e-06/0.006622, allocations: 4 kB / 384.2 MB, free: 18.54 MB / 314.7 MB Notification: Performance of FrontEnd: time 5.21e-07/0.006623, allocations: 0 / 384.2 MB, free: 18.54 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.747e-06/0.006626, allocations: 0 / 384.2 MB, free: 18.54 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.0002781/0.006904, allocations: 449.2 kB / 384.6 MB, free: 18.05 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.087e-05/0.006935, allocations: 12.03 kB / 384.6 MB, free: 18.04 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.864e-05/0.006964, allocations: 4.938 kB / 384.6 MB, free: 18.04 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.403e-05/0.007008, allocations: 108.6 kB / 384.7 MB, free: 17.91 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.081e-05/0.007019, allocations: 4.375 kB / 384.8 MB, free: 17.9 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.829e-06/0.007024, allocations: 384 / 384.8 MB, free: 17.9 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.4e-05/0.007078, allocations: 55.97 kB / 384.8 MB, free: 17.84 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.093e-06/0.007085, allocations: 4.188 kB / 384.8 MB, free: 17.83 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.509e-06/0.007089, allocations: 384 / 384.8 MB, free: 17.83 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.392e-06/0.007096, allocations: 3.938 kB / 384.8 MB, free: 17.83 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.292e-05/0.007109, allocations: 33.64 kB / 384.9 MB, free: 17.79 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 5.686e-05/0.007165, allocations: 93.27 kB / 384.9 MB, free: 17.67 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.226e-05/0.007198, allocations: 52.75 kB / 385 MB, free: 17.6 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.239e-05/0.00721, allocations: 37.48 kB / 385 MB, free: 17.55 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.995e-06/0.007213, allocations: 0 / 385 MB, free: 17.55 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.277e-05/0.007236, allocations: 59.09 kB / 385.1 MB, free: 17.48 MB / 314.7 MB Notification: Performance of pre-optimization done (n=1): time 6.21e-07/0.007236, allocations: 0 / 385.1 MB, free: 17.48 MB / 314.7 MB Notification: Performance of matching and sorting (n=1): time 0.00012/0.007357, allocations: 126.7 kB / 385.2 MB, free: 17.33 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.39e-05/0.00738, allocations: 81.11 kB / 385.3 MB, free: 17.23 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.231e-05/0.007403, allocations: 142.2 kB / 385.4 MB, free: 17.08 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.809e-06/0.007408, allocations: 25.7 kB / 385.5 MB, free: 17.05 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.258e-05/0.00742, allocations: 126.9 kB / 385.6 MB, free: 16.92 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.275e-05/0.007433, allocations: 0 / 385.6 MB, free: 16.92 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.77e-05/0.007461, allocations: 19.38 kB / 385.6 MB, free: 16.89 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.93e-05/0.00751, allocations: 0.4922 MB / 386.1 MB, free: 16.39 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.287e-06/0.007519, allocations: 29.69 kB / 386.1 MB, free: 16.36 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.905e-06/0.007527, allocations: 29.7 kB / 386.1 MB, free: 16.32 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.901e-05/0.007556, allocations: 67.28 kB / 386.2 MB, free: 16.24 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.092e-06/0.007557, allocations: 0 / 386.2 MB, free: 16.24 MB / 314.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.069e-05/0.007608, allocations: 89.05 kB / 386.3 MB, free: 16.13 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.987e-05/0.007628, allocations: 40.66 kB / 386.3 MB, free: 16.09 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.107e-06/0.007632, allocations: 0 / 386.3 MB, free: 16.09 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.905e-06/0.00764, allocations: 0 / 386.3 MB, free: 16.09 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.41e-07/0.007641, allocations: 0 / 386.3 MB, free: 16.09 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.344e-06/0.007643, allocations: 0 / 386.3 MB, free: 16.09 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.317e-05/0.007656, allocations: 8.281 kB / 386.3 MB, free: 16.08 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.749e-06/0.007661, allocations: 0 / 386.3 MB, free: 16.08 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 3.722e-05/0.007698, allocations: 182.3 kB / 386.5 MB, free: 15.89 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.045e-06/0.007706, allocations: 4 kB / 386.5 MB, free: 15.88 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.083e-06/0.007713, allocations: 3 kB / 386.5 MB, free: 15.88 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-06/0.007715, allocations: 0 / 386.5 MB, free: 15.88 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.114e-06/0.007717, allocations: 3.984 kB / 386.5 MB, free: 15.88 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.00772, allocations: 3.984 kB / 386.5 MB, free: 15.88 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.351e-05/0.007764, allocations: 101.2 kB / 386.6 MB, free: 15.75 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.92e-07/0.007764, allocations: 0 / 386.6 MB, free: 15.75 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.91e-07/0.007765, allocations: 0 / 386.6 MB, free: 15.75 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.72e-07/0.007766, allocations: 0 / 386.6 MB, free: 15.75 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.727e-06/0.007769, allocations: 4 kB / 386.6 MB, free: 15.75 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.41e-07/0.00777, allocations: 0 / 386.6 MB, free: 15.75 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.007771, allocations: 7.938 kB / 386.7 MB, free: 15.74 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.373e-05/0.007835, allocations: 135.8 kB / 386.8 MB, free: 15.57 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.647e-06/0.007839, allocations: 0 / 386.8 MB, free: 15.57 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.06e-05/0.007849, allocations: 0 / 386.8 MB, free: 15.57 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.304e-06/0.007857, allocations: 0 / 386.8 MB, free: 15.57 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.095e-06/0.007865, allocations: 4 kB / 386.8 MB, free: 15.57 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.394e-06/0.007867, allocations: 0 / 386.8 MB, free: 15.57 MB / 314.7 MB Notification: Performance of sorting global known variables: time 1.245e-05/0.007879, allocations: 119.2 kB / 386.9 MB, free: 15.45 MB / 314.7 MB Notification: Performance of sort global known variables: time 9e-08/0.00788, allocations: 4.031 kB / 386.9 MB, free: 15.45 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003624/0.008242, allocations: 135.5 kB / 387 MB, free: 15.31 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.0006019/0.008844, allocations: 333.3 kB / 387.4 MB, free: 14.98 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 7.052e-05/0.008914, allocations: 122.4 kB / 387.5 MB, free: 14.84 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.142e-06/0.008915, allocations: 4.062 kB / 387.5 MB, free: 14.83 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 1.943e-05/0.008935, allocations: 88.8 kB / 387.6 MB, free: 14.72 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001243/0.009059, allocations: 7.938 kB / 387.6 MB, free: 14.71 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001146/0.009174, allocations: 116.4 kB / 387.7 MB, free: 14.57 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 1.62e-05/0.00919, allocations: 55.22 kB / 387.8 MB, free: 14.49 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 4.528e-06/0.009194, allocations: 0 / 387.8 MB, free: 14.49 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.309e-05/0.009218, allocations: 70.2 kB / 387.8 MB, free: 14.42 MB / 314.7 MB Notification: Performance of SimCode: time 7.01e-07/0.009218, allocations: 0 / 387.8 MB, free: 14.42 MB / 314.7 MB Notification: Performance of Templates: time 0.004592/0.01381, allocations: 4.191 MB / 392 MB, free: 10.24 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.sim & ./ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/Random/TestDistributions/TestDistributions.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.4702237057499588]