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.001182/0.001182, allocations: 111.1 kB / 17.78 MB, free: 5.281 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.001289/0.001289, allocations: 180.9 kB / 18.71 MB, free: 4.363 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.381/1.381, allocations: 222.9 MB / 242.4 MB, free: 15.08 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.2133/0.2133, allocations: 44.19 MB / 336.8 MB, free: 2.668 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001207/0.001207, allocations: 59.91 kB / 470 MB, free: 13.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3997/0.4009, allocations: 60.83 MB / 0.5184 GB, free: 3.297 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.001683/0.4027, allocations: 0.5052 MB / 0.5189 GB, free: 2.984 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0028/0.4055, allocations: 2.038 MB / 0.5209 GB, free: 1.551 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.687e-05/0.4055, allocations: 0 / 0.5209 GB, free: 1.551 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 2.254e-05/0.4055, allocations: 0 / 0.5209 GB, free: 1.551 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.101e-06/0.4056, allocations: 0 / 0.5209 GB, free: 1.551 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.001502/0.4071, allocations: 0.4971 MB / 0.5214 GB, free: 1.355 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.393e-05/0.4071, allocations: 1.969 kB / 0.5214 GB, free: 1.355 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.986e-05/0.4072, allocations: 2.312 kB / 0.5214 GB, free: 1.355 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.618e-05/0.4072, allocations: 0 / 0.5214 GB, free: 1.355 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.771e-05/0.4072, allocations: 1.438 kB / 0.5214 GB, free: 1.355 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.524e-06/0.4072, allocations: 0 / 0.5214 GB, free: 1.355 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001171/0.4084, allocations: 0.6107 MB / 0.522 GB, free: 1.164 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.728e-06/0.4084, allocations: 4.656 kB / 0.522 GB, free: 1.16 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.132e-05/0.4085, allocations: 1.25 kB / 0.522 GB, free: 1.16 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006607/0.4091, allocations: 382.8 kB / 0.5224 GB, free: 1.051 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.002e-06/0.4091, allocations: 0.8438 kB / 0.5224 GB, free: 1.051 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.664e-06/0.4092, allocations: 1.312 kB / 0.5224 GB, free: 1.051 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.568e-06/0.4092, allocations: 0 / 0.5224 GB, free: 1.051 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.000375/0.4095, allocations: 420.6 kB / 0.5228 GB, free: 0.6172 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.195e-05/0.4096, allocations: 9.719 kB / 0.5228 GB, free: 0.6172 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.535e-05/0.4096, allocations: 36.81 kB / 0.5228 GB, free: 0.5742 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.627e-05/0.4097, allocations: 2.125 kB / 0.5228 GB, free: 0.5742 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.887e-05/0.4097, allocations: 161.7 kB / 0.523 GB, free: 388 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.215e-05/0.4098, allocations: 1.625 kB / 0.523 GB, free: 388 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.237e-06/0.4098, allocations: 5.438 kB / 0.523 GB, free: 384 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.931e-05/0.4099, allocations: 35.06 kB / 0.523 GB, free: 348 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.733e-06/0.4099, allocations: 0 / 0.523 GB, free: 348 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.456e-06/0.4099, allocations: 5.062 kB / 0.523 GB, free: 344 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.282e-06/0.4099, allocations: 0.7031 kB / 0.523 GB, free: 344 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.869e-05/0.4099, allocations: 6.219 kB / 0.523 GB, free: 340 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000176/0.4101, allocations: 239.1 kB / 0.5232 GB, free: 56 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.271e-05/0.4102, allocations: 20.22 kB / 0.5233 GB, free: 32 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.249e-05/0.4102, allocations: 14.09 kB / 0.5233 GB, free: 20 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.083e-06/0.4102, allocations: 6.156 kB / 0.5233 GB, free: 16 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.164e-05/0.4103, allocations: 56.78 kB / 0.5233 GB, free: 15.95 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 1.192e-06/0.4103, allocations: 0 / 0.5233 GB, free: 15.95 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002043/0.4105, allocations: 74.2 kB / 0.5234 GB, free: 15.88 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.963e-05/0.4106, allocations: 79.25 kB / 0.5235 GB, free: 15.78 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.868e-05/0.4106, allocations: 93.81 kB / 0.5236 GB, free: 15.68 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.383e-05/0.4106, allocations: 25.7 kB / 0.5236 GB, free: 15.65 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.187e-05/0.4107, allocations: 85.73 kB / 0.5237 GB, free: 15.56 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.903e-05/0.4107, allocations: 0.5156 kB / 0.5237 GB, free: 15.56 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.966e-05/0.4107, allocations: 17.77 kB / 0.5237 GB, free: 15.54 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001237/0.4109, allocations: 313 kB / 0.524 GB, free: 15.23 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.217e-05/0.4109, allocations: 1.438 kB / 0.524 GB, free: 15.23 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.498e-06/0.4109, allocations: 6.156 kB / 0.524 GB, free: 15.23 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.889e-05/0.411, allocations: 67.2 kB / 0.5241 GB, free: 15.15 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.411, allocations: 3.938 kB / 0.5241 GB, free: 15.15 MB / 398.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.361e-05/0.4111, allocations: 71.81 kB / 0.5241 GB, free: 15.08 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.163e-05/0.4111, allocations: 30.8 kB / 0.5242 GB, free: 15.05 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.358e-06/0.4111, allocations: 1.344 kB / 0.5242 GB, free: 15.05 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.54e-05/0.4111, allocations: 0 / 0.5242 GB, free: 15.05 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.115e-05/0.4111, allocations: 1.703 kB / 0.5242 GB, free: 15.05 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.527e-06/0.4112, allocations: 0 / 0.5242 GB, free: 15.05 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.962e-05/0.4112, allocations: 5.859 kB / 0.5242 GB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.036e-06/0.4112, allocations: 0 / 0.5242 GB, free: 15.04 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.0001177/0.4113, allocations: 143.1 kB / 0.5243 GB, free: 14.89 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.632e-05/0.4114, allocations: 10.03 kB / 0.5243 GB, free: 14.88 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.784e-05/0.4114, allocations: 7.688 kB / 0.5243 GB, free: 14.88 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.158e-06/0.4114, allocations: 5.484 kB / 0.5243 GB, free: 14.87 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.477e-06/0.4114, allocations: 0 / 0.5243 GB, free: 14.87 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.486e-06/0.4114, allocations: 0.7031 kB / 0.5243 GB, free: 14.87 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002603/0.4117, allocations: 300.2 kB / 0.5246 GB, free: 14.54 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.4117, allocations: 0 / 0.5246 GB, free: 14.54 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.378e-06/0.4117, allocations: 0.7031 kB / 0.5246 GB, free: 14.54 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.373e-06/0.4117, allocations: 1.062 kB / 0.5246 GB, free: 14.54 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.718e-06/0.4117, allocations: 9.406 kB / 0.5246 GB, free: 14.53 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.4117, allocations: 0.75 kB / 0.5246 GB, free: 14.53 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.4117, allocations: 0 / 0.5246 GB, free: 14.53 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001315/0.4119, allocations: 166.8 kB / 0.5248 GB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.13e-05/0.4119, allocations: 77.77 kB / 0.5249 GB, free: 14.27 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.297e-05/0.4119, allocations: 6.125 kB / 0.5249 GB, free: 14.26 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.454e-05/0.412, allocations: 1.781 kB / 0.5249 GB, free: 14.26 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.692e-05/0.412, allocations: 4.828 kB / 0.5249 GB, free: 14.26 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.46e-06/0.412, allocations: 1.656 kB / 0.5249 GB, free: 14.26 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.01e-05/0.4121, allocations: 79.22 kB / 0.525 GB, free: 14.18 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4121, allocations: 0 / 0.525 GB, free: 14.18 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000507/0.4126, allocations: 138.5 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.001069/0.4137, allocations: 0.9022 MB / 0.526 GB, free: 13.38 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001179/0.4138, allocations: 60.77 kB / 0.526 GB, free: 13.32 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.374e-05/0.4138, allocations: 4 kB / 0.526 GB, free: 13.31 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.119e-05/0.4139, allocations: 61.36 kB / 0.5261 GB, free: 13.25 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001939/0.4141, allocations: 10.33 kB / 0.5261 GB, free: 13.24 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001033/0.4151, allocations: 1.195 MB / 0.5273 GB, free: 12.04 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002883/0.4154, allocations: 0.6801 MB / 0.5279 GB, free: 11.33 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.187e-05/0.4154, allocations: 1.812 kB / 0.5279 GB, free: 11.33 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.074e-05/0.4154, allocations: 9.219 kB / 0.5279 GB, free: 11.32 MB / 398.1 MB Notification: Performance of SimCode: time 2.31e-07/0.4154, allocations: 0 / 0.5279 GB, free: 11.32 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02295/0.4384, allocations: 4.428 MB / 0.5323 GB, free: 9.309 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.778/8.216, allocations: 13.92 kB / 0.5323 GB, free: 9.305 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