Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.Random.TestDistributions,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestDistributions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestDistributions,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestDistributions",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001719/0.001719, allocations: 116.6 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001799/0.001799, allocations: 183.8 kB / 18.72 MB, free: 4.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.442/1.442, allocations: 222.9 MB / 242.4 MB, free: 15.05 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2232/0.2232, allocations: 44.18 MB / 336.8 MB, free: 2.652 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001915/0.001915, allocations: 67.89 kB / 470 MB, free: 13.66 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3821/0.384, allocations: 60.82 MB / 0.5184 GB, free: 3.281 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.001625/0.3857, allocations: 0.4971 MB / 0.5189 GB, free: 2.98 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002752/0.3885, allocations: 2.038 MB / 0.5209 GB, free: 1.547 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.86e-05/0.3885, allocations: 0 / 0.5209 GB, free: 1.547 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.538e-05/0.3885, allocations: 0 / 0.5209 GB, free: 1.547 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.262e-06/0.3886, allocations: 1.438 kB / 0.5209 GB, free: 1.547 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/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.001559/0.3901, allocations: 0.4964 MB / 0.5214 GB, free: 1.352 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.698e-05/0.3902, allocations: 1.094 kB / 0.5214 GB, free: 1.352 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.617e-05/0.3902, allocations: 2.922 kB / 0.5214 GB, free: 1.352 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.64e-05/0.3903, allocations: 3.938 kB / 0.5214 GB, free: 1.348 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.701e-05/0.3903, allocations: 1.062 kB / 0.5214 GB, free: 1.348 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.583e-06/0.3903, allocations: 0 / 0.5214 GB, free: 1.348 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001117/0.3914, allocations: 0.6067 MB / 0.522 GB, free: 1.16 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.297e-06/0.3914, allocations: 5.094 kB / 0.522 GB, free: 1.156 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.772e-05/0.3915, allocations: 1.281 kB / 0.522 GB, free: 1.156 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006482/0.3921, allocations: 383.6 kB / 0.5224 GB, free: 1.047 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.3921, allocations: 4.734 kB / 0.5224 GB, free: 1.043 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.3921, allocations: 0 / 0.5224 GB, free: 1.043 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.23e-06/0.3921, allocations: 3.938 kB / 0.5224 GB, free: 1.039 MB / 382.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.0003713/0.3925, allocations: 418.4 kB / 0.5228 GB, free: 0.6094 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.384e-05/0.3926, allocations: 13 kB / 0.5228 GB, free: 0.6055 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.671e-05/0.3926, allocations: 32.41 kB / 0.5228 GB, free: 0.5664 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.462e-05/0.3927, allocations: 2.062 kB / 0.5228 GB, free: 0.5664 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.089e-05/0.3927, allocations: 165.8 kB / 0.523 GB, free: 376 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.156e-05/0.3927, allocations: 1.469 kB / 0.523 GB, free: 376 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.965e-06/0.3928, allocations: 5.406 kB / 0.523 GB, free: 372 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.943e-05/0.3929, allocations: 35.3 kB / 0.523 GB, free: 336 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.157e-06/0.3929, allocations: 4 kB / 0.523 GB, free: 332 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.055e-06/0.3929, allocations: 1.188 kB / 0.523 GB, free: 332 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.489e-06/0.3929, allocations: 0 / 0.523 GB, free: 332 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.325e-05/0.3929, allocations: 6.812 kB / 0.523 GB, free: 328 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001945/0.3931, allocations: 234.5 kB / 0.5232 GB, free: 48 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.991e-05/0.3932, allocations: 21.09 kB / 0.5233 GB, free: 24 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.372e-05/0.3932, allocations: 13.53 kB / 0.5233 GB, free: 12 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.755e-06/0.3932, allocations: 5.703 kB / 0.5233 GB, free: 8 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.147e-05/0.3933, allocations: 58.11 kB / 0.5233 GB, free: 15.94 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 1.152e-06/0.3933, allocations: 0 / 0.5233 GB, free: 15.94 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.00021/0.3935, allocations: 73.75 kB / 0.5234 GB, free: 15.87 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.147e-05/0.3936, allocations: 79.02 kB / 0.5235 GB, free: 15.77 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.101e-05/0.3937, allocations: 93.81 kB / 0.5236 GB, free: 15.67 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.793e-05/0.3937, allocations: 25.7 kB / 0.5236 GB, free: 15.64 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.742e-05/0.3937, allocations: 85.39 kB / 0.5237 GB, free: 15.55 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.142e-05/0.3938, allocations: 1.656 kB / 0.5237 GB, free: 15.55 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.385e-05/0.3938, allocations: 16.56 kB / 0.5237 GB, free: 15.54 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001405/0.3939, allocations: 313.2 kB / 0.524 GB, free: 15.22 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.291e-05/0.394, allocations: 1.156 kB / 0.524 GB, free: 15.22 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.797e-06/0.394, allocations: 2.812 kB / 0.524 GB, free: 15.22 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.48e-05/0.394, allocations: 67.42 kB / 0.5241 GB, free: 15.15 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.878e-06/0.3941, allocations: 7.875 kB / 0.5241 GB, free: 15.14 MB / 398.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.509e-05/0.3941, allocations: 71.2 kB / 0.5241 GB, free: 15.07 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.741e-05/0.3942, allocations: 30.94 kB / 0.5242 GB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.971e-06/0.3942, allocations: 1.938 kB / 0.5242 GB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.494e-05/0.3942, allocations: 0 / 0.5242 GB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.859e-05/0.3942, allocations: 1.188 kB / 0.5242 GB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.304e-06/0.3943, allocations: 0.6094 kB / 0.5242 GB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.076e-05/0.3943, allocations: 1.094 kB / 0.5242 GB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.486e-06/0.3943, allocations: 7.938 kB / 0.5242 GB, free: 15.03 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 0.0001078/0.3944, allocations: 143.3 kB / 0.5243 GB, free: 14.88 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.444e-05/0.3944, allocations: 5.75 kB / 0.5243 GB, free: 14.88 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.884e-05/0.3945, allocations: 8.234 kB / 0.5243 GB, free: 14.87 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.874e-06/0.3945, allocations: 4.734 kB / 0.5243 GB, free: 14.86 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.3945, allocations: 0.7812 kB / 0.5243 GB, free: 14.86 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.605e-06/0.3945, allocations: 0 / 0.5243 GB, free: 14.86 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002864/0.3948, allocations: 300.3 kB / 0.5246 GB, free: 14.53 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.3948, allocations: 0 / 0.5246 GB, free: 14.53 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.3e-06/0.3948, allocations: 2.078 kB / 0.5246 GB, free: 14.53 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.463e-06/0.3948, allocations: 0 / 0.5246 GB, free: 14.53 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.498e-06/0.3948, allocations: 9.375 kB / 0.5246 GB, free: 14.52 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.344e-06/0.3948, allocations: 0.6094 kB / 0.5246 GB, free: 14.52 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.3948, allocations: 0 / 0.5246 GB, free: 14.52 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001473/0.395, allocations: 170.6 kB / 0.5248 GB, free: 14.35 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.768e-05/0.3951, allocations: 78.73 kB / 0.5249 GB, free: 14.25 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.273e-05/0.3951, allocations: 1.344 kB / 0.5249 GB, free: 14.25 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.169e-05/0.3951, allocations: 1.969 kB / 0.5249 GB, free: 14.25 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.51e-05/0.3951, allocations: 4.688 kB / 0.5249 GB, free: 14.25 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.136e-06/0.3951, allocations: 1.375 kB / 0.5249 GB, free: 14.25 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.545e-05/0.3952, allocations: 75.28 kB / 0.525 GB, free: 14.18 MB / 398.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3952, allocations: 0 / 0.525 GB, free: 14.18 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005545/0.3958, allocations: 138.3 kB / 0.5251 GB, free: 14.14 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.001144/0.3969, allocations: 0.9072 MB / 0.526 GB, free: 13.37 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001385/0.3971, allocations: 70.25 kB / 0.526 GB, free: 13.3 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.3971, allocations: 0 / 0.526 GB, free: 13.3 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.721e-05/0.3971, allocations: 58.28 kB / 0.5261 GB, free: 13.24 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00019/0.3973, allocations: 4.578 kB / 0.5261 GB, free: 13.23 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001152/0.3985, allocations: 1.195 MB / 0.5273 GB, free: 12.03 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003425/0.3988, allocations: 0.6798 MB / 0.5279 GB, free: 11.32 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.096e-05/0.3989, allocations: 0.8438 kB / 0.5279 GB, free: 11.32 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.574e-05/0.3989, allocations: 14.62 kB / 0.5279 GB, free: 11.31 MB / 398.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3989, allocations: 0 / 0.5279 GB, free: 11.31 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03105/0.43, allocations: 4.436 MB / 0.5323 GB, free: 9.277 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.25/8.68, allocations: 10.34 kB / 0.5323 GB, free: 9.27 MB / 398.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_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_4_0_0_ModelicaTest_Math_Random_TestDistributions.fmu > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Math.Random.TestDistributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches