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: "" <> buildModelFMU(ModelicaTest.Math.Random.TestDistributions,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_Random_TestDistributions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestDistributions,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_Random_TestDistributions",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001308/0.001308, allocations: 118.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001506/0.001506, allocations: 201.2 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.393/1.393, allocations: 227.4 MB / 246.9 MB, free: 10.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2224/0.2224, allocations: 46.1 MB / 344.3 MB, free: 11.46 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001554/0.001555, allocations: 75.88 kB / 480.8 MB, free: 4.551 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3603/0.3619, allocations: 62.43 MB / 0.5305 GB, free: 13.38 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.001542/0.3635, allocations: 0.5003 MB / 0.531 GB, free: 13 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002878/0.3664, allocations: 2.096 MB / 0.533 GB, free: 11.35 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.537e-05/0.3664, allocations: 0 / 0.533 GB, free: 11.35 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.317e-05/0.3664, allocations: 0 / 0.533 GB, free: 11.35 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.993e-06/0.3664, allocations: 0 / 0.533 GB, free: 11.35 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.001434/0.3679, allocations: 0.502 MB / 0.5335 GB, free: 11.06 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.497e-05/0.3679, allocations: 1.375 kB / 0.5335 GB, free: 11.06 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.882e-05/0.368, allocations: 1.375 kB / 0.5335 GB, free: 11.06 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.698e-05/0.368, allocations: 5.312 kB / 0.5335 GB, free: 11.05 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.906e-05/0.368, allocations: 3.984 kB / 0.5335 GB, free: 11.05 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.402e-06/0.368, allocations: 1.375 kB / 0.5335 GB, free: 11.05 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001031/0.3691, allocations: 0.6361 MB / 0.5342 GB, free: 10.69 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.225e-06/0.3691, allocations: 0 / 0.5342 GB, free: 10.69 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.343e-05/0.3691, allocations: 1.375 kB / 0.5342 GB, free: 10.69 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006134/0.3697, allocations: 384.5 kB / 0.5345 GB, free: 10.46 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.98e-06/0.3698, allocations: 0 / 0.5345 GB, free: 10.46 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.3698, allocations: 0 / 0.5345 GB, free: 10.46 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.64e-06/0.3698, allocations: 0 / 0.5345 GB, free: 10.46 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.0005062/0.3703, allocations: 426.2 kB / 0.5349 GB, free: 10.01 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.457e-05/0.3703, allocations: 10.34 kB / 0.535 GB, free: 10.01 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.201e-05/0.3704, allocations: 34.7 kB / 0.535 GB, free: 9.969 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.717e-05/0.3704, allocations: 2.062 kB / 0.535 GB, free: 9.969 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001015/0.3705, allocations: 160.4 kB / 0.5351 GB, free: 9.773 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.285e-05/0.3706, allocations: 9.547 kB / 0.5352 GB, free: 9.766 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.185e-06/0.3706, allocations: 1.5 kB / 0.5352 GB, free: 9.766 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.928e-05/0.3707, allocations: 41.34 kB / 0.5352 GB, free: 9.723 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.614e-06/0.3707, allocations: 0 / 0.5352 GB, free: 9.723 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.775e-06/0.3707, allocations: 1.062 kB / 0.5352 GB, free: 9.723 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.438e-06/0.3707, allocations: 0 / 0.5352 GB, free: 9.723 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.068e-05/0.3707, allocations: 2.312 kB / 0.5352 GB, free: 9.723 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002437/0.371, allocations: 236.2 kB / 0.5354 GB, free: 9.445 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.15e-05/0.3711, allocations: 27.17 kB / 0.5354 GB, free: 9.414 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.385e-05/0.3711, allocations: 9.141 kB / 0.5355 GB, free: 9.406 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.678e-06/0.3711, allocations: 4.906 kB / 0.5355 GB, free: 9.402 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.644e-05/0.3712, allocations: 61.41 kB / 0.5355 GB, free: 9.328 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 1.353e-06/0.3712, allocations: 0 / 0.5355 GB, free: 9.328 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001863/0.3714, allocations: 66.94 kB / 0.5356 GB, free: 9.262 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.453e-05/0.3714, allocations: 86.17 kB / 0.5357 GB, free: 9.16 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.612e-05/0.3715, allocations: 89.86 kB / 0.5358 GB, free: 9.062 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.449e-05/0.3715, allocations: 30.81 kB / 0.5358 GB, free: 9.027 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.187e-05/0.3715, allocations: 80.14 kB / 0.5359 GB, free: 8.945 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.141e-05/0.3716, allocations: 9.078 kB / 0.5359 GB, free: 8.938 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.675e-05/0.3716, allocations: 12 kB / 0.5359 GB, free: 8.922 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.984e-05/0.3717, allocations: 312.1 kB / 0.5362 GB, free: 8.609 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.221e-05/0.3717, allocations: 1.75 kB / 0.5362 GB, free: 8.609 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.757e-06/0.3717, allocations: 10.12 kB / 0.5362 GB, free: 8.602 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.914e-05/0.3718, allocations: 72.69 kB / 0.5363 GB, free: 8.52 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.3718, allocations: 5.094 kB / 0.5363 GB, free: 8.516 MB / 398.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 6.701e-05/0.3719, allocations: 64.41 kB / 0.5363 GB, free: 8.449 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.864e-05/0.3719, allocations: 31.48 kB / 0.5364 GB, free: 8.418 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.358e-06/0.3719, allocations: 3.938 kB / 0.5364 GB, free: 8.414 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.247e-05/0.3719, allocations: 1.094 kB / 0.5364 GB, free: 8.414 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.283e-05/0.3719, allocations: 0 / 0.5364 GB, free: 8.414 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.781e-06/0.372, allocations: 1.062 kB / 0.5364 GB, free: 8.414 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.647e-05/0.372, allocations: 8.078 kB / 0.5364 GB, free: 8.406 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.262e-06/0.372, allocations: 1.094 kB / 0.5364 GB, free: 8.406 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: 2 ($outputAlias_result,result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 1 * 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 8.525e-05/0.3721, allocations: 141.8 kB / 0.5365 GB, free: 8.254 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.168e-05/0.3721, allocations: 1.188 kB / 0.5365 GB, free: 8.254 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.229e-05/0.3721, allocations: 4.219 kB / 0.5365 GB, free: 8.254 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.102e-06/0.3721, allocations: 0 / 0.5365 GB, free: 8.254 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.078e-06/0.3721, allocations: 1.125 kB / 0.5365 GB, free: 8.254 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.726e-06/0.3722, allocations: 0 / 0.5365 GB, free: 8.254 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002366/0.3724, allocations: 306.2 kB / 0.5368 GB, free: 7.906 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.3724, allocations: 1.125 kB / 0.5368 GB, free: 7.906 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.597e-06/0.3724, allocations: 0 / 0.5368 GB, free: 7.906 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.803e-06/0.3724, allocations: 1.125 kB / 0.5368 GB, free: 7.906 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.241e-06/0.3724, allocations: 0 / 0.5368 GB, free: 7.906 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.883e-06/0.3724, allocations: 1.375 kB / 0.5368 GB, free: 7.906 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.3724, allocations: 0 / 0.5368 GB, free: 7.906 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001226/0.3726, allocations: 175.3 kB / 0.537 GB, free: 7.727 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.185e-05/0.3726, allocations: 81.05 kB / 0.537 GB, free: 7.629 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.196e-05/0.3726, allocations: 1.188 kB / 0.537 GB, free: 7.629 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.13e-05/0.3727, allocations: 0.9688 kB / 0.537 GB, free: 7.629 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.744e-05/0.3727, allocations: 9.062 kB / 0.5371 GB, free: 7.621 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.637e-06/0.3727, allocations: 1.062 kB / 0.5371 GB, free: 7.621 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.37e-05/0.3727, allocations: 75.28 kB / 0.5371 GB, free: 7.547 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3727, allocations: 0 / 0.5371 GB, free: 7.547 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004633/0.3732, allocations: 133.2 kB / 0.5373 GB, free: 7.508 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: 2 (result,$outputAlias_result) * Number of discrete states: 1 ($outputAlias_result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 1 * 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.001078/0.3743, allocations: 0.9254 MB / 0.5382 GB, free: 6.695 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001179/0.3744, allocations: 63.06 kB / 0.5382 GB, free: 6.629 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.3744, allocations: 0 / 0.5382 GB, free: 6.629 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.021e-05/0.3745, allocations: 65.08 kB / 0.5383 GB, free: 6.559 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001914/0.3747, allocations: 1.281 kB / 0.5383 GB, free: 6.559 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009371/0.3756, allocations: 1.203 MB / 0.5395 GB, free: 5.328 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002388/0.3759, allocations: 0.6713 MB / 0.5401 GB, free: 4.633 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.007e-05/0.3759, allocations: 0 / 0.5401 GB, free: 4.633 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.861e-05/0.3759, allocations: 9.562 kB / 0.5401 GB, free: 4.625 MB / 398.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3759, allocations: 0 / 0.5401 GB, free: 4.625 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02303/0.399, allocations: 4.515 MB / 0.5445 GB, free: 2.234 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.812/8.211, allocations: 10.66 kB / 0.5445 GB, free: 2.23 MB / 398.1 MB (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 & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 ModelicaTest_trunk_ModelicaTest_Math_Random_TestDistributions.fmu > ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions_res.csv","/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