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.00116/0.00116, allocations: 83.58 kB / 21.19 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.001349/0.001349, allocations: 161 kB / 24.55 MB, free: 20 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.018/1.018, allocations: 177.1 MB / 205 MB, free: 5.613 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.2683/0.2683, allocations: 34.26 MB / 295.7 MB, free: 0.6914 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 2.505e-06/2.505e-06, allocations: 0 / 378 MB, free: 2.629 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 5.174e-05/5.424e-05, allocations: 2.312 kB / 378 MB, free: 2.625 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.002118/0.002172, allocations: 0.5086 MB / 378.5 MB, free: 2.113 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.003674/0.005846, allocations: 2.311 MB / 380.9 MB, free: 15.78 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.27e-05/0.005869, allocations: 0 / 380.9 MB, free: 15.78 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 2.881e-05/0.005898, allocations: 0 / 380.9 MB, free: 15.78 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 8.245e-06/0.005906, allocations: 0 / 380.9 MB, free: 15.78 MB / 362.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.001879/0.007785, allocations: 0.5878 MB / 381.4 MB, free: 15.19 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 6.954e-05/0.007854, allocations: 11.92 kB / 381.5 MB, free: 15.18 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.354e-05/0.007898, allocations: 0 / 381.5 MB, free: 15.18 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.338e-05/0.007931, allocations: 3.984 kB / 381.5 MB, free: 15.17 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.149e-05/0.007952, allocations: 4 kB / 381.5 MB, free: 15.17 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 8.856e-06/0.007961, allocations: 0 / 381.5 MB, free: 15.17 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001226/0.009187, allocations: 0.6782 MB / 382.1 MB, free: 14.49 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 1.187e-05/0.009199, allocations: 4 kB / 382.1 MB, free: 14.48 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 2.582e-05/0.009225, allocations: 0 / 382.1 MB, free: 14.48 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008694/0.01009, allocations: 0.522 MB / 382.7 MB, free: 13.96 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.0101, allocations: 0 / 382.7 MB, free: 13.96 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.0101, allocations: 0 / 382.7 MB, free: 13.96 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.739e-06/0.01011, allocations: 0 / 382.7 MB, free: 13.96 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.000549/0.01066, allocations: 477 kB / 383.1 MB, free: 13.45 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.146e-05/0.01071, allocations: 15.97 kB / 383.2 MB, free: 13.44 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.338e-05/0.01076, allocations: 4.938 kB / 383.2 MB, free: 13.43 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.095e-05/0.01084, allocations: 104.6 kB / 383.3 MB, free: 13.3 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.484e-05/0.01086, allocations: 4.359 kB / 383.3 MB, free: 13.3 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.899e-06/0.01087, allocations: 384 / 383.3 MB, free: 13.3 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001153/0.01098, allocations: 55.97 kB / 383.3 MB, free: 13.23 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.156e-06/0.01099, allocations: 192 / 383.3 MB, free: 13.23 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.069e-05/0.011, allocations: 384 / 383.3 MB, free: 13.23 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.087e-05/0.01101, allocations: 3.938 kB / 383.3 MB, free: 13.23 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.643e-05/0.01104, allocations: 33.69 kB / 383.4 MB, free: 13.19 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001213/0.01116, allocations: 104.6 kB / 383.5 MB, free: 13.05 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.928e-05/0.01123, allocations: 64.73 kB / 383.5 MB, free: 12.97 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.743e-05/0.01126, allocations: 33.39 kB / 383.6 MB, free: 12.93 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.534e-06/0.01127, allocations: 4.062 kB / 383.6 MB, free: 12.93 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.855e-05/0.01131, allocations: 67.02 kB / 383.6 MB, free: 12.84 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 1.132e-06/0.01132, allocations: 0 / 383.6 MB, free: 12.84 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002219/0.01154, allocations: 114.8 kB / 383.7 MB, free: 12.71 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003534/0.01189, allocations: 88.98 kB / 383.8 MB, free: 12.6 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.546e-05/0.01195, allocations: 142.2 kB / 384 MB, free: 12.45 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.212e-05/0.01196, allocations: 25.7 kB / 384 MB, free: 12.42 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.988e-05/0.012, allocations: 135 kB / 384.1 MB, free: 12.28 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.078e-05/0.01202, allocations: 352 / 384.1 MB, free: 12.28 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.327e-05/0.01205, allocations: 19.38 kB / 384.1 MB, free: 12.25 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000144/0.0122, allocations: 492.1 kB / 384.6 MB, free: 11.76 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.922e-05/0.01223, allocations: 25.7 kB / 384.6 MB, free: 11.73 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.998e-05/0.01225, allocations: 33.7 kB / 384.7 MB, free: 11.69 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.622e-05/0.0123, allocations: 59.09 kB / 384.7 MB, free: 11.62 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.0123, allocations: 4 kB / 384.7 MB, free: 11.61 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.787e-05/0.0124, allocations: 96.98 kB / 384.8 MB, free: 11.5 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.733e-05/0.01244, allocations: 33.8 kB / 384.9 MB, free: 11.46 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.01245, allocations: 0 / 384.9 MB, free: 11.46 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.614e-05/0.01246, allocations: 0 / 384.9 MB, free: 11.46 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.31e-06/0.01247, allocations: 0 / 384.9 MB, free: 11.46 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.123e-06/0.01247, allocations: 3.938 kB / 384.9 MB, free: 11.46 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.014e-05/0.01249, allocations: 4 kB / 384.9 MB, free: 11.45 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.746e-06/0.0125, allocations: 0 / 384.9 MB, free: 11.45 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 9.315e-05/0.0126, allocations: 186.3 kB / 385.1 MB, free: 11.25 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.082e-05/0.01261, allocations: 4 kB / 385.1 MB, free: 11.25 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.137e-05/0.01262, allocations: 3 kB / 385.1 MB, free: 11.25 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.503e-06/0.01262, allocations: 0 / 385.1 MB, free: 11.25 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.01262, allocations: 4 kB / 385.1 MB, free: 11.25 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.11e-06/0.01263, allocations: 3.938 kB / 385.1 MB, free: 11.24 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.425e-05/0.0127, allocations: 112.6 kB / 385.2 MB, free: 11.1 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.01271, allocations: 0 / 385.2 MB, free: 11.1 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.895e-06/0.01271, allocations: 3.984 kB / 385.2 MB, free: 11.09 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.375e-06/0.01271, allocations: 0 / 385.2 MB, free: 11.09 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.274e-06/0.01272, allocations: 0 / 385.2 MB, free: 11.09 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.243e-06/0.01272, allocations: 0 / 385.2 MB, free: 11.09 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.01272, allocations: 0 / 385.2 MB, free: 11.09 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001287/0.01285, allocations: 139.7 kB / 385.3 MB, free: 10.92 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.991e-06/0.01286, allocations: 11.91 kB / 385.3 MB, free: 10.91 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.057e-05/0.01288, allocations: 0 / 385.3 MB, free: 10.91 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.107e-05/0.01289, allocations: 4 kB / 385.3 MB, free: 10.91 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.407e-05/0.0129, allocations: 0 / 385.3 MB, free: 10.91 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.108e-06/0.01291, allocations: 0 / 385.3 MB, free: 10.91 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.826e-05/0.01294, allocations: 123.1 kB / 385.5 MB, free: 10.79 MB / 362.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01294, allocations: 0 / 385.5 MB, free: 10.79 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.00049/0.01343, allocations: 159.4 kB / 385.6 MB, free: 10.63 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.0008706/0.0143, allocations: 382.4 kB / 386 MB, free: 10.26 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001385/0.01444, allocations: 122.5 kB / 386.1 MB, free: 10.11 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.524e-06/0.01444, allocations: 0 / 386.1 MB, free: 10.11 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.5e-05/0.01449, allocations: 92.73 kB / 386.2 MB, free: 9.996 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001466/0.01464, allocations: 4 kB / 386.2 MB, free: 9.992 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002503/0.01489, allocations: 114.5 kB / 386.3 MB, free: 9.844 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.033e-05/0.01493, allocations: 63.41 kB / 386.4 MB, free: 9.762 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 6.923e-06/0.01493, allocations: 0 / 386.4 MB, free: 9.762 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.066e-05/0.01495, allocations: 12.5 kB / 386.4 MB, free: 9.75 MB / 362.7 MB Notification: Performance of SimCode: time 1.252e-06/0.01496, allocations: 0 / 386.4 MB, free: 9.75 MB / 362.7 MB Notification: Performance of Templates: time 0.007646/0.0226, allocations: 4.291 MB / 390.7 MB, free: 5.461 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.2560487459413707]