Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.001024/0.001024, allocations: 80.8 kB / 21.49 MB, free: 2.996 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.001223/0.001223, allocations: 172.7 kB / 24.91 MB, free: 9.148 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.032/1.032, allocations: 177.1 MB / 205.3 MB, free: 5.465 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2414/0.2414, allocations: 32.8 MB / 294.6 MB, free: 1.254 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions") translateModel(ModelicaTest.Math.Random.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.884e-06/1.884e-06, allocations: 0 / 323.3 MB, free: 9.688 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.214e-05/3.403e-05, allocations: 3.891 kB / 323.3 MB, free: 9.684 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.002147/0.002181, allocations: 0.558 MB / 323.8 MB, free: 9.125 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003987/0.006168, allocations: 2.316 MB / 326.1 MB, free: 6.785 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.125e-05/0.00619, allocations: 0 / 326.1 MB, free: 6.785 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.873e-05/0.006208, allocations: 0 / 326.1 MB, free: 6.785 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 7.945e-06/0.006216, allocations: 4 kB / 326.1 MB, free: 6.781 MB / 298.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.001765/0.007981, allocations: 0.5292 MB / 326.7 MB, free: 6.25 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 6.478e-05/0.008046, allocations: 8.547 kB / 326.7 MB, free: 6.242 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.297e-05/0.008089, allocations: 4 kB / 326.7 MB, free: 6.238 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.292e-05/0.008122, allocations: 0 / 326.7 MB, free: 6.238 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.897e-05/0.00814, allocations: 0 / 326.7 MB, free: 6.238 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.085e-06/0.008149, allocations: 0 / 326.7 MB, free: 6.238 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001459/0.009608, allocations: 0.7367 MB / 327.4 MB, free: 5.5 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.858e-06/0.009617, allocations: 0 / 327.4 MB, free: 5.5 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.751e-05/0.009635, allocations: 4 kB / 327.4 MB, free: 5.496 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000711/0.01035, allocations: 0.522 MB / 327.9 MB, free: 4.973 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.477e-06/0.01035, allocations: 0 / 327.9 MB, free: 4.973 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.01035, allocations: 4 kB / 327.9 MB, free: 4.969 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.979e-06/0.01036, allocations: 0 / 327.9 MB, free: 4.969 MB / 298.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.01081, allocations: 345.9 kB / 328.3 MB, free: 4.602 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.467e-05/0.01086, allocations: 8.031 kB / 328.3 MB, free: 4.594 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.254e-05/0.01089, allocations: 0.9375 kB / 328.3 MB, free: 4.594 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.485e-05/0.01097, allocations: 109.8 kB / 328.4 MB, free: 4.461 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.063e-05/0.01098, allocations: 384 / 328.4 MB, free: 4.461 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.402e-06/0.01098, allocations: 384 / 328.4 MB, free: 4.461 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.277e-05/0.01107, allocations: 55.97 kB / 328.5 MB, free: 4.395 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.885e-06/0.01107, allocations: 192 / 328.5 MB, free: 4.395 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.904e-06/0.01108, allocations: 4.375 kB / 328.5 MB, free: 4.391 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.514e-06/0.01109, allocations: 3.938 kB / 328.5 MB, free: 4.387 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.589e-05/0.01112, allocations: 33.64 kB / 328.5 MB, free: 4.348 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.481e-05/0.0112, allocations: 65.03 kB / 328.6 MB, free: 4.27 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.244e-05/0.01126, allocations: 48.3 kB / 328.6 MB, free: 4.207 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.122e-05/0.01128, allocations: 30.56 kB / 328.6 MB, free: 4.168 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.17e-06/0.01129, allocations: 0 / 328.6 MB, free: 4.168 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.089e-05/0.01134, allocations: 60.33 kB / 328.7 MB, free: 4.094 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 1.022e-06/0.01134, allocations: 0 / 328.7 MB, free: 4.094 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001527/0.01149, allocations: 114.9 kB / 328.8 MB, free: 3.957 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.641e-05/0.01154, allocations: 85.11 kB / 328.9 MB, free: 3.855 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.974e-05/0.01158, allocations: 89.86 kB / 329 MB, free: 3.758 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.241e-05/0.01159, allocations: 25.7 kB / 329 MB, free: 3.727 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.558e-05/0.01162, allocations: 80.14 kB / 329.1 MB, free: 3.645 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.311e-05/0.01164, allocations: 1.203 kB / 329.1 MB, free: 3.645 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.735e-05/0.01168, allocations: 17.72 kB / 329.1 MB, free: 3.621 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001097/0.01179, allocations: 314.8 kB / 329.4 MB, free: 3.305 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.882e-05/0.01181, allocations: 25.7 kB / 329.4 MB, free: 3.273 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.75e-05/0.01182, allocations: 37.62 kB / 329.5 MB, free: 3.23 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.206e-05/0.01188, allocations: 64.33 kB / 329.5 MB, free: 3.152 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.704e-06/0.01188, allocations: 0 / 329.5 MB, free: 3.152 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.791e-05/0.01195, allocations: 85.05 kB / 329.6 MB, free: 3.051 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.88e-05/0.01199, allocations: 33.69 kB / 329.6 MB, free: 3.012 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.694e-06/0.01199, allocations: 4 kB / 329.7 MB, free: 3.008 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.141e-05/0.012, allocations: 0 / 329.7 MB, free: 3.008 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.204e-06/0.01201, allocations: 0 / 329.7 MB, free: 3.008 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.797e-06/0.01201, allocations: 0 / 329.7 MB, free: 3.008 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.45e-05/0.01202, allocations: 0 / 329.7 MB, free: 3.008 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.105e-06/0.01203, allocations: 3.938 kB / 329.7 MB, free: 3.004 MB / 298.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 0.0001283/0.01216, allocations: 139.6 kB / 329.8 MB, free: 2.852 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.378e-06/0.01217, allocations: 0 / 329.8 MB, free: 2.852 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.22e-05/0.01218, allocations: 3 kB / 329.8 MB, free: 2.852 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.816e-06/0.01219, allocations: 7.984 kB / 329.8 MB, free: 2.844 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.244e-06/0.01219, allocations: 0 / 329.8 MB, free: 2.844 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.307e-06/0.0122, allocations: 0 / 329.8 MB, free: 2.844 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.412e-05/0.01227, allocations: 65.83 kB / 329.9 MB, free: 2.762 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.01227, allocations: 0 / 329.9 MB, free: 2.762 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.062e-06/0.01227, allocations: 0 / 329.9 MB, free: 2.762 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.777e-06/0.01228, allocations: 4 kB / 329.9 MB, free: 2.758 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.393e-06/0.01229, allocations: 4 kB / 329.9 MB, free: 2.754 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.01229, allocations: 4 kB / 329.9 MB, free: 2.75 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.01229, allocations: 0 / 329.9 MB, free: 2.75 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001125/0.0124, allocations: 116.4 kB / 330 MB, free: 2.605 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.598e-06/0.01241, allocations: 4.344 kB / 330 MB, free: 2.602 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.544e-05/0.01243, allocations: 0 / 330 MB, free: 2.602 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.114e-05/0.01244, allocations: 0 / 330 MB, free: 2.602 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.251e-05/0.01245, allocations: 3.984 kB / 330 MB, free: 2.598 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.318e-06/0.01246, allocations: 11.98 kB / 330 MB, free: 2.586 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.857e-06/0.01247, allocations: 4.859 kB / 330 MB, free: 2.578 MB / 298.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01247, allocations: 0 / 330 MB, free: 2.578 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004858/0.01295, allocations: 163.4 kB / 330.2 MB, free: 2.418 MB / 298.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.0007758/0.01373, allocations: 363.9 kB / 330.5 MB, free: 2.07 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003601/0.01409, allocations: 123.6 kB / 330.7 MB, free: 1.922 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.75e-06/0.0141, allocations: 4 kB / 330.7 MB, free: 1.918 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.071e-05/0.01416, allocations: 94.03 kB / 330.7 MB, free: 1.805 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.81e-05/0.01424, allocations: 7.875 kB / 330.8 MB, free: 1.797 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002158/0.01446, allocations: 109.4 kB / 330.9 MB, free: 1.656 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.556e-05/0.0145, allocations: 55.36 kB / 330.9 MB, free: 1.582 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 7.514e-06/0.0145, allocations: 0 / 330.9 MB, free: 1.582 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.219e-05/0.01454, allocations: 51.38 kB / 331 MB, free: 1.531 MB / 298.7 MB Notification: Performance of SimCode: time 6.21e-07/0.01455, allocations: 0 / 331 MB, free: 1.531 MB / 298.7 MB Notification: Performance of Templates: time 0.008743/0.02329, allocations: 4.3 MB / 335.3 MB, free: 13.23 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.sim & ./ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.063333553727716]