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.001356/0.001356, allocations: 81.72 kB / 20.68 MB, free: 1.039 MB / 14.72 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.001441/0.001441, allocations: 163.5 kB / 23.95 MB, free: 4.168 MB / 14.72 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.401/1.401, allocations: 177.1 MB / 204.3 MB, free: 9.184 MB / 190.1 MB " [Timeout remaining time 178] 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.1952/0.1952, allocations: 32.8 MB / 293.5 MB, free: 40 kB / 270.1 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.633e-06/1.633e-06, allocations: 0 / 440.1 MB, free: 8.176 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.704e-05/2.867e-05, allocations: 6.219 kB / 440.1 MB, free: 8.168 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.00146/0.001489, allocations: 0.5118 MB / 440.6 MB, free: 7.66 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003561/0.00505, allocations: 2.249 MB / 442.8 MB, free: 5.387 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.406e-05/0.005064, allocations: 0 / 442.8 MB, free: 5.387 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 1.547e-05/0.005079, allocations: 0 / 442.8 MB, free: 5.387 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 5.16e-06/0.005085, allocations: 0 / 442.8 MB, free: 5.387 MB / 366.1 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.001604/0.006689, allocations: 0.5826 MB / 443.4 MB, free: 4.805 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 3.917e-05/0.006728, allocations: 7.938 kB / 443.4 MB, free: 4.797 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.756e-05/0.006765, allocations: 0 / 443.4 MB, free: 4.797 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.485e-05/0.00679, allocations: 3.984 kB / 443.4 MB, free: 4.793 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.848e-05/0.006809, allocations: 4 kB / 443.4 MB, free: 4.789 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.543e-06/0.006815, allocations: 0 / 443.4 MB, free: 4.789 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001142/0.007957, allocations: 0.6821 MB / 444.1 MB, free: 4.105 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.267e-06/0.007966, allocations: 4 kB / 444.1 MB, free: 4.102 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 1.592e-05/0.007982, allocations: 0 / 444.1 MB, free: 4.102 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007516/0.008734, allocations: 0.5221 MB / 444.6 MB, free: 3.578 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.008739, allocations: 4 kB / 444.7 MB, free: 3.574 MB / 366.1 MB Notification: Performance of FrontEnd: time 9.41e-07/0.00874, allocations: 0 / 444.7 MB, free: 3.574 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.035e-05/0.00875, allocations: 3.984 kB / 444.7 MB, free: 3.57 MB / 366.1 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.0004767/0.009227, allocations: 367 kB / 445 MB, free: 3.176 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.538e-05/0.009262, allocations: 8.031 kB / 445 MB, free: 3.168 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.312e-05/0.009295, allocations: 0.9375 kB / 445 MB, free: 3.168 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.676e-05/0.009382, allocations: 109.7 kB / 445.1 MB, free: 3.035 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.013e-05/0.009392, allocations: 4.375 kB / 445.1 MB, free: 3.031 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.374e-05/0.009406, allocations: 4.359 kB / 445.1 MB, free: 3.027 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001135/0.009519, allocations: 55.97 kB / 445.2 MB, free: 2.961 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.186e-06/0.009527, allocations: 192 / 445.2 MB, free: 2.961 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.024e-05/0.009538, allocations: 4.375 kB / 445.2 MB, free: 2.957 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.182e-06/0.009544, allocations: 3.938 kB / 445.2 MB, free: 2.953 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.061e-05/0.009575, allocations: 29.7 kB / 445.2 MB, free: 2.918 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001123/0.009687, allocations: 97.33 kB / 445.3 MB, free: 2.793 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.519e-05/0.009752, allocations: 52.2 kB / 445.4 MB, free: 2.727 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.109e-05/0.009783, allocations: 34.66 kB / 445.4 MB, free: 2.684 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.799e-06/0.009788, allocations: 0 / 445.4 MB, free: 2.684 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.71e-05/0.009835, allocations: 56.27 kB / 445.5 MB, free: 2.613 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 8.72e-07/0.009836, allocations: 0 / 445.5 MB, free: 2.613 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002017/0.01004, allocations: 122.8 kB / 445.6 MB, free: 2.469 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.663e-05/0.01009, allocations: 85.05 kB / 445.7 MB, free: 2.367 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.067e-05/0.01014, allocations: 89.98 kB / 445.8 MB, free: 2.27 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.573e-05/0.01016, allocations: 29.7 kB / 445.8 MB, free: 2.234 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.144e-05/0.01019, allocations: 84.08 kB / 445.9 MB, free: 2.148 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.024e-05/0.01021, allocations: 3.953 kB / 445.9 MB, free: 2.145 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.939e-05/0.01024, allocations: 13.72 kB / 445.9 MB, free: 2.125 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001299/0.01037, allocations: 314.8 kB / 446.2 MB, free: 1.809 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.411e-05/0.0104, allocations: 25.7 kB / 446.2 MB, free: 1.777 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.203e-05/0.01042, allocations: 37.69 kB / 446.3 MB, free: 1.734 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.341e-05/0.01047, allocations: 60.27 kB / 446.3 MB, free: 1.66 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.01047, allocations: 0 / 446.3 MB, free: 1.66 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.32e-05/0.01056, allocations: 89.17 kB / 446.4 MB, free: 1.555 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.145e-05/0.0106, allocations: 40.5 kB / 446.4 MB, free: 1.512 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.556e-06/0.0106, allocations: 0 / 446.4 MB, free: 1.512 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.304e-05/0.01061, allocations: 3.938 kB / 446.4 MB, free: 1.508 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.21e-07/0.01061, allocations: 0 / 446.4 MB, free: 1.508 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.202e-06/0.01062, allocations: 11.88 kB / 446.5 MB, free: 1.496 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.376e-05/0.01063, allocations: 0 / 446.5 MB, free: 1.496 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.102e-06/0.01064, allocations: 0 / 446.5 MB, free: 1.496 MB / 366.1 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.19e-05/0.01073, allocations: 135.5 kB / 446.6 MB, free: 1.348 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.035e-06/0.01074, allocations: 0 / 446.6 MB, free: 1.348 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.938e-06/0.01075, allocations: 7.031 kB / 446.6 MB, free: 1.34 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.32e-07/0.01075, allocations: 0 / 446.6 MB, free: 1.34 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.613e-06/0.01076, allocations: 3.984 kB / 446.6 MB, free: 1.336 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.01076, allocations: 3.938 kB / 446.6 MB, free: 1.332 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.632e-05/0.01084, allocations: 97.33 kB / 446.7 MB, free: 1.207 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.72e-07/0.01084, allocations: 0 / 446.7 MB, free: 1.207 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.5e-07/0.01084, allocations: 0 / 446.7 MB, free: 1.207 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.072e-06/0.01084, allocations: 0 / 446.7 MB, free: 1.207 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.101e-06/0.01085, allocations: 0 / 446.7 MB, free: 1.207 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.91e-07/0.01085, allocations: 0 / 446.7 MB, free: 1.207 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/0.01085, allocations: 4 kB / 446.7 MB, free: 1.203 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001185/0.01097, allocations: 124.5 kB / 446.8 MB, free: 1.051 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.877e-06/0.01097, allocations: 0 / 446.8 MB, free: 1.051 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.005e-05/0.01098, allocations: 0 / 446.8 MB, free: 1.051 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.023e-05/0.01099, allocations: 7.938 kB / 446.8 MB, free: 1.043 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.953e-05/0.01101, allocations: 7.984 kB / 446.8 MB, free: 1.035 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.639e-06/0.01102, allocations: 3.984 kB / 446.8 MB, free: 1.031 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.596e-05/0.01105, allocations: 79.22 kB / 446.9 MB, free: 0.9531 MB / 366.1 MB Notification: Performance of sort global known variables: time 6e-08/0.01105, allocations: 0 / 446.9 MB, free: 0.9531 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004327/0.01149, allocations: 163.4 kB / 447.1 MB, free: 0.793 MB / 366.1 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.0008037/0.01229, allocations: 372.4 kB / 447.4 MB, free: 432 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001229/0.01241, allocations: 110.8 kB / 447.6 MB, free: 296 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.352e-06/0.01241, allocations: 0 / 447.6 MB, free: 296 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 5.07e-05/0.01246, allocations: 81.11 kB / 447.6 MB, free: 196 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000129/0.01259, allocations: 4 kB / 447.6 MB, free: 192 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002073/0.0128, allocations: 114.7 kB / 447.7 MB, free: 44 kB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1739/0.1867, allocations: 55.3 kB / 447.8 MB, free: 21.46 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.561e-05/0.1868, allocations: 3.438 kB / 447.8 MB, free: 21.46 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.592e-05/0.1868, allocations: 9.875 kB / 447.8 MB, free: 21.45 MB / 366.1 MB Notification: Performance of SimCode: time 1.102e-06/0.1868, allocations: 0 / 447.8 MB, free: 21.45 MB / 366.1 MB Notification: Performance of Templates: time 0.008414/0.1952, allocations: 3.645 MB / 451.5 MB, free: 21.22 MB / 366.1 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.660770859569311]