Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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.001728/0.001728, allocations: 112.4 kB / 21.17 MB, free: 0.6172 MB / 14.72 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.002359/0.002359, allocations: 204.1 kB / 24.46 MB, free: 4.023 MB / 14.72 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.45/1.45, allocations: 230.2 MB / 257.8 MB, free: 8.496 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2284/0.2284, allocations: 46.9 MB / 361.1 MB, free: 4.629 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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_4.1.0-beta.om_ModelicaTest.Math.Random.TestDistributions") translateModel(ModelicaTest.Math.Random.TestDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestDistributions") [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.00246/0.00246, allocations: 76.16 kB / 0.4967 GB, free: 7.824 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3091/0.3116, allocations: 65.98 MB / 0.5612 GB, free: 5.051 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.001917/0.3135, allocations: 0.511 MB / 0.5617 GB, free: 4.543 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003305/0.3168, allocations: 2.124 MB / 0.5638 GB, free: 2.398 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.356e-05/0.3168, allocations: 0 / 0.5638 GB, free: 2.398 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.663e-05/0.3168, allocations: 0 / 0.5638 GB, free: 2.398 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.631e-06/0.3169, allocations: 3.938 kB / 0.5638 GB, free: 2.395 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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.001362/0.3182, allocations: 0.5097 MB / 0.5643 GB, free: 1.887 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.1e-05/0.3183, allocations: 0 / 0.5643 GB, free: 1.887 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.991e-05/0.3183, allocations: 4 kB / 0.5643 GB, free: 1.883 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.741e-05/0.3183, allocations: 3.984 kB / 0.5643 GB, free: 1.879 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.459e-05/0.3183, allocations: 0 / 0.5643 GB, free: 1.879 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.731e-06/0.3183, allocations: 0 / 0.5643 GB, free: 1.879 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001095/0.3194, allocations: 0.6707 MB / 0.5649 GB, free: 1.207 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.134e-06/0.3194, allocations: 0 / 0.5649 GB, free: 1.207 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.556e-05/0.3195, allocations: 4 kB / 0.5649 GB, free: 1.203 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005732/0.32, allocations: 397.8 kB / 0.5653 GB, free: 0.8164 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.32, allocations: 0 / 0.5653 GB, free: 0.8164 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.32, allocations: 0 / 0.5653 GB, free: 0.8164 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.94e-06/0.32, allocations: 4 kB / 0.5653 GB, free: 0.8125 MB / 398.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.0004976/0.3205, allocations: 420.5 kB / 0.5657 GB, free: 356 kB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.62e-05/0.3206, allocations: 11.97 kB / 0.5657 GB, free: 344 kB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.877e-05/0.3206, allocations: 0.9375 kB / 0.5657 GB, free: 344 kB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001191/0.3207, allocations: 164.4 kB / 0.5659 GB, free: 140 kB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.144e-05/0.3207, allocations: 384 / 0.5659 GB, free: 140 kB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.123e-05/0.3207, allocations: 384 / 0.5659 GB, free: 140 kB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.058e-05/0.3208, allocations: 37.94 kB / 0.5659 GB, free: 96 kB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.884e-06/0.3208, allocations: 4 kB / 0.5659 GB, free: 92 kB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.542e-06/0.3208, allocations: 0 / 0.5659 GB, free: 92 kB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.347e-06/0.3208, allocations: 4 kB / 0.5659 GB, free: 88 kB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.491e-05/0.3209, allocations: 0 / 0.5659 GB, free: 88 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001634/0.321, allocations: 149.7 kB / 0.5661 GB, free: 15.89 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.764e-05/0.3211, allocations: 18.61 kB / 0.5661 GB, free: 15.86 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.573e-05/0.3211, allocations: 12.73 kB / 0.5661 GB, free: 15.85 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.905e-06/0.3211, allocations: 0 / 0.5661 GB, free: 15.85 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.147e-05/0.3212, allocations: 68.25 kB / 0.5662 GB, free: 15.77 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 1.012e-06/0.3212, allocations: 4 kB / 0.5662 GB, free: 15.76 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.000188/0.3213, allocations: 67.36 kB / 0.5662 GB, free: 15.68 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.853e-05/0.3214, allocations: 77.11 kB / 0.5663 GB, free: 15.59 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.508e-05/0.3215, allocations: 89.86 kB / 0.5664 GB, free: 15.49 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.467e-05/0.3215, allocations: 25.7 kB / 0.5664 GB, free: 15.46 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.495e-05/0.3215, allocations: 80.14 kB / 0.5665 GB, free: 15.38 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.527e-05/0.3215, allocations: 0 / 0.5665 GB, free: 15.38 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.096e-05/0.3216, allocations: 17.7 kB / 0.5665 GB, free: 15.36 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001392/0.3217, allocations: 315 kB / 0.5668 GB, free: 15.04 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.126e-05/0.3217, allocations: 4 kB / 0.5668 GB, free: 15.04 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.19e-06/0.3217, allocations: 3.938 kB / 0.5668 GB, free: 15.03 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.42e-05/0.3218, allocations: 60.27 kB / 0.5669 GB, free: 14.96 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.3218, allocations: 0 / 0.5669 GB, free: 14.96 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.187e-05/0.3218, allocations: 63.39 kB / 0.5669 GB, free: 14.88 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.716e-05/0.3219, allocations: 33.64 kB / 0.567 GB, free: 14.84 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.767e-06/0.3219, allocations: 4 kB / 0.567 GB, free: 14.84 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.338e-05/0.3219, allocations: 4.094 kB / 0.567 GB, free: 14.84 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.81e-07/0.3219, allocations: 0 / 0.567 GB, free: 14.84 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.258e-06/0.3219, allocations: 0 / 0.567 GB, free: 14.84 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.43e-05/0.3219, allocations: 0 / 0.567 GB, free: 14.84 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.112e-06/0.3219, allocations: 0 / 0.567 GB, free: 14.84 MB / 414.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 9.198e-05/0.322, allocations: 143.5 kB / 0.5671 GB, free: 14.68 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.778e-06/0.322, allocations: 7.875 kB / 0.5671 GB, free: 14.67 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.171e-05/0.322, allocations: 7.109 kB / 0.5671 GB, free: 14.66 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.82e-07/0.322, allocations: 0 / 0.5671 GB, free: 14.66 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.606e-06/0.322, allocations: 4 kB / 0.5671 GB, free: 14.66 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.322, allocations: 4 kB / 0.5671 GB, free: 14.66 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001087/0.3221, allocations: 141.7 kB / 0.5673 GB, free: 14.47 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.02e-07/0.3222, allocations: 0 / 0.5673 GB, free: 14.47 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.31e-07/0.3222, allocations: 0 / 0.5673 GB, free: 14.47 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.316e-06/0.3222, allocations: 3.938 kB / 0.5673 GB, free: 14.46 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.694e-06/0.3222, allocations: 3.984 kB / 0.5673 GB, free: 14.46 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.309e-06/0.3222, allocations: 4 kB / 0.5673 GB, free: 14.46 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.52e-07/0.3222, allocations: 0 / 0.5673 GB, free: 14.46 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001037/0.3223, allocations: 86.84 kB / 0.5674 GB, free: 14.35 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.377e-05/0.3223, allocations: 85.09 kB / 0.5674 GB, free: 14.25 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.375e-05/0.3223, allocations: 3.938 kB / 0.5674 GB, free: 14.24 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.536e-06/0.3223, allocations: 0 / 0.5674 GB, free: 14.24 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.54e-05/0.3224, allocations: 0 / 0.5674 GB, free: 14.24 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.408e-06/0.3224, allocations: 7.938 kB / 0.5674 GB, free: 14.23 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.095e-05/0.3224, allocations: 75.28 kB / 0.5675 GB, free: 14.16 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3224, allocations: 7.938 kB / 0.5675 GB, free: 14.15 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004218/0.3228, allocations: 139.6 kB / 0.5677 GB, free: 14.02 MB / 414.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.0007243/0.3235, allocations: 319.7 kB / 0.568 GB, free: 13.7 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001083/0.3236, allocations: 59.39 kB / 0.568 GB, free: 13.63 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.3236, allocations: 0 / 0.568 GB, free: 13.63 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 3.769e-05/0.3237, allocations: 59.47 kB / 0.5681 GB, free: 13.56 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001368/0.3238, allocations: 0 / 0.5681 GB, free: 13.56 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002049/0.324, allocations: 93 kB / 0.5682 GB, free: 13.45 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002889/0.3243, allocations: 0.6768 MB / 0.5688 GB, free: 12.74 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.4e-06/0.3243, allocations: 0 / 0.5688 GB, free: 12.74 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.138e-05/0.3243, allocations: 7.438 kB / 0.5688 GB, free: 12.73 MB / 414.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3243, allocations: 0 / 0.5688 GB, free: 12.73 MB / 414.1 MB Notification: Performance of Templates: time 0.007607/0.3319, allocations: 3.503 MB / 0.5723 GB, free: 9.227 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestDistributions.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestDistributions.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestDistributions.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestDistributions.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestDistributions.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestDistributions -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestDistributions.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestDistributions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/Random/TestDistributions/TestDistributions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_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: 5.115965460892767]