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.0009309/0.0009309, allocations: 88.28 kB / 21.44 MB, free: 3.129 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.004013/0.004013, allocations: 159.7 kB / 24.7 MB, free: 9.441 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 0.9414/0.9414, allocations: 177 MB / 204.9 MB, free: 5.738 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.2378/0.2378, allocations: 34.24 MB / 295.6 MB, free: 0.6797 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.312e-06/1.312e-06, allocations: 0 / 443.4 MB, free: 1.066 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.848e-05/1.979e-05, allocations: 6.281 kB / 443.4 MB, free: 1.059 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.0008984/0.0009182, allocations: 0.4993 MB / 443.9 MB, free: 0.5625 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.1777/0.1786, allocations: 2.006 MB / 445.9 MB, free: 43.41 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.085e-05/0.1786, allocations: 2.938 kB / 445.9 MB, free: 43.41 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.722e-05/0.1787, allocations: 0.875 kB / 445.9 MB, free: 43.41 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 7.314e-06/0.1787, allocations: 0 / 445.9 MB, free: 43.41 MB / 410.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.001061/0.1797, allocations: 0.5196 MB / 446.4 MB, free: 43.3 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 4.985e-05/0.1798, allocations: 3.281 kB / 446.5 MB, free: 43.3 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.837e-05/0.1798, allocations: 2.656 kB / 446.5 MB, free: 43.3 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.578e-05/0.1798, allocations: 3.984 kB / 446.5 MB, free: 43.3 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.636e-05/0.1799, allocations: 0 / 446.5 MB, free: 43.3 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 7.504e-06/0.1799, allocations: 3.938 kB / 446.5 MB, free: 43.29 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006936/0.1806, allocations: 0.6458 MB / 447.1 MB, free: 43.2 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 9.989e-06/0.1806, allocations: 0 / 447.1 MB, free: 43.2 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 1.99e-05/0.1806, allocations: 2.469 kB / 447.1 MB, free: 43.2 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004326/0.181, allocations: 461.5 kB / 447.6 MB, free: 43.05 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.404e-06/0.181, allocations: 4 kB / 447.6 MB, free: 43.05 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.323e-06/0.181, allocations: 0 / 447.6 MB, free: 43.05 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.451e-06/0.181, allocations: 0 / 447.6 MB, free: 43.05 MB / 410.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.0003171/0.1814, allocations: 346 kB / 447.9 MB, free: 42.71 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.796e-05/0.1814, allocations: 8.812 kB / 447.9 MB, free: 42.71 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.567e-05/0.1814, allocations: 0.9375 kB / 447.9 MB, free: 42.71 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.32e-05/0.1815, allocations: 101.8 kB / 448 MB, free: 42.59 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.228e-05/0.1815, allocations: 3.312 kB / 448 MB, free: 42.59 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.695e-06/0.1815, allocations: 384 / 448 MB, free: 42.59 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.571e-05/0.1816, allocations: 62.06 kB / 448.1 MB, free: 42.52 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.185e-06/0.1816, allocations: 4.188 kB / 448.1 MB, free: 42.52 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.278e-06/0.1816, allocations: 1.219 kB / 448.1 MB, free: 42.52 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.518e-06/0.1816, allocations: 3.938 kB / 448.1 MB, free: 42.52 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.862e-05/0.1816, allocations: 32.64 kB / 448.1 MB, free: 42.48 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.48e-05/0.1817, allocations: 96.2 kB / 448.2 MB, free: 42.36 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.972e-05/0.1817, allocations: 40.28 kB / 448.2 MB, free: 42.3 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.632e-05/0.1817, allocations: 39.55 kB / 448.3 MB, free: 42.27 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.21e-05/0.1818, allocations: 3.938 kB / 448.3 MB, free: 42.26 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.479e-05/0.1818, allocations: 63.23 kB / 448.4 MB, free: 42.19 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 8.11e-07/0.1818, allocations: 0 / 448.4 MB, free: 42.19 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001683/0.182, allocations: 120.3 kB / 448.5 MB, free: 42.06 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.816e-05/0.182, allocations: 81.05 kB / 448.6 MB, free: 41.96 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.794e-05/0.182, allocations: 93.8 kB / 448.6 MB, free: 41.86 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.819e-06/0.182, allocations: 25.7 kB / 448.7 MB, free: 41.83 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.695e-06/0.182, allocations: 80.14 kB / 448.7 MB, free: 41.75 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.685e-05/0.182, allocations: 10.17 kB / 448.8 MB, free: 41.74 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2e-05/0.1821, allocations: 12.56 kB / 448.8 MB, free: 41.73 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.195e-05/0.1821, allocations: 314.2 kB / 449.1 MB, free: 41.41 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.197e-05/0.1821, allocations: 29.7 kB / 449.1 MB, free: 41.38 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.077e-06/0.1821, allocations: 32.61 kB / 449.1 MB, free: 41.34 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.735e-05/0.1821, allocations: 67.42 kB / 449.2 MB, free: 41.27 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.1821, allocations: 0 / 449.2 MB, free: 41.27 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 3.586e-05/0.1822, allocations: 91.84 kB / 449.3 MB, free: 41.17 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.202e-05/0.1822, allocations: 31.48 kB / 449.3 MB, free: 41.14 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.448e-06/0.1822, allocations: 0 / 449.3 MB, free: 41.14 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.226e-05/0.1822, allocations: 0 / 449.3 MB, free: 41.14 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.02e-07/0.1822, allocations: 1.688 kB / 449.3 MB, free: 41.14 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.5e-06/0.1822, allocations: 6.516 kB / 449.3 MB, free: 41.14 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.211e-05/0.1822, allocations: 0 / 449.3 MB, free: 41.14 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.863e-06/0.1822, allocations: 2.938 kB / 449.3 MB, free: 41.14 MB / 410.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.159e-05/0.1823, allocations: 145.7 kB / 449.5 MB, free: 40.98 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.577e-06/0.1823, allocations: 4 kB / 449.5 MB, free: 40.98 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.507e-06/0.1823, allocations: 3 kB / 449.5 MB, free: 40.98 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.91e-07/0.1823, allocations: 3.938 kB / 449.5 MB, free: 40.97 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.1823, allocations: 0 / 449.5 MB, free: 40.97 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.1823, allocations: 6.969 kB / 449.5 MB, free: 40.97 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.131e-05/0.1823, allocations: 96.56 kB / 449.6 MB, free: 40.85 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.2e-07/0.1823, allocations: 0 / 449.6 MB, free: 40.85 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.1e-07/0.1823, allocations: 0 / 449.6 MB, free: 40.85 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.222e-06/0.1823, allocations: 2.938 kB / 449.6 MB, free: 40.85 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.794e-06/0.1823, allocations: 6.688 kB / 449.6 MB, free: 40.84 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.81e-07/0.1823, allocations: 0 / 449.6 MB, free: 40.84 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.91e-07/0.1823, allocations: 0 / 449.6 MB, free: 40.84 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.094e-05/0.1824, allocations: 119.6 kB / 449.7 MB, free: 40.71 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.727e-06/0.1824, allocations: 6.875 kB / 449.7 MB, free: 40.71 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.137e-06/0.1824, allocations: 0 / 449.7 MB, free: 40.71 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.619e-06/0.1824, allocations: 0 / 449.7 MB, free: 40.71 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.323e-05/0.1824, allocations: 4.031 kB / 449.7 MB, free: 40.71 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.836e-06/0.1824, allocations: 6.625 kB / 449.7 MB, free: 40.7 MB / 410.7 MB Notification: Performance of sorting global known variables: time 1.274e-05/0.1824, allocations: 79.22 kB / 449.8 MB, free: 40.62 MB / 410.7 MB Notification: Performance of sort global known variables: time 4e-08/0.1824, allocations: 4.031 kB / 449.8 MB, free: 40.62 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002572/0.1827, allocations: 131 kB / 449.9 MB, free: 40.59 MB / 410.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.0004614/0.1832, allocations: 323.9 kB / 450.3 MB, free: 40.46 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 7.899e-05/0.1832, allocations: 115.7 kB / 450.4 MB, free: 40.33 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.1832, allocations: 64 / 450.4 MB, free: 40.33 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.42e-05/0.1833, allocations: 84.05 kB / 450.5 MB, free: 40.23 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.822e-05/0.1833, allocations: 6.156 kB / 450.5 MB, free: 40.23 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001411/0.1835, allocations: 128.8 kB / 450.6 MB, free: 40.07 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.45e-05/0.1835, allocations: 54.17 kB / 450.6 MB, free: 40 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.018e-05/0.1835, allocations: 8.5 kB / 450.6 MB, free: 40 MB / 410.7 MB Notification: Performance of SimCode: time 2.71e-07/0.1835, allocations: 0 / 450.6 MB, free: 40 MB / 410.7 MB Notification: Performance of Templates: time 0.003951/0.1875, allocations: 3.37 MB / 454 MB, free: 39.73 MB / 410.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=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 6.239502566866577]