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.001004/0.001004, allocations: 79.58 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.001112/0.001112, allocations: 161 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.008/1.008, allocations: 177.1 MB / 205 MB, free: 5.598 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.2607/0.2607, allocations: 34.26 MB / 295.7 MB, free: 0.7734 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.723e-06/1.723e-06, allocations: 0 / 378 MB, free: 2.684 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.825e-05/2.998e-05, allocations: 2.312 kB / 378 MB, free: 2.68 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.00165/0.00168, allocations: 0.5241 MB / 378.6 MB, free: 2.152 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.003262/0.004943, allocations: 2.308 MB / 380.9 MB, free: 15.82 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.734e-05/0.00496, allocations: 4 kB / 380.9 MB, free: 15.82 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 2.159e-05/0.004982, allocations: 0 / 380.9 MB, free: 15.82 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 6.532e-06/0.004988, allocations: 0 / 380.9 MB, free: 15.82 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.001735/0.006723, allocations: 0.5877 MB / 381.5 MB, free: 15.23 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 4.946e-05/0.006772, allocations: 0 / 381.5 MB, free: 15.23 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.518e-05/0.006808, allocations: 4 kB / 381.5 MB, free: 15.22 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.688e-05/0.006835, allocations: 0 / 381.5 MB, free: 15.22 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.062e-05/0.006855, allocations: 7.984 kB / 381.5 MB, free: 15.21 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 7.644e-06/0.006863, allocations: 0 / 381.5 MB, free: 15.21 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001183/0.008045, allocations: 0.6782 MB / 382.1 MB, free: 14.54 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 8.736e-06/0.008054, allocations: 0 / 382.1 MB, free: 14.54 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 2.112e-05/0.008075, allocations: 0 / 382.1 MB, free: 14.54 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008567/0.008932, allocations: 0.526 MB / 382.7 MB, free: 14.01 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.586e-06/0.008936, allocations: 4 kB / 382.7 MB, free: 14 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.112e-06/0.008937, allocations: 3.938 kB / 382.7 MB, free: 14 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.17e-06/0.008942, allocations: 0 / 382.7 MB, free: 14 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.0004981/0.00944, allocations: 465 kB / 383.1 MB, free: 13.5 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.033e-05/0.00949, allocations: 12.03 kB / 383.1 MB, free: 13.49 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.125e-05/0.009531, allocations: 0.9375 kB / 383.1 MB, free: 13.49 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.081e-05/0.009602, allocations: 116.5 kB / 383.3 MB, free: 13.35 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.35e-05/0.009616, allocations: 4.375 kB / 383.3 MB, free: 13.35 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.24e-05/0.009628, allocations: 384 / 383.3 MB, free: 13.35 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.914e-05/0.009727, allocations: 55.97 kB / 383.3 MB, free: 13.28 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.005e-05/0.009737, allocations: 4.188 kB / 383.3 MB, free: 13.28 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.608e-06/0.009747, allocations: 384 / 383.3 MB, free: 13.28 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.144e-05/0.009758, allocations: 3.938 kB / 383.3 MB, free: 13.27 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.959e-05/0.009778, allocations: 25.7 kB / 383.4 MB, free: 13.24 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001064/0.009884, allocations: 108.6 kB / 383.5 MB, free: 13.1 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.699e-05/0.009941, allocations: 60.62 kB / 383.5 MB, free: 13.02 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.661e-05/0.009968, allocations: 41.48 kB / 383.6 MB, free: 12.97 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.98e-06/0.009973, allocations: 0 / 383.6 MB, free: 12.97 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.35e-05/0.01002, allocations: 59.09 kB / 383.6 MB, free: 12.9 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 1.293e-06/0.01002, allocations: 4 kB / 383.6 MB, free: 12.89 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001918/0.01021, allocations: 122.8 kB / 383.7 MB, free: 12.75 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.276e-05/0.01025, allocations: 81.05 kB / 383.8 MB, free: 12.65 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.131e-05/0.0103, allocations: 150.2 kB / 384 MB, free: 12.49 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.293e-05/0.01032, allocations: 25.7 kB / 384 MB, free: 12.46 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.318e-05/0.01035, allocations: 126.9 kB / 384.1 MB, free: 12.33 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.992e-05/0.01037, allocations: 352 / 384.1 MB, free: 12.33 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.312e-05/0.0104, allocations: 19.38 kB / 384.1 MB, free: 12.3 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001309/0.01053, allocations: 492.1 kB / 384.6 MB, free: 11.81 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.719e-05/0.01056, allocations: 33.69 kB / 384.6 MB, free: 11.77 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.438e-05/0.01058, allocations: 29.83 kB / 384.7 MB, free: 11.74 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.097e-05/0.01063, allocations: 67.09 kB / 384.7 MB, free: 11.66 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.01063, allocations: 0 / 384.7 MB, free: 11.66 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.361e-05/0.01071, allocations: 93.05 kB / 384.8 MB, free: 11.55 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.041e-05/0.01074, allocations: 29.7 kB / 384.9 MB, free: 11.51 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.721e-06/0.01075, allocations: 0 / 384.9 MB, free: 11.51 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.626e-05/0.01076, allocations: 3.938 kB / 384.9 MB, free: 11.51 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.248e-06/0.01077, allocations: 4 kB / 384.9 MB, free: 11.5 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.462e-06/0.01078, allocations: 3.938 kB / 384.9 MB, free: 11.5 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.637e-05/0.01079, allocations: 4.094 kB / 384.9 MB, free: 11.5 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.783e-06/0.0108, allocations: 0 / 384.9 MB, free: 11.5 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 8.115e-05/0.01088, allocations: 182.3 kB / 385.1 MB, free: 11.3 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.051e-05/0.01089, allocations: 0 / 385.1 MB, free: 11.3 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.53e-05/0.01091, allocations: 10.98 kB / 385.1 MB, free: 11.29 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.868e-06/0.01091, allocations: 3.984 kB / 385.1 MB, free: 11.29 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.579e-06/0.01091, allocations: 4 kB / 385.1 MB, free: 11.29 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.347e-06/0.01092, allocations: 3.938 kB / 385.1 MB, free: 11.28 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.581e-05/0.01098, allocations: 108.6 kB / 385.2 MB, free: 11.14 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.01098, allocations: 0 / 385.2 MB, free: 11.14 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.112e-06/0.01099, allocations: 4 kB / 385.2 MB, free: 11.14 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.01099, allocations: 0 / 385.2 MB, free: 11.14 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.206e-06/0.011, allocations: 4 kB / 385.2 MB, free: 11.13 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.011, allocations: 3.938 kB / 385.2 MB, free: 11.13 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.011, allocations: 0 / 385.2 MB, free: 11.13 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000113/0.01111, allocations: 135.7 kB / 385.3 MB, free: 10.96 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.368e-06/0.01112, allocations: 0 / 385.3 MB, free: 10.96 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.721e-05/0.01113, allocations: 4 kB / 385.3 MB, free: 10.96 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.067e-06/0.01114, allocations: 0 / 385.3 MB, free: 10.96 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.232e-05/0.01115, allocations: 3.984 kB / 385.3 MB, free: 10.95 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.567e-06/0.01116, allocations: 32 / 385.3 MB, free: 10.95 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.504e-05/0.01119, allocations: 127.1 kB / 385.5 MB, free: 10.83 MB / 362.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01119, allocations: 4 kB / 385.5 MB, free: 10.82 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004668/0.01166, allocations: 159.3 kB / 385.6 MB, free: 10.67 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.0008598/0.01252, allocations: 373.2 kB / 386 MB, free: 10.3 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001196/0.01264, allocations: 122.5 kB / 386.1 MB, free: 10.15 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.01264, allocations: 0 / 386.1 MB, free: 10.15 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.866e-05/0.01268, allocations: 100.7 kB / 386.2 MB, free: 10.03 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001301/0.01281, allocations: 0 / 386.2 MB, free: 10.03 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002079/0.01302, allocations: 114.4 kB / 386.3 MB, free: 9.883 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.447e-05/0.01305, allocations: 55.36 kB / 386.4 MB, free: 9.809 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.48e-06/0.01306, allocations: 0 / 386.4 MB, free: 9.809 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.335e-05/0.01307, allocations: 8.5 kB / 386.4 MB, free: 9.801 MB / 362.7 MB Notification: Performance of SimCode: time 8.62e-07/0.01307, allocations: 0 / 386.4 MB, free: 9.801 MB / 362.7 MB Notification: Performance of Templates: time 0.007577/0.02065, allocations: 3.641 MB / 390 MB, free: 6.16 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.247051538899541]