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.0008455/0.0008455, allocations: 87.62 kB / 21.43 MB, free: 3.133 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.004293/0.004293, allocations: 165.3 kB / 24.7 MB, free: 9.426 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 0.8966/0.8966, allocations: 177.2 MB / 205 MB, free: 5.723 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.2528/0.2528, allocations: 32.79 MB / 294.2 MB, free: 1.207 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.493e-06/1.493e-06, allocations: 0 / 440.8 MB, free: 3.75 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.548e-05/2.697e-05, allocations: 8.047 kB / 440.8 MB, free: 3.742 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001292/0.001319, allocations: 0.5009 MB / 441.3 MB, free: 3.242 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.003049/0.004369, allocations: 2.245 MB / 443.6 MB, free: 0.9727 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.605e-05/0.004385, allocations: 4 kB / 443.6 MB, free: 0.9688 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.594e-05/0.004401, allocations: 0 / 443.6 MB, free: 0.9688 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 6.422e-06/0.004407, allocations: 0 / 443.6 MB, free: 0.9688 MB / 410.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.001521/0.005928, allocations: 0.582 MB / 444.2 MB, free: 396 kB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 5.861e-05/0.005987, allocations: 11.92 kB / 444.2 MB, free: 384 kB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.913e-05/0.006026, allocations: 0 / 444.2 MB, free: 384 kB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.978e-05/0.006056, allocations: 3.984 kB / 444.2 MB, free: 380 kB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.172e-05/0.006078, allocations: 4 kB / 444.2 MB, free: 376 kB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 7.234e-06/0.006085, allocations: 4 kB / 444.2 MB, free: 372 kB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.17/0.1761, allocations: 0.6749 MB / 444.9 MB, free: 43.99 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 1.056e-05/0.1761, allocations: 0 / 444.9 MB, free: 43.99 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 2.333e-05/0.1762, allocations: 0 / 444.9 MB, free: 43.99 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005942/0.1768, allocations: 0.5192 MB / 445.4 MB, free: 43.99 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.354e-06/0.1768, allocations: 0 / 445.4 MB, free: 43.99 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.1768, allocations: 5.109 kB / 445.4 MB, free: 43.99 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.508e-06/0.1768, allocations: 0 / 445.4 MB, free: 43.99 MB / 410.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.00025/0.177, allocations: 368 kB / 445.8 MB, free: 43.65 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.941e-05/0.177, allocations: 8.469 kB / 445.8 MB, free: 43.65 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.044e-05/0.1771, allocations: 1.656 kB / 445.8 MB, free: 43.65 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.253e-05/0.1771, allocations: 109.4 kB / 445.9 MB, free: 43.53 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.443e-05/0.1771, allocations: 0.9375 kB / 445.9 MB, free: 43.53 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.927e-06/0.1771, allocations: 384 / 445.9 MB, free: 43.53 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.083e-05/0.1772, allocations: 64.41 kB / 445.9 MB, free: 43.46 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.115e-05/0.1772, allocations: 7.969 kB / 445.9 MB, free: 43.46 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.076e-05/0.1772, allocations: 0.5625 kB / 445.9 MB, free: 43.46 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.005e-06/0.1772, allocations: 3.938 kB / 445.9 MB, free: 43.46 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.015e-05/0.1773, allocations: 28.55 kB / 446 MB, free: 43.43 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.046e-05/0.1773, allocations: 93.33 kB / 446.1 MB, free: 43.31 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.902e-05/0.1774, allocations: 50.03 kB / 446.1 MB, free: 43.25 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.439e-05/0.1774, allocations: 36.69 kB / 446.2 MB, free: 43.21 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.283e-06/0.1774, allocations: 0 / 446.2 MB, free: 43.21 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.284e-05/0.1774, allocations: 60.95 kB / 446.2 MB, free: 43.14 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 5.61e-07/0.1774, allocations: 0 / 446.2 MB, free: 43.14 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001388/0.1776, allocations: 121.8 kB / 446.3 MB, free: 43.02 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.818e-05/0.1776, allocations: 77.11 kB / 446.4 MB, free: 42.93 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.803e-05/0.1776, allocations: 94.61 kB / 446.5 MB, free: 42.82 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.18e-06/0.1776, allocations: 25.7 kB / 446.5 MB, free: 42.79 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.783e-06/0.1776, allocations: 80.92 kB / 446.6 MB, free: 42.71 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.741e-05/0.1776, allocations: 6.016 kB / 446.6 MB, free: 42.71 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.243e-05/0.1777, allocations: 14.22 kB / 446.6 MB, free: 42.7 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.311e-05/0.1777, allocations: 317.4 kB / 446.9 MB, free: 42.38 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.156e-05/0.1777, allocations: 28 kB / 447 MB, free: 42.35 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.163e-06/0.1777, allocations: 28.61 kB / 447 MB, free: 42.32 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.021e-05/0.1777, allocations: 64.73 kB / 447.1 MB, free: 42.25 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.21e-07/0.1777, allocations: 0 / 447.1 MB, free: 42.25 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 3.465e-05/0.1778, allocations: 91.41 kB / 447.1 MB, free: 42.16 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.959e-05/0.1778, allocations: 31.2 kB / 447.2 MB, free: 42.12 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.906e-06/0.1778, allocations: 0 / 447.2 MB, free: 42.12 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.783e-06/0.1778, allocations: 3 kB / 447.2 MB, free: 42.12 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.62e-07/0.1778, allocations: 1 kB / 447.2 MB, free: 42.12 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.757e-06/0.1778, allocations: 2.938 kB / 447.2 MB, free: 42.12 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.288e-06/0.1778, allocations: 7.5 kB / 447.2 MB, free: 42.12 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.848e-06/0.1778, allocations: 0 / 447.2 MB, free: 42.12 MB / 410.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 3.537e-05/0.1779, allocations: 139.1 kB / 447.3 MB, free: 41.98 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.599e-06/0.1779, allocations: 6.75 kB / 447.3 MB, free: 41.98 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.913e-06/0.1779, allocations: 3 kB / 447.3 MB, free: 41.97 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.163e-06/0.1779, allocations: 0 / 447.3 MB, free: 41.97 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.254e-06/0.1779, allocations: 0 / 447.3 MB, free: 41.97 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.1779, allocations: 3.938 kB / 447.3 MB, free: 41.97 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 2.789e-05/0.1779, allocations: 99.55 kB / 447.4 MB, free: 41.85 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.6e-07/0.1779, allocations: 8.781 kB / 447.4 MB, free: 41.85 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.5e-07/0.1779, allocations: 0 / 447.4 MB, free: 41.85 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.91e-07/0.1779, allocations: 1.641 kB / 447.4 MB, free: 41.85 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.087e-06/0.1779, allocations: 3.031 kB / 447.4 MB, free: 41.85 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.11e-07/0.1779, allocations: 0 / 447.4 MB, free: 41.85 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.1779, allocations: 0 / 447.4 MB, free: 41.85 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.964e-05/0.178, allocations: 120.8 kB / 447.6 MB, free: 41.72 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.817e-06/0.178, allocations: 0.8438 kB / 447.6 MB, free: 41.72 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.204e-06/0.178, allocations: 0 / 447.6 MB, free: 41.72 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.26e-06/0.178, allocations: 2.969 kB / 447.6 MB, free: 41.72 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.127e-05/0.178, allocations: 4.484 kB / 447.6 MB, free: 41.72 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.242e-06/0.178, allocations: 1.188 kB / 447.6 MB, free: 41.72 MB / 410.7 MB Notification: Performance of sorting global known variables: time 8.286e-06/0.178, allocations: 75.28 kB / 447.6 MB, free: 41.64 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.178, allocations: 0 / 447.6 MB, free: 41.64 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002357/0.1782, allocations: 173.3 kB / 447.8 MB, free: 41.6 MB / 410.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.0005057/0.1788, allocations: 380.6 kB / 448.2 MB, free: 41.48 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 6.285e-05/0.1788, allocations: 112.2 kB / 448.3 MB, free: 41.35 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.193e-06/0.1788, allocations: 2.625 kB / 448.3 MB, free: 41.35 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.468e-05/0.1788, allocations: 83.39 kB / 448.4 MB, free: 41.26 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.261e-05/0.1789, allocations: 5.531 kB / 448.4 MB, free: 41.25 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001161/0.179, allocations: 128.7 kB / 448.5 MB, free: 41.1 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.319e-05/0.1791, allocations: 59.69 kB / 448.6 MB, free: 41.03 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.755e-06/0.1791, allocations: 10.62 kB / 448.6 MB, free: 41.03 MB / 410.7 MB Notification: Performance of SimCode: time 3.71e-07/0.1791, allocations: 0 / 448.6 MB, free: 41.03 MB / 410.7 MB Notification: Performance of Templates: time 0.002972/0.182, allocations: 3.425 MB / 452 MB, free: 40.72 MB / 410.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=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: 5.298591263592243]