Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_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.001468/0.001468, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.00161/0.00161, allocations: 213.6 kB / 23.73 MB, free: 4.164 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.534/1.534, allocations: 230.5 MB / 257.4 MB, free: 7.812 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2509/0.2509, allocations: 46.95 MB / 360.8 MB, free: 3.938 MB / 286.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions") translateModel(ModelicaTest.Math.Random.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.003383/0.003383, allocations: 79.81 kB / 0.4966 GB, free: 7.059 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3621/0.3655, allocations: 66.09 MB / 0.5612 GB, free: 3.965 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.002142/0.3676, allocations: 0.4955 MB / 0.5617 GB, free: 3.473 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003844/0.3714, allocations: 2.245 MB / 0.5638 GB, free: 1.207 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.487e-05/0.3715, allocations: 0 / 0.5638 GB, free: 1.207 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.527e-05/0.3715, allocations: 0 / 0.5638 GB, free: 1.207 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.103e-06/0.3715, allocations: 4 kB / 0.5638 GB, free: 1.203 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.001935/0.3734, allocations: 0.5758 MB / 0.5644 GB, free: 0.6289 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.425e-05/0.3735, allocations: 0 / 0.5644 GB, free: 0.6289 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.666e-05/0.3735, allocations: 0 / 0.5644 GB, free: 0.6289 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.15e-05/0.3735, allocations: 7.984 kB / 0.5644 GB, free: 0.6211 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.136e-05/0.3735, allocations: 3.984 kB / 0.5644 GB, free: 0.6172 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.452e-06/0.3736, allocations: 0 / 0.5644 GB, free: 0.6172 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001202/0.3748, allocations: 0.6784 MB / 0.5651 GB, free: 15.94 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.023e-05/0.3748, allocations: 0 / 0.5651 GB, free: 15.94 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.562e-05/0.3748, allocations: 3.938 kB / 0.5651 GB, free: 15.93 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006853/0.3755, allocations: 445.3 kB / 0.5655 GB, free: 15.5 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.3755, allocations: 7.938 kB / 0.5655 GB, free: 15.5 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.3755, allocations: 0 / 0.5655 GB, free: 15.5 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.52e-06/0.3755, allocations: 0 / 0.5655 GB, free: 15.5 MB / 414.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.0005681/0.3761, allocations: 367 kB / 0.5659 GB, free: 15.1 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.19e-05/0.3761, allocations: 12.03 kB / 0.5659 GB, free: 15.09 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.742e-05/0.3762, allocations: 0.9375 kB / 0.5659 GB, free: 15.09 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001142/0.3763, allocations: 102.5 kB / 0.566 GB, free: 14.96 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.662e-05/0.3763, allocations: 384 / 0.566 GB, free: 14.96 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.137e-05/0.3763, allocations: 4.375 kB / 0.566 GB, free: 14.96 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001255/0.3764, allocations: 55.72 kB / 0.566 GB, free: 14.89 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.417e-05/0.3764, allocations: 3.984 kB / 0.566 GB, free: 14.89 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.288e-05/0.3765, allocations: 11.98 kB / 0.5661 GB, free: 14.88 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.312e-06/0.3765, allocations: 0 / 0.5661 GB, free: 14.88 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.011e-05/0.3765, allocations: 29.64 kB / 0.5661 GB, free: 14.84 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000154/0.3767, allocations: 101.3 kB / 0.5662 GB, free: 14.71 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.526e-05/0.3767, allocations: 40.28 kB / 0.5662 GB, free: 14.66 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.495e-05/0.3768, allocations: 34.66 kB / 0.5663 GB, free: 14.62 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.668e-06/0.3768, allocations: 0 / 0.5663 GB, free: 14.62 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.336e-05/0.3769, allocations: 60.25 kB / 0.5663 GB, free: 14.54 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 8.72e-07/0.3769, allocations: 0 / 0.5663 GB, free: 14.54 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002427/0.3771, allocations: 122.8 kB / 0.5664 GB, free: 14.4 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.629e-05/0.3772, allocations: 85.11 kB / 0.5665 GB, free: 14.3 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.302e-05/0.3773, allocations: 93.81 kB / 0.5666 GB, free: 14.2 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.974e-05/0.3773, allocations: 29.64 kB / 0.5666 GB, free: 14.16 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.069e-05/0.3773, allocations: 88.12 kB / 0.5667 GB, free: 14.07 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.397e-05/0.3774, allocations: 0 / 0.5667 GB, free: 14.07 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.451e-05/0.3774, allocations: 13.72 kB / 0.5667 GB, free: 14.05 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001509/0.3775, allocations: 314.8 kB / 0.567 GB, free: 13.73 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.712e-05/0.3776, allocations: 25.7 kB / 0.567 GB, free: 13.7 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.103e-05/0.3776, allocations: 29.7 kB / 0.5671 GB, free: 13.67 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.263e-05/0.3777, allocations: 64.33 kB / 0.5671 GB, free: 13.59 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.195e-06/0.3777, allocations: 3.938 kB / 0.5671 GB, free: 13.59 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.933e-05/0.3778, allocations: 93.09 kB / 0.5672 GB, free: 13.48 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.82e-05/0.3778, allocations: 29.7 kB / 0.5673 GB, free: 13.44 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.15e-06/0.3778, allocations: 0 / 0.5673 GB, free: 13.44 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.238e-05/0.3778, allocations: 3.938 kB / 0.5673 GB, free: 13.44 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.81e-07/0.3778, allocations: 0 / 0.5673 GB, free: 13.44 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.731e-06/0.3778, allocations: 0 / 0.5673 GB, free: 13.44 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.941e-05/0.3779, allocations: 4 kB / 0.5673 GB, free: 13.43 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.524e-06/0.3779, allocations: 0 / 0.5673 GB, free: 13.43 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 0.0001047/0.378, allocations: 140.9 kB / 0.5674 GB, free: 13.28 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.905e-06/0.378, allocations: 4 kB / 0.5674 GB, free: 13.28 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.614e-05/0.378, allocations: 10.88 kB / 0.5674 GB, free: 13.27 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.422e-06/0.378, allocations: 0 / 0.5674 GB, free: 13.27 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.378, allocations: 0 / 0.5674 GB, free: 13.27 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.835e-06/0.378, allocations: 0 / 0.5674 GB, free: 13.27 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.191e-05/0.3781, allocations: 97.33 kB / 0.5675 GB, free: 13.14 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.3781, allocations: 4 kB / 0.5675 GB, free: 13.14 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.118e-06/0.3781, allocations: 3.984 kB / 0.5675 GB, free: 13.13 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.072e-06/0.3781, allocations: 0 / 0.5675 GB, free: 13.13 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.688e-06/0.3781, allocations: 4 kB / 0.5675 GB, free: 13.13 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.675e-06/0.3781, allocations: 7.938 kB / 0.5675 GB, free: 13.12 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/0.3781, allocations: 3.938 kB / 0.5675 GB, free: 13.12 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001274/0.3782, allocations: 120.5 kB / 0.5676 GB, free: 12.97 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.619e-06/0.3783, allocations: 4 kB / 0.5676 GB, free: 12.96 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.248e-05/0.3783, allocations: 0 / 0.5676 GB, free: 12.96 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.176e-05/0.3783, allocations: 3.938 kB / 0.5677 GB, free: 12.96 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.468e-05/0.3783, allocations: 0 / 0.5677 GB, free: 12.96 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.899e-06/0.3783, allocations: 4 kB / 0.5677 GB, free: 12.96 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.838e-05/0.3783, allocations: 79.22 kB / 0.5677 GB, free: 12.88 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3783, allocations: 0 / 0.5677 GB, free: 12.88 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004795/0.3788, allocations: 163.4 kB / 0.5679 GB, free: 12.72 MB / 414.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.0008379/0.3797, allocations: 346.3 kB / 0.5682 GB, free: 12.38 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001749/0.3798, allocations: 114.7 kB / 0.5683 GB, free: 12.24 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.3798, allocations: 0 / 0.5683 GB, free: 12.24 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 6.013e-05/0.3799, allocations: 85.17 kB / 0.5684 GB, free: 12.14 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001339/0.38, allocations: 4 kB / 0.5684 GB, free: 12.13 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002672/0.3803, allocations: 122.6 kB / 0.5685 GB, free: 11.98 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.639e-05/0.3803, allocations: 55.36 kB / 0.5686 GB, free: 11.91 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.25e-06/0.3804, allocations: 0 / 0.5686 GB, free: 11.91 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.428e-05/0.3804, allocations: 7.438 kB / 0.5686 GB, free: 11.9 MB / 414.1 MB Notification: Performance of SimCode: time 3.2e-07/0.3804, allocations: 0 / 0.5686 GB, free: 11.9 MB / 414.1 MB Notification: Performance of Templates: time 0.007808/0.3882, allocations: 3.601 MB / 0.5721 GB, free: 8.301 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.sim & ./ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_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.361214267089963]