Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestDistributions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.Math.Random.TestDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestDistributions") translateModel(ModelicaTest.Math.Random.TestDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestDistributions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001777/0.001777, allocations: 192.8 kB / 16.09 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.358/1.358, allocations: 226.5 MB / 243.4 MB, free: 6.473 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007787/0.0007788, allocations: 96.22 kB / 295.5 MB, free: 6.672 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3401/0.3401, allocations: 44.82 MB / 392.3 MB, free: 35.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002974/0.0002974, allocations: 8 kB / 465.3 MB, free: 12.67 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3199/0.3202, allocations: 62.96 MB / 0.5159 GB, free: 37.11 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.0005925/0.3208, allocations: 230.4 kB / 0.5161 GB, free: 36.95 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002112/0.3229, allocations: 1.988 MB / 0.518 GB, free: 35.55 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.364e-05/0.323, allocations: 2.969 kB / 0.518 GB, free: 35.55 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 9.428e-06/0.323, allocations: 0 / 0.518 GB, free: 35.55 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 6.843e-06/0.323, allocations: 0 / 0.518 GB, free: 35.55 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Math.mo:1013:5-1096:22:writable] Warning: Pure function ‘ModelicaTest.Math.Random.distributions‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.001077/0.3241, allocations: 418.2 kB / 0.5184 GB, free: 35.39 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.461e-05/0.3241, allocations: 7.984 kB / 0.5185 GB, free: 35.38 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.213e-05/0.3242, allocations: 3 kB / 0.5185 GB, free: 35.38 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.439e-05/0.3242, allocations: 0 / 0.5185 GB, free: 35.38 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.643e-05/0.3242, allocations: 0 / 0.5185 GB, free: 35.38 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 5.31e-06/0.3242, allocations: 0 / 0.5185 GB, free: 35.38 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008478/0.3251, allocations: 0.6383 MB / 0.5191 GB, free: 35.21 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 7.685e-06/0.3251, allocations: 0 / 0.5191 GB, free: 35.21 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.018e-05/0.3251, allocations: 32.73 kB / 0.5191 GB, free: 35.17 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000311/0.3255, allocations: 248.1 kB / 0.5193 GB, free: 35.11 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.06e-06/0.3255, allocations: 4 kB / 0.5193 GB, free: 35.11 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3255, allocations: 3.938 kB / 0.5194 GB, free: 35.11 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.778e-06/0.3255, allocations: 0 / 0.5194 GB, free: 35.11 MB / 378.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.0003276/0.3258, allocations: 410.8 kB / 0.5197 GB, free: 34.69 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.731e-05/0.3259, allocations: 8.531 kB / 0.5198 GB, free: 34.69 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.921e-05/0.3259, allocations: 0.9375 kB / 0.5198 GB, free: 34.69 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.451e-05/0.326, allocations: 164.3 kB / 0.5199 GB, free: 34.49 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.204e-05/0.326, allocations: 3.344 kB / 0.5199 GB, free: 34.49 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.276e-06/0.326, allocations: 4.359 kB / 0.5199 GB, free: 34.48 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.926e-05/0.3261, allocations: 48.38 kB / 0.52 GB, free: 34.44 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.701e-06/0.3261, allocations: 0 / 0.52 GB, free: 34.44 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.915e-06/0.3261, allocations: 0 / 0.52 GB, free: 34.44 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.927e-06/0.3261, allocations: 0 / 0.52 GB, free: 34.44 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.498e-05/0.3261, allocations: 0 / 0.52 GB, free: 34.44 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.404e-05/0.3262, allocations: 144.5 kB / 0.5201 GB, free: 34.25 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.372e-05/0.3263, allocations: 21.42 kB / 0.5201 GB, free: 34.22 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.207e-05/0.3263, allocations: 8.281 kB / 0.5201 GB, free: 34.21 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.983e-06/0.3263, allocations: 4 kB / 0.5201 GB, free: 34.21 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.297e-05/0.3263, allocations: 75.05 kB / 0.5202 GB, free: 34.12 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 9.61e-07/0.3263, allocations: 0 / 0.5202 GB, free: 34.12 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001444/0.3265, allocations: 61.16 kB / 0.5203 GB, free: 34.06 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.926e-05/0.3265, allocations: 79.89 kB / 0.5203 GB, free: 33.97 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.191e-05/0.3265, allocations: 89.86 kB / 0.5204 GB, free: 33.87 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.144e-06/0.3266, allocations: 25.7 kB / 0.5205 GB, free: 33.84 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.313e-05/0.3266, allocations: 84.27 kB / 0.5205 GB, free: 33.75 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.487e-05/0.3266, allocations: 0 / 0.5205 GB, free: 33.75 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.024e-06/0.3266, allocations: 3.938 kB / 0.5205 GB, free: 33.75 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.446e-05/0.3267, allocations: 317.7 kB / 0.5208 GB, free: 33.43 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.875e-06/0.3267, allocations: 0 / 0.5208 GB, free: 33.43 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.938e-06/0.3267, allocations: 0 / 0.5208 GB, free: 33.43 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.51e-05/0.3267, allocations: 59.14 kB / 0.5209 GB, free: 33.36 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.3267, allocations: 0 / 0.5209 GB, free: 33.36 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.005e-05/0.3268, allocations: 68.25 kB / 0.521 GB, free: 33.3 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.233e-05/0.3268, allocations: 35.36 kB / 0.521 GB, free: 33.26 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.188e-06/0.3268, allocations: 0 / 0.521 GB, free: 33.26 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.079e-05/0.3268, allocations: 0 / 0.521 GB, free: 33.26 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.61e-07/0.3268, allocations: 0 / 0.521 GB, free: 33.26 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.64e-06/0.3269, allocations: 0 / 0.521 GB, free: 33.26 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.538e-05/0.3269, allocations: 10.91 kB / 0.521 GB, free: 33.25 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.332e-06/0.3269, allocations: 0 / 0.521 GB, free: 33.25 MB / 378.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.396e-05/0.3269, allocations: 138 kB / 0.5211 GB, free: 33.11 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.793e-06/0.327, allocations: 7.969 kB / 0.5211 GB, free: 33.1 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.236e-06/0.327, allocations: 6.719 kB / 0.5211 GB, free: 33.1 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.91e-07/0.327, allocations: 0 / 0.5211 GB, free: 33.1 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.427e-06/0.327, allocations: 0 / 0.5211 GB, free: 33.1 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.095e-06/0.327, allocations: 2.938 kB / 0.5212 GB, free: 33.1 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.811e-05/0.3271, allocations: 145.2 kB / 0.5213 GB, free: 32.91 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.3271, allocations: 0 / 0.5213 GB, free: 32.91 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.41e-07/0.3271, allocations: 0 / 0.5213 GB, free: 32.91 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.3271, allocations: 3.938 kB / 0.5213 GB, free: 32.91 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.702e-06/0.3271, allocations: 2.969 kB / 0.5213 GB, free: 32.91 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.42e-07/0.3271, allocations: 3.938 kB / 0.5213 GB, free: 32.91 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.61e-07/0.3271, allocations: 4 kB / 0.5213 GB, free: 32.9 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.738e-05/0.3272, allocations: 89.75 kB / 0.5214 GB, free: 32.8 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.538e-05/0.3272, allocations: 81.05 kB / 0.5215 GB, free: 32.71 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.157e-05/0.3272, allocations: 3.938 kB / 0.5215 GB, free: 32.7 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.736e-06/0.3272, allocations: 2.969 kB / 0.5215 GB, free: 32.7 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.636e-05/0.3272, allocations: 11.36 kB / 0.5215 GB, free: 32.7 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.374e-06/0.3272, allocations: 0 / 0.5215 GB, free: 32.7 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.481e-05/0.3273, allocations: 79.31 kB / 0.5216 GB, free: 32.62 MB / 378.7 MB Notification: Performance of sort global known variables: time 1e-07/0.3273, allocations: 0 / 0.5216 GB, free: 32.62 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003571/0.3276, allocations: 131.6 kB / 0.5217 GB, free: 32.59 MB / 378.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006945/0.3283, allocations: 299.7 kB / 0.522 GB, free: 32.44 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 7.224e-05/0.3284, allocations: 64.64 kB / 0.522 GB, free: 32.38 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.3284, allocations: 0 / 0.522 GB, free: 32.38 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 1.707e-05/0.3285, allocations: 54.12 kB / 0.5221 GB, free: 32.31 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001143/0.3286, allocations: 2.688 kB / 0.5221 GB, free: 32.31 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001587/0.3287, allocations: 113.1 kB / 0.5222 GB, free: 32.18 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.322e-05/0.3288, allocations: 0.6692 MB / 0.5228 GB, free: 31.48 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.256e-06/0.3289, allocations: 10.03 kB / 0.5229 GB, free: 31.47 MB / 378.7 MB Notification: Performance of SimCode: time 1.242e-06/0.3289, allocations: 0 / 0.5229 GB, free: 31.47 MB / 378.7 MB Notification: Performance of Templates: time 0.005193/0.3341, allocations: 3.334 MB / 0.5261 GB, free: 31.18 MB / 378.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestDistributions.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestDistributions.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestDistributions.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestDistributions.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestDistributions.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestDistributions --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestDistributions.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestDistributions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestDistributions/TestDistributions.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestDistributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches