Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestTruncatedDistributions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00186/0.00186, allocations: 114.5 kB / 21.18 MB, free: 0.7422 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001882/0.001882, allocations: 211.4 kB / 24.48 MB, free: 4.191 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.435/1.435, allocations: 230.2 MB / 257.8 MB, free: 8.508 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2461/0.2461, allocations: 46.89 MB / 361.1 MB, free: 4.625 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Math.Random.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestTruncatedDistributions") translateModel(ModelicaTest.Math.Random.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestTruncatedDistributions") [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002296/0.002296, allocations: 79.88 kB / 0.4968 GB, free: 7.816 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2948/0.2971, allocations: 65.99 MB / 0.5612 GB, free: 5.004 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001538/0.2986, allocations: 0.4918 MB / 0.5617 GB, free: 4.516 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003474/0.3021, allocations: 2.404 MB / 0.564 GB, free: 2.09 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.655e-05/0.3021, allocations: 3.938 kB / 0.564 GB, free: 2.086 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.958e-05/0.3021, allocations: 0 / 0.564 GB, free: 2.086 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.154e-06/0.3021, allocations: 0 / 0.564 GB, free: 2.086 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.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.00182/0.304, allocations: 0.5758 MB / 0.5646 GB, free: 1.512 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.484e-05/0.304, allocations: 11.94 kB / 0.5646 GB, free: 1.5 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.628e-05/0.304, allocations: 0 / 0.5646 GB, free: 1.5 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.259e-05/0.3041, allocations: 0 / 0.5646 GB, free: 1.5 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.672e-05/0.3041, allocations: 4 kB / 0.5646 GB, free: 1.496 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.759e-06/0.3041, allocations: 0 / 0.5646 GB, free: 1.496 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001366/0.3054, allocations: 0.737 MB / 0.5653 GB, free: 0.7578 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.285e-06/0.3055, allocations: 0 / 0.5653 GB, free: 0.7578 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.016e-05/0.3055, allocations: 7.984 kB / 0.5653 GB, free: 0.75 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006731/0.3061, allocations: 457.5 kB / 0.5658 GB, free: 312 kB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.3061, allocations: 4 kB / 0.5658 GB, free: 308 kB / 398.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.3062, allocations: 0 / 0.5658 GB, free: 308 kB / 398.1 MB Notification: Performance of Transformations before backend: time 1.007e-05/0.3062, allocations: 0 / 0.5658 GB, free: 308 kB / 398.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.0005338/0.3067, allocations: 440.2 kB / 0.5662 GB, free: 15.82 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.115e-05/0.3067, allocations: 8.031 kB / 0.5662 GB, free: 15.81 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.887e-05/0.3068, allocations: 8.875 kB / 0.5662 GB, free: 15.8 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001224/0.3069, allocations: 164.4 kB / 0.5664 GB, free: 15.6 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.148e-05/0.3069, allocations: 384 / 0.5664 GB, free: 15.6 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.116e-05/0.3069, allocations: 384 / 0.5664 GB, free: 15.6 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.105e-05/0.307, allocations: 34.02 kB / 0.5664 GB, free: 15.56 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.724e-06/0.307, allocations: 0 / 0.5664 GB, free: 15.56 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.183e-06/0.307, allocations: 0 / 0.5664 GB, free: 15.56 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.168e-06/0.307, allocations: 0 / 0.5664 GB, free: 15.56 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.505e-05/0.307, allocations: 7.938 kB / 0.5664 GB, free: 15.55 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001554/0.3072, allocations: 153.7 kB / 0.5666 GB, free: 15.36 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.578e-05/0.3072, allocations: 14.67 kB / 0.5666 GB, free: 15.33 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.349e-05/0.3072, allocations: 8.859 kB / 0.5666 GB, free: 15.32 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.865e-06/0.3072, allocations: 0 / 0.5666 GB, free: 15.32 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.926e-05/0.3073, allocations: 60.2 kB / 0.5666 GB, free: 15.25 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 9.62e-07/0.3073, allocations: 0 / 0.5666 GB, free: 15.25 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001752/0.3075, allocations: 75.44 kB / 0.5667 GB, free: 15.16 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.91e-05/0.3075, allocations: 81.11 kB / 0.5668 GB, free: 15.06 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.794e-05/0.3076, allocations: 93.81 kB / 0.5669 GB, free: 14.96 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.521e-05/0.3076, allocations: 29.7 kB / 0.5669 GB, free: 14.93 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.321e-05/0.3076, allocations: 80.14 kB / 0.567 GB, free: 14.84 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.663e-05/0.3077, allocations: 4 kB / 0.567 GB, free: 14.84 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.673e-05/0.3077, allocations: 9.719 kB / 0.567 GB, free: 14.82 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001468/0.3078, allocations: 318.8 kB / 0.5673 GB, free: 14.5 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.176e-05/0.3078, allocations: 4 kB / 0.5673 GB, free: 14.5 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.739e-06/0.3078, allocations: 0 / 0.5673 GB, free: 14.5 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.844e-05/0.3079, allocations: 68.25 kB / 0.5674 GB, free: 14.42 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.3079, allocations: 0 / 0.5674 GB, free: 14.42 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.288e-05/0.308, allocations: 63.34 kB / 0.5674 GB, free: 14.34 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.094e-05/0.308, allocations: 29.7 kB / 0.5675 GB, free: 14.31 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.763e-06/0.308, allocations: 3.938 kB / 0.5675 GB, free: 14.3 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.351e-05/0.308, allocations: 0 / 0.5675 GB, free: 14.3 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.22e-07/0.308, allocations: 4 kB / 0.5675 GB, free: 14.3 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.778e-06/0.308, allocations: 8.078 kB / 0.5675 GB, free: 14.29 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.349e-05/0.3081, allocations: 0 / 0.5675 GB, free: 14.29 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.58e-06/0.3081, allocations: 0 / 0.5675 GB, free: 14.29 MB / 414.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.75e-05/0.3082, allocations: 139.5 kB / 0.5676 GB, free: 14.14 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.614e-06/0.3082, allocations: 3.938 kB / 0.5676 GB, free: 14.14 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.201e-05/0.3082, allocations: 7.062 kB / 0.5676 GB, free: 14.13 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.643e-06/0.3082, allocations: 0 / 0.5676 GB, free: 14.13 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.71e-07/0.3082, allocations: 0 / 0.5676 GB, free: 14.13 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.666e-05/0.3082, allocations: 77.11 kB / 0.5677 GB, free: 14.04 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.489e-05/0.3082, allocations: 11.98 kB / 0.5677 GB, free: 14.02 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.195e-06/0.3082, allocations: 0 / 0.5677 GB, free: 14.02 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.329e-05/0.3083, allocations: 0 / 0.5677 GB, free: 14.02 MB / 414.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001436/0.3084, allocations: 194 kB / 0.5679 GB, free: 13.81 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0001662/0.3086, allocations: 240.5 kB / 0.5681 GB, free: 13.55 MB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 1.843e-05/0.3086, allocations: 4 kB / 0.5681 GB, free: 13.55 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.278e-05/0.3086, allocations: 79.34 kB / 0.5682 GB, free: 13.47 MB / 414.1 MB Notification: Performance of Backend: time 4.11e-07/0.3086, allocations: 0 / 0.5682 GB, free: 13.47 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00104/0.3097, allocations: 393.7 kB / 0.5686 GB, free: 13.07 MB / 414.1 MB Notification: Performance of SimCode: time 0.000446/0.3101, allocations: 0.5912 MB / 0.5691 GB, free: 12.42 MB / 414.1 MB Notification: Performance of Templates: time 0.007765/0.3179, allocations: 3.616 MB / 0.5727 GB, free: 8.805 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestTruncatedDistributions.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestTruncatedDistributions.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestTruncatedDistributions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestTruncatedDistributions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/Random/TestTruncatedDistributions/TestTruncatedDistributions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_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.950924356933683]