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.001116/0.001117, allocations: 110.4 kB / 17.78 MB, free: 5.289 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.001209/0.001209, allocations: 187.1 kB / 18.71 MB, free: 4.371 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.397/1.397, allocations: 222.9 MB / 242.4 MB, free: 15.09 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.1982/0.1982, allocations: 44.18 MB / 336.7 MB, free: 2.684 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001259/0.001259, allocations: 67.89 kB / 470 MB, free: 13.7 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3758/0.377, allocations: 60.82 MB / 0.5184 GB, free: 3.301 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.001489/0.3786, allocations: 0.4971 MB / 0.5189 GB, free: 2.996 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002579/0.3812, allocations: 2.043 MB / 0.5209 GB, free: 1.559 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.867e-05/0.3812, allocations: 0 / 0.5209 GB, free: 1.559 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.544e-05/0.3812, allocations: 0 / 0.5209 GB, free: 1.559 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.743e-06/0.3812, allocations: 0 / 0.5209 GB, free: 1.559 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.00169/0.3829, allocations: 0.4935 MB / 0.5214 GB, free: 1.367 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.378e-05/0.383, allocations: 8.984 kB / 0.5214 GB, free: 1.359 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.982e-05/0.383, allocations: 2.344 kB / 0.5214 GB, free: 1.359 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.63e-05/0.3831, allocations: 1.031 kB / 0.5214 GB, free: 1.359 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.899e-05/0.3831, allocations: 1.156 kB / 0.5214 GB, free: 1.359 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.102e-06/0.3831, allocations: 0 / 0.5214 GB, free: 1.359 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001215/0.3843, allocations: 0.6105 MB / 0.522 GB, free: 1.168 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.927e-06/0.3843, allocations: 0 / 0.522 GB, free: 1.168 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.582e-05/0.3844, allocations: 5.312 kB / 0.522 GB, free: 1.164 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006746/0.385, allocations: 379 kB / 0.5224 GB, free: 1.055 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.3851, allocations: 1.781 kB / 0.5224 GB, free: 1.055 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.3851, allocations: 0 / 0.5224 GB, free: 1.055 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.598e-06/0.3851, allocations: 0 / 0.5224 GB, free: 1.055 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.0003556/0.3854, allocations: 419.5 kB / 0.5228 GB, free: 0.6289 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.946e-05/0.3855, allocations: 13.81 kB / 0.5228 GB, free: 0.625 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.095e-05/0.3855, allocations: 33.17 kB / 0.5228 GB, free: 0.5859 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.246e-05/0.3856, allocations: 0.9375 kB / 0.5228 GB, free: 0.5859 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.449e-05/0.3856, allocations: 162.1 kB / 0.523 GB, free: 400 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.078e-05/0.3856, allocations: 1.812 kB / 0.523 GB, free: 400 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.053e-05/0.3856, allocations: 0.8906 kB / 0.523 GB, free: 400 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.603e-05/0.3857, allocations: 39.83 kB / 0.523 GB, free: 360 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.983e-06/0.3857, allocations: 0 / 0.523 GB, free: 360 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.983e-06/0.3858, allocations: 4 kB / 0.523 GB, free: 356 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.193e-06/0.3858, allocations: 1.344 kB / 0.523 GB, free: 356 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.128e-05/0.3858, allocations: 3.062 kB / 0.523 GB, free: 356 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001753/0.386, allocations: 241.9 kB / 0.5232 GB, free: 68 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.742e-05/0.386, allocations: 21.41 kB / 0.5233 GB, free: 44 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.083e-05/0.3861, allocations: 9.484 kB / 0.5233 GB, free: 36 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.283e-05/0.3861, allocations: 4.703 kB / 0.5233 GB, free: 32 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.822e-05/0.3861, allocations: 62.16 kB / 0.5233 GB, free: 15.96 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 1.072e-06/0.3861, allocations: 1.281 kB / 0.5233 GB, free: 15.96 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001857/0.3863, allocations: 69.41 kB / 0.5234 GB, free: 15.89 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.739e-05/0.3864, allocations: 81.11 kB / 0.5235 GB, free: 15.79 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.545e-05/0.3864, allocations: 92.03 kB / 0.5236 GB, free: 15.7 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.016e-05/0.3865, allocations: 25.7 kB / 0.5236 GB, free: 15.66 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.682e-05/0.3865, allocations: 80.14 kB / 0.5237 GB, free: 15.58 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.026e-05/0.3865, allocations: 13.8 kB / 0.5237 GB, free: 15.57 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.798e-05/0.3866, allocations: 12.98 kB / 0.5237 GB, free: 15.55 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001026/0.3867, allocations: 316.9 kB / 0.524 GB, free: 15.24 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.246e-05/0.3867, allocations: 1.984 kB / 0.524 GB, free: 15.24 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.916e-06/0.3867, allocations: 3.5 kB / 0.524 GB, free: 15.24 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.333e-05/0.3868, allocations: 61.22 kB / 0.5241 GB, free: 15.17 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.997e-06/0.3868, allocations: 3.938 kB / 0.5241 GB, free: 15.16 MB / 398.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.722e-05/0.3869, allocations: 79.69 kB / 0.5241 GB, free: 15.09 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.963e-05/0.3869, allocations: 32 kB / 0.5242 GB, free: 15.05 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.3869, allocations: 0.7031 kB / 0.5242 GB, free: 15.05 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.293e-05/0.3869, allocations: 1.125 kB / 0.5242 GB, free: 15.05 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.465e-05/0.3869, allocations: 0 / 0.5242 GB, free: 15.05 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.733e-06/0.3869, allocations: 0.6562 kB / 0.5242 GB, free: 15.05 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.734e-05/0.387, allocations: 1.156 kB / 0.5242 GB, free: 15.05 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.135e-06/0.387, allocations: 5.219 kB / 0.5242 GB, free: 15.05 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.577e-05/0.3871, allocations: 143.1 kB / 0.5243 GB, free: 14.9 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.285e-05/0.3871, allocations: 4.969 kB / 0.5243 GB, free: 14.89 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.536e-05/0.3871, allocations: 7.734 kB / 0.5243 GB, free: 14.89 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.863e-06/0.3871, allocations: 1.734 kB / 0.5243 GB, free: 14.89 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/0.3871, allocations: 0 / 0.5243 GB, free: 14.89 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.425e-06/0.3871, allocations: 1.094 kB / 0.5243 GB, free: 14.89 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002395/0.3874, allocations: 300.2 kB / 0.5246 GB, free: 14.55 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.3874, allocations: 0.75 kB / 0.5246 GB, free: 14.55 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.508e-06/0.3874, allocations: 0 / 0.5246 GB, free: 14.55 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.245e-06/0.3874, allocations: 0.9375 kB / 0.5246 GB, free: 14.55 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.017e-06/0.3874, allocations: 1.531 kB / 0.5246 GB, free: 14.55 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.422e-06/0.3874, allocations: 4.031 kB / 0.5246 GB, free: 14.55 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.522e-06/0.3874, allocations: 1.156 kB / 0.5246 GB, free: 14.55 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001282/0.3876, allocations: 174 kB / 0.5248 GB, free: 14.37 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.529e-05/0.3876, allocations: 83.25 kB / 0.5249 GB, free: 14.27 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.219e-05/0.3876, allocations: 1.125 kB / 0.5249 GB, free: 14.27 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.518e-05/0.3877, allocations: 0.9688 kB / 0.5249 GB, free: 14.27 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.882e-05/0.3877, allocations: 6.375 kB / 0.5249 GB, free: 14.27 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.875e-06/0.3877, allocations: 4.031 kB / 0.5249 GB, free: 14.27 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.351e-05/0.3878, allocations: 75.28 kB / 0.5249 GB, free: 14.19 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3878, allocations: 0 / 0.5249 GB, free: 14.19 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004397/0.3882, allocations: 131.7 kB / 0.5251 GB, free: 14.16 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.001022/0.3892, allocations: 0.91 MB / 0.526 GB, free: 13.39 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001193/0.3894, allocations: 66.7 kB / 0.526 GB, free: 13.32 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.3894, allocations: 0 / 0.526 GB, free: 13.32 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.811e-05/0.3894, allocations: 60.67 kB / 0.5261 GB, free: 13.26 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001833/0.3896, allocations: 3.391 kB / 0.5261 GB, free: 13.26 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001049/0.3907, allocations: 1.196 MB / 0.5273 GB, free: 12.05 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003064/0.391, allocations: 0.6763 MB / 0.5279 GB, free: 11.35 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.247e-05/0.391, allocations: 0 / 0.5279 GB, free: 11.35 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.794e-05/0.391, allocations: 10 kB / 0.5279 GB, free: 11.34 MB / 398.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3911, allocations: 0 / 0.5279 GB, free: 11.34 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02742/0.4185, allocations: 4.434 MB / 0.5323 GB, free: 9.348 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.834/8.252, allocations: 9.391 kB / 0.5323 GB, free: 9.344 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 & /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