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.001836/0.001836, allocations: 104.5 kB / 17.63 MB, free: 5.344 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.002232/0.002232, allocations: 192 kB / 18.56 MB, free: 4.434 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.316/1.316, allocations: 222.9 MB / 242.3 MB, free: 15.15 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.1901/0.1901, allocations: 44.18 MB / 336.6 MB, free: 2.746 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001315/0.001316, allocations: 63.27 kB / 408.5 MB, free: 27.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09542/0.09675, allocations: 60.83 MB / 469.4 MB, free: 14.25 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.001588/0.09838, allocations: 498.9 kB / 469.8 MB, free: 13.77 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002374/0.1008, allocations: 2.037 MB / 471.9 MB, free: 11.71 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.431e-05/0.1008, allocations: 0 / 471.9 MB, free: 11.71 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.292e-05/0.1008, allocations: 0 / 471.9 MB, free: 11.71 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.272e-06/0.1008, allocations: 0 / 471.9 MB, free: 11.71 MB / 350.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.001161/0.102, allocations: 0.4945 MB / 472.4 MB, free: 11.21 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.884e-05/0.1021, allocations: 3.984 kB / 472.4 MB, free: 11.21 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.55e-05/0.1021, allocations: 4 kB / 472.4 MB, free: 11.21 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.25e-05/0.1021, allocations: 8 kB / 472.4 MB, free: 11.2 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.527e-05/0.1021, allocations: 0 / 472.4 MB, free: 11.2 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.41e-06/0.1021, allocations: 3.938 kB / 472.4 MB, free: 11.2 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007906/0.1029, allocations: 0.6006 MB / 473 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.022e-06/0.103, allocations: 4 kB / 473 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.447e-05/0.103, allocations: 0 / 473 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00047/0.1034, allocations: 383.3 kB / 473.4 MB, free: 10.21 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.865e-06/0.1035, allocations: 0 / 473.4 MB, free: 10.21 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.176e-06/0.1035, allocations: 4 kB / 473.4 MB, free: 10.21 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.937e-06/0.1035, allocations: 3.938 kB / 473.4 MB, free: 10.21 MB / 350.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.000359/0.1038, allocations: 409.5 kB / 473.8 MB, free: 9.754 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.24e-05/0.1039, allocations: 8.031 kB / 473.8 MB, free: 9.746 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.442e-05/0.1039, allocations: 34.75 kB / 473.8 MB, free: 9.703 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.171e-05/0.104, allocations: 8.938 kB / 473.8 MB, free: 9.695 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.599e-05/0.104, allocations: 164.4 kB / 474 MB, free: 9.496 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.032e-05/0.1041, allocations: 384 / 474 MB, free: 9.496 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.46e-06/0.1041, allocations: 4.312 kB / 474 MB, free: 9.492 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.216e-05/0.1042, allocations: 45.81 kB / 474 MB, free: 9.441 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.112e-06/0.1042, allocations: 0 / 474 MB, free: 9.441 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.943e-06/0.1042, allocations: 0 / 474 MB, free: 9.441 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.268e-06/0.1042, allocations: 0 / 474 MB, free: 9.441 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.911e-05/0.1042, allocations: 7.938 kB / 474.1 MB, free: 9.434 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001893/0.1044, allocations: 236.9 kB / 474.3 MB, free: 9.152 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.373e-05/0.1045, allocations: 18.61 kB / 474.3 MB, free: 9.125 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.083e-05/0.1045, allocations: 12.92 kB / 474.3 MB, free: 9.109 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.505e-06/0.1045, allocations: 0 / 474.3 MB, free: 9.109 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.665e-05/0.1045, allocations: 64.25 kB / 474.4 MB, free: 9.031 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 8.32e-07/0.1045, allocations: 4 kB / 474.4 MB, free: 9.027 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.000153/0.1047, allocations: 71.33 kB / 474.5 MB, free: 8.945 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.455e-05/0.1048, allocations: 81.11 kB / 474.5 MB, free: 8.848 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.183e-05/0.1048, allocations: 89.86 kB / 474.6 MB, free: 8.75 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.062e-05/0.1048, allocations: 25.7 kB / 474.6 MB, free: 8.719 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.721e-05/0.1048, allocations: 84.08 kB / 474.7 MB, free: 8.633 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.744e-05/0.1049, allocations: 7.891 kB / 474.7 MB, free: 8.625 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.463e-05/0.1049, allocations: 13.72 kB / 474.7 MB, free: 8.605 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001062/0.105, allocations: 319 kB / 475.1 MB, free: 8.285 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.315e-05/0.105, allocations: 4 kB / 475.1 MB, free: 8.281 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.492e-06/0.105, allocations: 0 / 475.1 MB, free: 8.281 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.792e-05/0.1051, allocations: 64.27 kB / 475.1 MB, free: 8.203 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.956e-06/0.1051, allocations: 3.938 kB / 475.1 MB, free: 8.199 MB / 350.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.833e-05/0.1052, allocations: 71.33 kB / 475.2 MB, free: 8.117 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.978e-05/0.1052, allocations: 29.7 kB / 475.2 MB, free: 8.082 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.138e-06/0.1052, allocations: 96 / 475.2 MB, free: 8.082 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.148e-05/0.1052, allocations: 4 kB / 475.2 MB, free: 8.078 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.456e-05/0.1053, allocations: 4 kB / 475.2 MB, free: 8.074 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.759e-06/0.1053, allocations: 0 / 475.2 MB, free: 8.074 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.428e-05/0.1053, allocations: 0 / 475.2 MB, free: 8.074 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.807e-06/0.1053, allocations: 3.984 kB / 475.2 MB, free: 8.07 MB / 350.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.219e-05/0.1054, allocations: 147.5 kB / 475.4 MB, free: 7.91 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.183e-05/0.1054, allocations: 0 / 475.4 MB, free: 7.91 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.497e-05/0.1054, allocations: 7.078 kB / 475.4 MB, free: 7.902 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.574e-06/0.1054, allocations: 0 / 475.4 MB, free: 7.902 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.715e-06/0.1055, allocations: 7.938 kB / 475.4 MB, free: 7.895 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.424e-06/0.1055, allocations: 0 / 475.4 MB, free: 7.895 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002228/0.1057, allocations: 300.2 kB / 475.7 MB, free: 7.539 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.1057, allocations: 3.984 kB / 475.7 MB, free: 7.535 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.306e-06/0.1057, allocations: 0 / 475.7 MB, free: 7.535 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.343e-06/0.1057, allocations: 0 / 475.7 MB, free: 7.535 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.833e-06/0.1057, allocations: 4 kB / 475.7 MB, free: 7.531 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.92e-07/0.1057, allocations: 0 / 475.7 MB, free: 7.531 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.1057, allocations: 0 / 475.7 MB, free: 7.531 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001094/0.1059, allocations: 181.1 kB / 475.9 MB, free: 7.332 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.743e-05/0.1059, allocations: 77.11 kB / 476 MB, free: 7.238 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.328e-05/0.1059, allocations: 7.938 kB / 476 MB, free: 7.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.854e-05/0.106, allocations: 0 / 476 MB, free: 7.23 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.272e-05/0.106, allocations: 0 / 476 MB, free: 7.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.574e-06/0.106, allocations: 0 / 476 MB, free: 7.23 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.379e-05/0.106, allocations: 75.28 kB / 476 MB, free: 7.156 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.106, allocations: 8.031 kB / 476 MB, free: 7.148 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000393/0.1064, allocations: 135.8 kB / 476.2 MB, free: 7.016 MB / 350.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.0009679/0.1074, allocations: 0.8976 MB / 477.1 MB, free: 6.09 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000107/0.1075, allocations: 71.27 kB / 477.1 MB, free: 6.008 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.1075, allocations: 0 / 477.1 MB, free: 6.008 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.191e-05/0.1076, allocations: 59.41 kB / 477.2 MB, free: 5.938 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001898/0.1077, allocations: 6.656 kB / 477.2 MB, free: 5.934 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008351/0.1086, allocations: 1.192 MB / 478.4 MB, free: 4.656 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002004/0.1088, allocations: 0.6729 MB / 479.1 MB, free: 3.957 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.075e-06/0.1088, allocations: 8 kB / 479.1 MB, free: 3.949 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.412e-05/0.1088, allocations: 7.438 kB / 479.1 MB, free: 3.941 MB / 350.1 MB Notification: Performance of SimCode: time 2e-07/0.1088, allocations: 0 / 479.1 MB, free: 3.941 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05761/0.1665, allocations: 4.394 MB / 483.5 MB, free: 15.61 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.673/8.84, allocations: 10.75 kB / 483.5 MB, free: 15.61 MB / 366.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestDistributions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 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.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_4.0.0_ModelicaTest.Math.Random.TestDistributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches