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.001165/0.001165, allocations: 118.8 kB / 17.78 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001287/0.001288, allocations: 197.2 kB / 18.73 MB, free: 4.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.431/1.431, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2363/0.2363, allocations: 46.11 MB / 344.3 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001458/0.001458, allocations: 75.88 kB / 481.3 MB, free: 4.066 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4494/0.4508, allocations: 62.43 MB / 0.531 GB, free: 13.6 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.001659/0.4525, allocations: 0.5017 MB / 0.5315 GB, free: 13.22 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003096/0.4557, allocations: 2.092 MB / 0.5335 GB, free: 11.57 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.066e-05/0.4557, allocations: 0 / 0.5335 GB, free: 11.57 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.54e-05/0.4557, allocations: 0 / 0.5335 GB, free: 11.57 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.623e-06/0.4557, allocations: 0 / 0.5335 GB, free: 11.57 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.001514/0.4573, allocations: 0.5053 MB / 0.534 GB, free: 11.28 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.2e-05/0.4573, allocations: 2.75 kB / 0.534 GB, free: 11.28 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.913e-05/0.4574, allocations: 3.984 kB / 0.534 GB, free: 11.27 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.816e-05/0.4574, allocations: 1.375 kB / 0.534 GB, free: 11.27 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.919e-05/0.4574, allocations: 1.375 kB / 0.534 GB, free: 11.27 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.024e-06/0.4574, allocations: 0 / 0.534 GB, free: 11.27 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001136/0.4586, allocations: 0.6251 MB / 0.5346 GB, free: 10.92 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.042e-05/0.4586, allocations: 3.938 kB / 0.5346 GB, free: 10.92 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.102e-05/0.4586, allocations: 4.969 kB / 0.5346 GB, free: 10.91 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005952/0.4592, allocations: 385.3 kB / 0.535 GB, free: 10.68 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.4592, allocations: 0 / 0.535 GB, free: 10.68 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.4593, allocations: 0 / 0.535 GB, free: 10.68 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.172e-06/0.4593, allocations: 0 / 0.535 GB, free: 10.68 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.0004672/0.4597, allocations: 426.4 kB / 0.5354 GB, free: 10.24 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.036e-05/0.4598, allocations: 9 kB / 0.5354 GB, free: 10.24 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.803e-05/0.4598, allocations: 6.312 kB / 0.5354 GB, free: 10.23 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.179e-05/0.4599, allocations: 160.4 kB / 0.5356 GB, free: 10.04 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.016e-05/0.4599, allocations: 5.469 kB / 0.5356 GB, free: 10.04 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.938e-06/0.46, allocations: 384 / 0.5356 GB, free: 10.04 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.798e-05/0.4601, allocations: 36.72 kB / 0.5356 GB, free: 9.996 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.655e-06/0.4601, allocations: 0 / 0.5356 GB, free: 9.996 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.148e-05/0.4601, allocations: 1.125 kB / 0.5356 GB, free: 9.996 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.914e-06/0.4601, allocations: 4 kB / 0.5356 GB, free: 9.992 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.838e-05/0.4601, allocations: 5.062 kB / 0.5356 GB, free: 9.988 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001338/0.4603, allocations: 142.8 kB / 0.5358 GB, free: 9.801 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.352e-05/0.4603, allocations: 21.17 kB / 0.5358 GB, free: 9.773 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.638e-05/0.4603, allocations: 10.25 kB / 0.5358 GB, free: 9.762 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.549e-06/0.4604, allocations: 0 / 0.5358 GB, free: 9.762 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.021e-05/0.4604, allocations: 61.55 kB / 0.5359 GB, free: 9.688 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.032e-06/0.4604, allocations: 4 kB / 0.5359 GB, free: 9.684 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001796/0.4606, allocations: 67.14 kB / 0.5359 GB, free: 9.613 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.781e-05/0.4607, allocations: 82.41 kB / 0.536 GB, free: 9.516 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.627e-05/0.4607, allocations: 93.86 kB / 0.5361 GB, free: 9.414 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.325e-05/0.4607, allocations: 25.7 kB / 0.5361 GB, free: 9.383 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.464e-05/0.4608, allocations: 85.27 kB / 0.5362 GB, free: 9.297 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.073e-05/0.4608, allocations: 0 / 0.5362 GB, free: 9.297 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.548e-05/0.4608, allocations: 12.12 kB / 0.5362 GB, free: 9.281 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001048/0.4609, allocations: 316.8 kB / 0.5365 GB, free: 8.965 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.032e-05/0.4609, allocations: 0 / 0.5365 GB, free: 8.965 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.652e-06/0.461, allocations: 1.875 kB / 0.5365 GB, free: 8.965 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.575e-05/0.461, allocations: 62.33 kB / 0.5366 GB, free: 8.891 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.461, allocations: 5.438 kB / 0.5366 GB, free: 8.887 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.192e-05/0.4611, allocations: 61.7 kB / 0.5366 GB, free: 8.82 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.196e-05/0.4611, allocations: 34.98 kB / 0.5367 GB, free: 8.785 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.827e-06/0.4611, allocations: 96 / 0.5367 GB, free: 8.785 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.376e-05/0.4612, allocations: 5.5 kB / 0.5367 GB, free: 8.781 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.61e-07/0.4612, allocations: 0 / 0.5367 GB, free: 8.781 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.779e-06/0.4612, allocations: 0 / 0.5367 GB, free: 8.781 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.724e-05/0.4612, allocations: 5.344 kB / 0.5367 GB, free: 8.777 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.514e-06/0.4612, allocations: 0 / 0.5367 GB, free: 8.777 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 9.137e-05/0.4613, allocations: 138.5 kB / 0.5368 GB, free: 8.629 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.868e-06/0.4613, allocations: 5.156 kB / 0.5368 GB, free: 8.625 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.118e-05/0.4613, allocations: 3.125 kB / 0.5368 GB, free: 8.625 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.242e-06/0.4613, allocations: 0 / 0.5368 GB, free: 8.625 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.4614, allocations: 5 kB / 0.5368 GB, free: 8.621 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.605e-06/0.4614, allocations: 0 / 0.5368 GB, free: 8.621 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001002/0.4615, allocations: 150.8 kB / 0.537 GB, free: 8.426 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.52e-07/0.4615, allocations: 1.094 kB / 0.537 GB, free: 8.426 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.62e-07/0.4615, allocations: 0 / 0.537 GB, free: 8.426 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.367e-06/0.4615, allocations: 8.812 kB / 0.537 GB, free: 8.418 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.293e-06/0.4615, allocations: 1.156 kB / 0.537 GB, free: 8.418 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.31e-07/0.4615, allocations: 0 / 0.537 GB, free: 8.418 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.4615, allocations: 3.938 kB / 0.537 GB, free: 8.414 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001008/0.4616, allocations: 97.5 kB / 0.5371 GB, free: 8.305 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.01e-05/0.4617, allocations: 82.25 kB / 0.5372 GB, free: 8.207 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.398e-05/0.4617, allocations: 4.906 kB / 0.5372 GB, free: 8.203 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.716e-06/0.4617, allocations: 1.344 kB / 0.5372 GB, free: 8.203 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.129e-05/0.4617, allocations: 0 / 0.5372 GB, free: 8.203 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.416e-06/0.4617, allocations: 1.469 kB / 0.5372 GB, free: 8.203 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.909e-05/0.4618, allocations: 79.31 kB / 0.5372 GB, free: 8.125 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4618, allocations: 3.938 kB / 0.5372 GB, free: 8.121 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004241/0.4622, allocations: 139.9 kB / 0.5374 GB, free: 8.074 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.0007434/0.4629, allocations: 299.5 kB / 0.5377 GB, free: 7.898 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001061/0.4631, allocations: 67.67 kB / 0.5377 GB, free: 7.824 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.195e-06/0.4631, allocations: 1.188 kB / 0.5377 GB, free: 7.824 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.764e-05/0.4631, allocations: 58.75 kB / 0.5378 GB, free: 7.758 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001346/0.4633, allocations: 3.547 kB / 0.5378 GB, free: 7.758 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002674/0.4635, allocations: 79.77 kB / 0.5379 GB, free: 7.66 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003339/0.4639, allocations: 0.671 MB / 0.5385 GB, free: 6.965 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.182e-05/0.4639, allocations: 4 kB / 0.5385 GB, free: 6.961 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.984e-05/0.4639, allocations: 8.5 kB / 0.5385 GB, free: 6.953 MB / 398.1 MB Notification: Performance of SimCode: time 2.01e-07/0.4639, allocations: 1.125 kB / 0.5385 GB, free: 6.953 MB / 398.1 MB Notification: Performance of Templates: time 0.008656/0.4726, allocations: 3.512 MB / 0.542 GB, free: 5.164 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestDistributions/TestDistributions.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches