Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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.TestDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions") translateModel(ModelicaTest.Math.Random.TestDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001098/0.001098, allocations: 109.1 kB / 18.45 MB, free: 4.625 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001106/0.001106, allocations: 208.9 kB / 19.4 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.339/1.339, allocations: 227.4 MB / 247.6 MB, free: 10.53 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2112/0.2112, allocations: 46.11 MB / 345 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001588/0.001588, allocations: 75.88 kB / 482 MB, free: 4.098 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3434/0.345, allocations: 62.43 MB / 0.5316 GB, free: 13.62 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.001658/0.3467, allocations: 0.5077 MB / 0.5321 GB, free: 13.24 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002826/0.3495, allocations: 2.092 MB / 0.5342 GB, free: 11.59 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.562e-05/0.3495, allocations: 1.156 kB / 0.5342 GB, free: 11.59 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.003e-05/0.3496, allocations: 0 / 0.5342 GB, free: 11.59 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.803e-06/0.3496, allocations: 0 / 0.5342 GB, free: 11.59 MB / 398.1 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.001448/0.3511, allocations: 0.5048 MB / 0.5347 GB, free: 11.3 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.767e-05/0.3511, allocations: 6.25 kB / 0.5347 GB, free: 11.29 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.052e-05/0.3512, allocations: 1.125 kB / 0.5347 GB, free: 11.29 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.596e-05/0.3512, allocations: 1.094 kB / 0.5347 GB, free: 11.29 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.743e-05/0.3512, allocations: 4 kB / 0.5347 GB, free: 11.29 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 9.769e-06/0.3512, allocations: 1.281 kB / 0.5347 GB, free: 11.29 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001048/0.3523, allocations: 0.6204 MB / 0.5353 GB, free: 10.94 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.819e-06/0.3523, allocations: 7.938 kB / 0.5353 GB, free: 10.93 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.786e-05/0.3523, allocations: 1.375 kB / 0.5353 GB, free: 10.93 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005771/0.3529, allocations: 384.3 kB / 0.5357 GB, free: 10.7 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.02e-06/0.3529, allocations: 1.062 kB / 0.5357 GB, free: 10.7 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.3529, allocations: 0 / 0.5357 GB, free: 10.7 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.139e-06/0.3529, allocations: 0 / 0.5357 GB, free: 10.7 MB / 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.0004183/0.3534, allocations: 418.7 kB / 0.5361 GB, free: 10.27 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.545e-05/0.3534, allocations: 9.625 kB / 0.5361 GB, free: 10.27 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.325e-05/0.3534, allocations: 4.922 kB / 0.5361 GB, free: 10.26 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.599e-05/0.3535, allocations: 165.5 kB / 0.5362 GB, free: 10.06 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.126e-06/0.3535, allocations: 384 / 0.5362 GB, free: 10.06 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.108e-05/0.3536, allocations: 1.562 kB / 0.5362 GB, free: 10.06 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.934e-05/0.3536, allocations: 36.3 kB / 0.5363 GB, free: 10.02 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.863e-06/0.3537, allocations: 0 / 0.5363 GB, free: 10.02 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.675e-06/0.3537, allocations: 1.031 kB / 0.5363 GB, free: 10.02 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.288e-06/0.3537, allocations: 0 / 0.5363 GB, free: 10.02 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.673e-05/0.3537, allocations: 8.969 kB / 0.5363 GB, free: 10.02 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001108/0.3538, allocations: 147.8 kB / 0.5364 GB, free: 9.824 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.35e-05/0.3539, allocations: 20.89 kB / 0.5365 GB, free: 9.797 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.271e-05/0.3539, allocations: 5.891 kB / 0.5365 GB, free: 9.789 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.098e-06/0.3539, allocations: 0 / 0.5365 GB, free: 9.789 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.831e-05/0.3539, allocations: 65.61 kB / 0.5365 GB, free: 9.711 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.02e-07/0.3539, allocations: 0 / 0.5365 GB, free: 9.711 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.000158/0.3541, allocations: 70.75 kB / 0.5366 GB, free: 9.637 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.056e-05/0.3541, allocations: 82.64 kB / 0.5367 GB, free: 9.539 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.438e-05/0.3542, allocations: 89.86 kB / 0.5368 GB, free: 9.441 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.682e-05/0.3542, allocations: 29.64 kB / 0.5368 GB, free: 9.406 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.204e-05/0.3542, allocations: 81.45 kB / 0.5369 GB, free: 9.324 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.78e-05/0.3543, allocations: 0 / 0.5369 GB, free: 9.324 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.698e-05/0.3543, allocations: 15.88 kB / 0.5369 GB, free: 9.305 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.102e-05/0.3544, allocations: 311.8 kB / 0.5372 GB, free: 8.992 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.378e-06/0.3544, allocations: 1.188 kB / 0.5372 GB, free: 8.992 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.755e-06/0.3544, allocations: 9.047 kB / 0.5372 GB, free: 8.984 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.537e-05/0.3545, allocations: 59.83 kB / 0.5372 GB, free: 8.914 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.3545, allocations: 0 / 0.5372 GB, free: 8.914 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.22e-05/0.3545, allocations: 66.09 kB / 0.5373 GB, free: 8.844 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.142e-05/0.3546, allocations: 35.58 kB / 0.5373 GB, free: 8.809 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.01e-06/0.3546, allocations: 3.984 kB / 0.5373 GB, free: 8.805 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.535e-05/0.3546, allocations: 0 / 0.5373 GB, free: 8.805 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.61e-07/0.3546, allocations: 1.156 kB / 0.5373 GB, free: 8.805 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.859e-06/0.3546, allocations: 0 / 0.5373 GB, free: 8.805 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.515e-05/0.3546, allocations: 5.281 kB / 0.5373 GB, free: 8.801 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.981e-06/0.3547, allocations: 1.281 kB / 0.5373 GB, free: 8.801 MB / 398.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 7.661e-05/0.3547, allocations: 132.8 kB / 0.5375 GB, free: 8.656 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.029e-05/0.3548, allocations: 4.906 kB / 0.5375 GB, free: 8.652 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.213e-06/0.3548, allocations: 4.219 kB / 0.5375 GB, free: 8.652 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.173e-06/0.3548, allocations: 0 / 0.5375 GB, free: 8.652 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.566e-06/0.3548, allocations: 0 / 0.5375 GB, free: 8.652 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.014e-06/0.3548, allocations: 1.125 kB / 0.5375 GB, free: 8.652 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.569e-05/0.3549, allocations: 150.7 kB / 0.5376 GB, free: 8.457 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.3549, allocations: 4 kB / 0.5376 GB, free: 8.453 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.31e-07/0.3549, allocations: 1.25 kB / 0.5376 GB, free: 8.453 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.377e-06/0.3549, allocations: 3.938 kB / 0.5376 GB, free: 8.449 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.184e-06/0.3549, allocations: 5.281 kB / 0.5376 GB, free: 8.445 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.3549, allocations: 4 kB / 0.5376 GB, free: 8.441 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.3549, allocations: 1.375 kB / 0.5376 GB, free: 8.441 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.301e-05/0.355, allocations: 93.39 kB / 0.5377 GB, free: 8.336 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.197e-05/0.3551, allocations: 77.11 kB / 0.5378 GB, free: 8.242 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.428e-05/0.3551, allocations: 13.25 kB / 0.5378 GB, free: 8.23 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.448e-06/0.3551, allocations: 1.125 kB / 0.5378 GB, free: 8.23 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.308e-05/0.3551, allocations: 0 / 0.5378 GB, free: 8.23 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.13e-05/0.3551, allocations: 5.109 kB / 0.5378 GB, free: 8.227 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.637e-05/0.3552, allocations: 83.25 kB / 0.5379 GB, free: 8.145 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3552, allocations: 0 / 0.5379 GB, free: 8.145 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004467/0.3556, allocations: 128.6 kB / 0.538 GB, free: 8.109 MB / 398.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.0007046/0.3563, allocations: 306.6 kB / 0.5383 GB, free: 7.93 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.505e-05/0.3564, allocations: 60.31 kB / 0.5384 GB, free: 7.863 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.3564, allocations: 0.875 kB / 0.5384 GB, free: 7.863 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.152e-05/0.3565, allocations: 58.22 kB / 0.5384 GB, free: 7.797 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001232/0.3566, allocations: 6.297 kB / 0.5384 GB, free: 7.793 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001846/0.3568, allocations: 102.1 kB / 0.5385 GB, free: 7.668 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002012/0.357, allocations: 0.67 MB / 0.5392 GB, free: 6.973 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.136e-05/0.357, allocations: 8.531 kB / 0.5392 GB, free: 6.965 MB / 398.1 MB Notification: Performance of SimCode: time 2.11e-07/0.357, allocations: 0 / 0.5392 GB, free: 6.965 MB / 398.1 MB Notification: Performance of Templates: time 0.005865/0.3629, allocations: 3.32 MB / 0.5424 GB, free: 5.332 MB / 398.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.sim & ./ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestDistributions/TestDistributions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches