Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestDistributions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.000919/0.000919, allocations: 79.59 kB / 21.18 MB, free: 3.383 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008873/0.0008873, allocations: 165 kB / 24.56 MB, free: 12 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.031/1.031, allocations: 177.2 MB / 205 MB, free: 5.281 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.273/0.273, allocations: 34.26 MB / 295.7 MB, free: 0.7109 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Math.Random.TestDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestDistributions") translateModel(ModelicaTest.Math.Random.TestDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestDistributions") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.613e-06/1.613e-06, allocations: 0 / 378 MB, free: 2.684 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.419e-05/2.58e-05, allocations: 14.19 kB / 378 MB, free: 2.668 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.001242/0.001268, allocations: 0.5117 MB / 378.6 MB, free: 2.156 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002524/0.003792, allocations: 2.07 MB / 380.6 MB, free: 64 kB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.97e-05/0.003812, allocations: 0 / 380.6 MB, free: 64 kB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 2.113e-05/0.003833, allocations: 0 / 380.6 MB, free: 64 kB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 7.143e-06/0.00384, allocations: 0 / 380.6 MB, free: 64 kB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.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.001576/0.005415, allocations: 0.5217 MB / 381.1 MB, free: 15.54 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 6.14e-05/0.005477, allocations: 3.984 kB / 381.1 MB, free: 15.54 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.457e-05/0.005521, allocations: 4 kB / 381.2 MB, free: 15.53 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.992e-05/0.005551, allocations: 4 kB / 381.2 MB, free: 15.53 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.956e-05/0.005571, allocations: 0 / 381.2 MB, free: 15.53 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 8.626e-06/0.005579, allocations: 0 / 381.2 MB, free: 15.53 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000984/0.006563, allocations: 0.6508 MB / 381.8 MB, free: 14.88 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 1.084e-05/0.006574, allocations: 0 / 381.8 MB, free: 14.88 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 2.243e-05/0.006597, allocations: 0 / 381.8 MB, free: 14.88 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006309/0.007228, allocations: 474.7 kB / 382.3 MB, free: 14.41 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.007231, allocations: 0 / 382.3 MB, free: 14.41 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.743e-06/0.007233, allocations: 0 / 382.3 MB, free: 14.41 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.52e-06/0.007238, allocations: 0 / 382.3 MB, free: 14.41 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.000459/0.007697, allocations: 441.3 kB / 382.7 MB, free: 13.94 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.783e-05/0.007745, allocations: 8.031 kB / 382.7 MB, free: 13.93 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.613e-05/0.007791, allocations: 0.9375 kB / 382.7 MB, free: 13.93 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001345/0.007926, allocations: 116.6 kB / 382.8 MB, free: 13.79 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.264e-05/0.007938, allocations: 4.359 kB / 382.8 MB, free: 13.79 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.514e-06/0.007946, allocations: 4.312 kB / 382.8 MB, free: 13.78 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.935e-05/0.008045, allocations: 59.95 kB / 382.9 MB, free: 13.71 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.566e-06/0.008054, allocations: 192 / 382.9 MB, free: 13.71 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.298e-06/0.008063, allocations: 384 / 382.9 MB, free: 13.71 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.087e-06/0.008072, allocations: 3.938 kB / 382.9 MB, free: 13.71 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.928e-05/0.008091, allocations: 29.64 kB / 382.9 MB, free: 13.67 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.37e-05/0.008185, allocations: 108.6 kB / 383 MB, free: 13.53 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.43e-05/0.008239, allocations: 52.8 kB / 383.1 MB, free: 13.46 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.341e-05/0.008263, allocations: 45.38 kB / 383.1 MB, free: 13.41 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.709e-06/0.008268, allocations: 0 / 383.1 MB, free: 13.41 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.773e-05/0.008305, allocations: 59.09 kB / 383.2 MB, free: 13.33 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 6.11e-07/0.008306, allocations: 4.062 kB / 383.2 MB, free: 13.33 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001881/0.008494, allocations: 118.7 kB / 383.3 MB, free: 13.19 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.277e-05/0.008537, allocations: 81.05 kB / 383.4 MB, free: 13.09 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.688e-05/0.008584, allocations: 146.2 kB / 383.5 MB, free: 12.93 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 9.348e-06/0.008593, allocations: 25.7 kB / 383.6 MB, free: 12.9 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.66e-05/0.00862, allocations: 126.9 kB / 383.7 MB, free: 12.77 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.955e-05/0.008639, allocations: 4.297 kB / 383.7 MB, free: 12.77 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.415e-05/0.008663, allocations: 23.5 kB / 383.7 MB, free: 12.74 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001075/0.008771, allocations: 492.1 kB / 384.2 MB, free: 12.25 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.174e-05/0.008793, allocations: 29.7 kB / 384.2 MB, free: 12.21 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.272e-05/0.008805, allocations: 25.7 kB / 384.2 MB, free: 12.18 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.805e-05/0.008853, allocations: 71.08 kB / 384.3 MB, free: 12.09 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.008856, allocations: 0 / 384.3 MB, free: 12.09 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.598e-05/0.008922, allocations: 89.05 kB / 384.4 MB, free: 11.99 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.065e-05/0.008952, allocations: 31.27 kB / 384.4 MB, free: 11.95 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.05e-06/0.008957, allocations: 0 / 384.4 MB, free: 11.95 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.485e-05/0.008972, allocations: 8.078 kB / 384.4 MB, free: 11.95 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.908e-06/0.008976, allocations: 4 kB / 384.4 MB, free: 11.94 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.771e-06/0.008982, allocations: 3.938 kB / 384.4 MB, free: 11.94 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.421e-05/0.008996, allocations: 0 / 384.4 MB, free: 11.94 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.825e-06/0.009004, allocations: 0 / 384.4 MB, free: 11.94 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 7.762e-05/0.009082, allocations: 182.3 kB / 384.6 MB, free: 11.74 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.336e-06/0.00909, allocations: 8 kB / 384.6 MB, free: 11.73 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.488e-06/0.009099, allocations: 3 kB / 384.6 MB, free: 11.73 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-06/0.009101, allocations: 0 / 384.6 MB, free: 11.73 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.469e-06/0.009105, allocations: 3.938 kB / 384.6 MB, free: 11.73 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.519e-06/0.00911, allocations: 11.94 kB / 384.6 MB, free: 11.72 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.804e-05/0.009168, allocations: 108.6 kB / 384.8 MB, free: 11.58 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.62e-07/0.009169, allocations: 0 / 384.8 MB, free: 11.58 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.11e-07/0.009169, allocations: 0 / 384.8 MB, free: 11.58 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.342e-06/0.009171, allocations: 0 / 384.8 MB, free: 11.58 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.925e-06/0.009178, allocations: 4 kB / 384.8 MB, free: 11.57 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.7e-07/0.009179, allocations: 0 / 384.8 MB, free: 11.57 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.00918, allocations: 0 / 384.8 MB, free: 11.57 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.865e-05/0.009269, allocations: 135.7 kB / 384.9 MB, free: 11.41 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.757e-06/0.009273, allocations: 0 / 384.9 MB, free: 11.41 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.47e-05/0.009287, allocations: 4 kB / 384.9 MB, free: 11.4 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.149e-06/0.009292, allocations: 4.031 kB / 384.9 MB, free: 11.4 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.651e-05/0.009309, allocations: 0 / 384.9 MB, free: 11.4 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.096e-06/0.009312, allocations: 0 / 384.9 MB, free: 11.4 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.187e-05/0.009344, allocations: 123.1 kB / 385 MB, free: 11.28 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.009344, allocations: 0 / 385 MB, free: 11.28 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003465/0.00969, allocations: 139.5 kB / 385.2 MB, free: 11.14 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.0006347/0.01033, allocations: 339.4 kB / 385.5 MB, free: 10.81 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001155/0.01044, allocations: 126.4 kB / 385.6 MB, free: 10.66 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.01044, allocations: 0 / 385.6 MB, free: 10.66 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.363e-05/0.01048, allocations: 88.8 kB / 385.7 MB, free: 10.55 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.964e-05/0.01058, allocations: 6.5 kB / 385.7 MB, free: 10.54 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002167/0.01079, allocations: 118.5 kB / 385.8 MB, free: 10.39 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.449e-05/0.01083, allocations: 51.36 kB / 385.9 MB, free: 10.32 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.911e-06/0.01083, allocations: 128 / 385.9 MB, free: 10.32 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.489e-05/0.01085, allocations: 12.5 kB / 385.9 MB, free: 10.31 MB / 362.7 MB Notification: Performance of SimCode: time 5.51e-07/0.01085, allocations: 4 kB / 385.9 MB, free: 10.3 MB / 362.7 MB Notification: Performance of Templates: time 0.00663/0.01748, allocations: 4.17 MB / 390.1 MB, free: 6.137 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestDistributions.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestDistributions.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestDistributions.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestDistributions.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestDistributions.sim & ./ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestDistributions -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestDistributions.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_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.2731132660992444]