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.001148/0.001148, allocations: 79.69 kB / 21.7 MB, free: 2.848 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.001362/0.001362, allocations: 157.6 kB / 24.99 MB, free: 9.289 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.09/1.09, allocations: 177 MB / 205.2 MB, free: 5.582 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.3136/0.3136, allocations: 34.87 MB / 296.6 MB, free: 0.5469 MB / 266.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.723e-06/1.723e-06, allocations: 0 / 378.7 MB, free: 2.422 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.21e-05/2.382e-05, allocations: 8.781 kB / 378.8 MB, free: 2.414 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.001079/0.001103, allocations: 0.5124 MB / 379.3 MB, free: 1.898 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002353/0.003456, allocations: 2.055 MB / 381.3 MB, free: 15.82 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.191e-05/0.003478, allocations: 4 kB / 381.3 MB, free: 15.81 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 1.685e-05/0.003495, allocations: 3.938 kB / 381.3 MB, free: 15.81 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 6.763e-06/0.003502, allocations: 0 / 381.3 MB, free: 15.81 MB / 362.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.001182/0.004684, allocations: 0.5216 MB / 381.8 MB, free: 15.29 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 5.565e-05/0.004739, allocations: 0 / 381.8 MB, free: 15.29 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.216e-05/0.004782, allocations: 7.984 kB / 381.9 MB, free: 15.28 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.98e-05/0.004811, allocations: 3.938 kB / 381.9 MB, free: 15.28 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.982e-05/0.004831, allocations: 0 / 381.9 MB, free: 15.28 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 8.156e-06/0.004839, allocations: 0 / 381.9 MB, free: 15.28 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007443/0.005584, allocations: 0.647 MB / 382.5 MB, free: 14.63 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 8.576e-06/0.005592, allocations: 4 kB / 382.5 MB, free: 14.62 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 1.932e-05/0.005612, allocations: 0 / 382.5 MB, free: 14.62 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004524/0.006064, allocations: 454.8 kB / 383 MB, free: 14.18 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.006068, allocations: 8 kB / 383 MB, free: 14.17 MB / 362.7 MB Notification: Performance of FrontEnd: time 6.91e-07/0.006069, allocations: 3.938 kB / 383 MB, free: 14.17 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.981e-06/0.006074, allocations: 4 kB / 383 MB, free: 14.16 MB / 362.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.0003375/0.006412, allocations: 437.3 kB / 383.4 MB, free: 13.7 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.648e-05/0.006448, allocations: 12.03 kB / 383.4 MB, free: 13.68 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.589e-05/0.006484, allocations: 0.9375 kB / 383.4 MB, free: 13.68 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.985e-05/0.006544, allocations: 112.6 kB / 383.5 MB, free: 13.55 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.05e-05/0.006555, allocations: 384 / 383.5 MB, free: 13.55 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.615e-06/0.006562, allocations: 4.375 kB / 383.5 MB, free: 13.54 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.541e-05/0.006648, allocations: 55.91 kB / 383.6 MB, free: 13.48 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.833e-06/0.006655, allocations: 192 / 383.6 MB, free: 13.48 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.085e-06/0.006663, allocations: 4.375 kB / 383.6 MB, free: 13.47 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.115e-06/0.006671, allocations: 7.938 kB / 383.6 MB, free: 13.46 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.873e-05/0.006689, allocations: 29.69 kB / 383.6 MB, free: 13.43 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.654e-05/0.006776, allocations: 112.6 kB / 383.7 MB, free: 13.29 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.362e-05/0.00682, allocations: 48.77 kB / 383.8 MB, free: 13.22 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.065e-05/0.00684, allocations: 41.48 kB / 383.8 MB, free: 13.17 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.828e-06/0.006844, allocations: 0 / 383.8 MB, free: 13.17 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.708e-05/0.006881, allocations: 70.97 kB / 383.9 MB, free: 13.08 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 6.21e-07/0.006882, allocations: 0 / 383.9 MB, free: 13.08 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.000157/0.007039, allocations: 118.8 kB / 384 MB, free: 12.94 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.618e-05/0.007075, allocations: 85.05 kB / 384.1 MB, free: 12.84 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.973e-05/0.007115, allocations: 150.4 kB / 384.2 MB, free: 12.68 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 9.748e-06/0.007124, allocations: 25.7 kB / 384.3 MB, free: 12.65 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.778e-05/0.007162, allocations: 126.9 kB / 384.4 MB, free: 12.52 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.564e-05/0.007178, allocations: 4.297 kB / 384.4 MB, free: 12.52 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.435e-05/0.007202, allocations: 19.38 kB / 384.4 MB, free: 12.49 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001084/0.007311, allocations: 492.1 kB / 384.9 MB, free: 12 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.936e-05/0.00733, allocations: 29.69 kB / 384.9 MB, free: 11.96 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.416e-05/0.007344, allocations: 33.64 kB / 384.9 MB, free: 11.92 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.433e-05/0.007389, allocations: 67.09 kB / 385 MB, free: 11.84 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.00739, allocations: 64 / 385 MB, free: 11.84 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.417e-05/0.007444, allocations: 93.09 kB / 385.1 MB, free: 11.73 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.398e-05/0.007468, allocations: 29.7 kB / 385.1 MB, free: 11.7 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.907e-06/0.007472, allocations: 0 / 385.1 MB, free: 11.7 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.189e-05/0.007484, allocations: 0 / 385.1 MB, free: 11.7 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.12e-07/0.007485, allocations: 0 / 385.1 MB, free: 11.7 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.791e-06/0.007491, allocations: 3.938 kB / 385.1 MB, free: 11.69 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.277e-05/0.007504, allocations: 4 kB / 385.1 MB, free: 11.69 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.07e-06/0.007509, allocations: 0 / 385.1 MB, free: 11.69 MB / 362.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 6.797e-05/0.007577, allocations: 178.3 kB / 385.3 MB, free: 11.5 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.05e-06/0.007582, allocations: 15.97 kB / 385.3 MB, free: 11.48 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.035e-06/0.00759, allocations: 6.984 kB / 385.3 MB, free: 11.48 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.022e-06/0.007591, allocations: 0 / 385.3 MB, free: 11.48 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.016e-06/0.007594, allocations: 0 / 385.3 MB, free: 11.48 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.007597, allocations: 3.938 kB / 385.3 MB, free: 11.47 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.198e-05/0.007649, allocations: 108.6 kB / 385.4 MB, free: 11.33 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.00765, allocations: 0 / 385.4 MB, free: 11.33 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.81e-07/0.007651, allocations: 0 / 385.4 MB, free: 11.33 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.81e-07/0.007652, allocations: 0 / 385.4 MB, free: 11.33 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.122e-06/0.007658, allocations: 0 / 385.4 MB, free: 11.33 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.31e-07/0.007658, allocations: 0 / 385.4 MB, free: 11.33 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.572e-06/0.00766, allocations: 4 kB / 385.5 MB, free: 11.33 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.474e-05/0.007734, allocations: 135.8 kB / 385.6 MB, free: 11.16 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.486e-06/0.007738, allocations: 3.938 kB / 385.6 MB, free: 11.16 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.087e-05/0.007749, allocations: 0 / 385.6 MB, free: 11.16 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.302e-06/0.007755, allocations: 7.984 kB / 385.6 MB, free: 11.15 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.136e-05/0.007766, allocations: 0 / 385.6 MB, free: 11.15 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.403e-06/0.007768, allocations: 0 / 385.6 MB, free: 11.15 MB / 362.7 MB Notification: Performance of sorting global known variables: time 2.95e-05/0.007797, allocations: 127.1 kB / 385.7 MB, free: 11.02 MB / 362.7 MB Notification: Performance of sort global known variables: time 4e-08/0.007797, allocations: 0 / 385.7 MB, free: 11.02 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002586/0.008056, allocations: 131.5 kB / 385.8 MB, free: 10.89 MB / 362.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.0005128/0.008569, allocations: 336 kB / 386.2 MB, free: 10.56 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001041/0.008673, allocations: 126.5 kB / 386.3 MB, free: 10.41 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.008674, allocations: 0 / 386.3 MB, free: 10.41 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.006e-05/0.008705, allocations: 88.8 kB / 386.4 MB, free: 10.3 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.345e-05/0.008798, allocations: 8.109 kB / 386.4 MB, free: 10.29 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000188/0.008986, allocations: 114.5 kB / 386.5 MB, free: 10.14 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.834e-05/0.009014, allocations: 55.36 kB / 386.6 MB, free: 10.07 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 7.163e-06/0.009021, allocations: 0 / 386.6 MB, free: 10.07 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.505e-05/0.009037, allocations: 8.5 kB / 386.6 MB, free: 10.06 MB / 362.7 MB Notification: Performance of SimCode: time 4.31e-07/0.009037, allocations: 3.938 kB / 386.6 MB, free: 10.06 MB / 362.7 MB Notification: Performance of Templates: time 0.004827/0.01386, allocations: 3.537 MB / 390.1 MB, free: 6.527 MB / 362.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.4159687920473516]