Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions.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.0009901/0.0009901, allocations: 71.77 kB / 21.69 MB, free: 2.859 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.001065/0.001065, allocations: 166.4 kB / 25 MB, free: 8.336 MB / 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.023/1.023, allocations: 177.1 MB / 205.3 MB, free: 5.633 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.2942/0.2942, allocations: 34.26 MB / 296 MB, free: 0.7695 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.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions") translateModel(ModelicaTest.Math.Random.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.222e-06/1.222e-06, allocations: 0 / 378 MB, free: 3 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.867e-05/1.99e-05, allocations: 4.141 kB / 378 MB, free: 2.996 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.0009924/0.001012, allocations: 0.5164 MB / 378.5 MB, free: 2.477 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002458/0.00347, allocations: 2.308 MB / 380.8 MB, free: 148 kB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.26e-05/0.003493, allocations: 0 / 380.8 MB, free: 148 kB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.757e-05/0.00351, allocations: 4 kB / 380.8 MB, free: 144 kB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 7.123e-06/0.003517, allocations: 0 / 380.8 MB, free: 144 kB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/Math.mo:1098:5-1194:31:writable] Warning: Pure function 'ModelicaTest.Math.Random.truncatedDistributions' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.001433/0.004951, allocations: 0.58 MB / 381.4 MB, free: 15.56 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 5.351e-05/0.005004, allocations: 3.984 kB / 381.4 MB, free: 15.55 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.914e-05/0.005043, allocations: 0 / 381.4 MB, free: 15.55 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.859e-05/0.005072, allocations: 11.94 kB / 381.4 MB, free: 15.54 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.688e-05/0.005089, allocations: 0 / 381.4 MB, free: 15.54 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 7.474e-06/0.005096, allocations: 4 kB / 381.4 MB, free: 15.54 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008126/0.005909, allocations: 0.6782 MB / 382.1 MB, free: 14.86 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 7.354e-06/0.005916, allocations: 0 / 382.1 MB, free: 14.86 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 1.82e-05/0.005935, allocations: 0 / 382.1 MB, free: 14.86 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005463/0.006481, allocations: 0.526 MB / 382.6 MB, free: 14.33 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.144e-06/0.006483, allocations: 0 / 382.6 MB, free: 14.33 MB / 362.7 MB Notification: Performance of FrontEnd: time 6.91e-07/0.006484, allocations: 0 / 382.6 MB, free: 14.33 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.338e-06/0.006488, allocations: 0 / 382.6 MB, free: 14.33 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.0003502/0.006838, allocations: 477 kB / 383.1 MB, free: 13.82 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.304e-05/0.006871, allocations: 11.97 kB / 383.1 MB, free: 13.81 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.487e-05/0.006906, allocations: 4.938 kB / 383.1 MB, free: 13.81 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.101e-05/0.006967, allocations: 104.6 kB / 383.2 MB, free: 13.68 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.016e-05/0.006977, allocations: 384 / 383.2 MB, free: 13.68 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.827e-06/0.006986, allocations: 384 / 383.2 MB, free: 13.68 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.224e-05/0.007068, allocations: 59.95 kB / 383.3 MB, free: 13.61 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.543e-06/0.007075, allocations: 4.188 kB / 383.3 MB, free: 13.61 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.743e-06/0.007082, allocations: 384 / 383.3 MB, free: 13.61 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.985e-06/0.00709, allocations: 3.938 kB / 383.3 MB, free: 13.6 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.847e-05/0.007108, allocations: 29.7 kB / 383.3 MB, free: 13.57 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.167e-05/0.00719, allocations: 104.6 kB / 383.4 MB, free: 13.43 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.468e-05/0.007234, allocations: 60.73 kB / 383.5 MB, free: 13.35 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.11e-05/0.007256, allocations: 33.39 kB / 383.5 MB, free: 13.31 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.278e-06/0.00726, allocations: 3.984 kB / 383.5 MB, free: 13.3 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.414e-05/0.007294, allocations: 63.16 kB / 383.6 MB, free: 13.23 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 7.31e-07/0.007295, allocations: 0 / 383.6 MB, free: 13.23 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.000152/0.007447, allocations: 114.8 kB / 383.7 MB, free: 13.09 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.993e-05/0.007487, allocations: 92.97 kB / 383.8 MB, free: 12.98 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.289e-05/0.00753, allocations: 146.2 kB / 383.9 MB, free: 12.82 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.656e-06/0.007538, allocations: 29.7 kB / 384 MB, free: 12.79 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.631e-05/0.007565, allocations: 130.9 kB / 384.1 MB, free: 12.66 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.329e-05/0.007578, allocations: 352 / 384.1 MB, free: 12.66 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.32e-05/0.007601, allocations: 19.38 kB / 384.1 MB, free: 12.63 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.808e-05/0.007699, allocations: 492.1 kB / 384.6 MB, free: 12.14 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.606e-05/0.007715, allocations: 25.7 kB / 384.6 MB, free: 12.11 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.153e-05/0.007727, allocations: 25.83 kB / 384.6 MB, free: 12.07 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.637e-05/0.007773, allocations: 75.14 kB / 384.7 MB, free: 11.98 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.007775, allocations: 0 / 384.7 MB, free: 11.98 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.571e-05/0.00783, allocations: 93 kB / 384.8 MB, free: 11.88 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.238e-05/0.007853, allocations: 33.7 kB / 384.8 MB, free: 11.84 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.777e-06/0.007857, allocations: 0 / 384.8 MB, free: 11.84 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.294e-05/0.007869, allocations: 4 kB / 384.8 MB, free: 11.83 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.81e-07/0.00787, allocations: 0 / 384.8 MB, free: 11.83 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.562e-06/0.007877, allocations: 7.922 kB / 384.8 MB, free: 11.82 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.227e-06/0.007886, allocations: 0 / 384.8 MB, free: 11.82 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.751e-06/0.007892, allocations: 8.031 kB / 384.9 MB, free: 11.82 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.389e-05/0.007956, allocations: 182.3 kB / 385 MB, free: 11.62 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.18e-06/0.007961, allocations: 4 kB / 385 MB, free: 11.62 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.594e-06/0.007968, allocations: 6.984 kB / 385 MB, free: 11.61 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-06/0.00797, allocations: 0 / 385 MB, free: 11.61 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.056e-06/0.007973, allocations: 0 / 385 MB, free: 11.61 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.007976, allocations: 3.938 kB / 385 MB, free: 11.61 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.106e-05/0.008027, allocations: 112.6 kB / 385.2 MB, free: 11.46 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.01e-07/0.008028, allocations: 0 / 385.2 MB, free: 11.46 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.62e-07/0.008029, allocations: 0 / 385.2 MB, free: 11.46 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.072e-06/0.00803, allocations: 0 / 385.2 MB, free: 11.46 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.031e-06/0.008036, allocations: 4 kB / 385.2 MB, free: 11.46 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.71e-07/0.008036, allocations: 0 / 385.2 MB, free: 11.46 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.81e-07/0.008037, allocations: 0 / 385.2 MB, free: 11.46 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.31e-05/0.00812, allocations: 139.7 kB / 385.3 MB, free: 11.29 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.286e-06/0.008123, allocations: 0 / 385.3 MB, free: 11.29 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.298e-05/0.008136, allocations: 0 / 385.3 MB, free: 11.29 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.348e-06/0.008141, allocations: 0 / 385.3 MB, free: 11.29 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.26e-05/0.008153, allocations: 4 kB / 385.3 MB, free: 11.29 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.653e-06/0.008155, allocations: 3.938 kB / 385.3 MB, free: 11.28 MB / 362.7 MB Notification: Performance of sorting global known variables: time 2.801e-05/0.008183, allocations: 123.1 kB / 385.4 MB, free: 11.16 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.008183, allocations: 4.031 kB / 385.4 MB, free: 11.16 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003015/0.008485, allocations: 167.3 kB / 385.6 MB, free: 10.99 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.0005656/0.00905, allocations: 372.3 kB / 386 MB, free: 10.63 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001053/0.009155, allocations: 122.5 kB / 386.1 MB, free: 10.48 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.009157, allocations: 4.062 kB / 386.1 MB, free: 10.48 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.212e-05/0.009189, allocations: 92.73 kB / 386.2 MB, free: 10.36 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.073e-05/0.00928, allocations: 4 kB / 386.2 MB, free: 10.36 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001685/0.009448, allocations: 114.5 kB / 386.3 MB, free: 10.21 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.76e-05/0.009476, allocations: 51.36 kB / 386.3 MB, free: 10.14 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.29e-06/0.009481, allocations: 0 / 386.3 MB, free: 10.14 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.165e-05/0.009493, allocations: 12.5 kB / 386.3 MB, free: 10.13 MB / 362.7 MB Notification: Performance of SimCode: time 4.11e-07/0.009493, allocations: 0 / 386.3 MB, free: 10.13 MB / 362.7 MB Notification: Performance of Templates: time 0.004843/0.01434, allocations: 3.649 MB / 390 MB, free: 6.48 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions.sim & ./ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/Random/TestTruncatedDistributions/TestTruncatedDistributions.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.35067341895774]