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.0009038/0.0009038, allocations: 95.34 kB / 17.35 MB, free: 6.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.0009373/0.0009373, allocations: 173.8 kB / 18.25 MB, free: 5.504 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.329/1.329, allocations: 223.3 MB / 242.3 MB, free: 220 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.198/0.198, allocations: 44.25 MB / 337.7 MB, free: 2.656 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002952/0.0002953, allocations: 8 kB / 410.4 MB, free: 27.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1125/0.1128, allocations: 61.92 MB / 472.4 MB, free: 13.25 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.0005387/0.1134, allocations: 226.9 kB / 472.6 MB, free: 13.03 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002534/0.1159, allocations: 2.068 MB / 474.6 MB, free: 10.94 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.588e-06/0.1159, allocations: 4 kB / 474.7 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.189e-05/0.1159, allocations: 0 / 474.7 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.038e-06/0.116, allocations: 3.938 kB / 474.7 MB, free: 10.93 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.001104/0.1171, allocations: 422.5 kB / 475.1 MB, free: 10.52 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 2.449e-05/0.1171, allocations: 0 / 475.1 MB, free: 10.52 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.572e-05/0.1171, allocations: 7.984 kB / 475.1 MB, free: 10.51 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.532e-05/0.1172, allocations: 4 kB / 475.1 MB, free: 10.51 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.499e-05/0.1172, allocations: 0 / 475.1 MB, free: 10.51 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.37e-06/0.1172, allocations: 0 / 475.1 MB, free: 10.51 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008478/0.1181, allocations: 0.6394 MB / 475.7 MB, free: 9.867 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.753e-06/0.1181, allocations: 0 / 475.7 MB, free: 9.867 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.011e-05/0.1181, allocations: 29.7 kB / 475.8 MB, free: 9.832 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004936/0.1186, allocations: 399.1 kB / 476.1 MB, free: 9.441 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.1186, allocations: 0 / 476.1 MB, free: 9.441 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1186, allocations: 0 / 476.1 MB, free: 9.441 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.356e-06/0.1186, allocations: 4 kB / 476.1 MB, free: 9.438 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.0003496/0.119, allocations: 409.5 kB / 476.5 MB, free: 8.984 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.619e-05/0.119, allocations: 11.97 kB / 476.6 MB, free: 8.973 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.624e-05/0.1191, allocations: 30.75 kB / 476.6 MB, free: 8.934 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.849e-05/0.1191, allocations: 0.9375 kB / 476.6 MB, free: 8.934 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.129e-05/0.1192, allocations: 164.4 kB / 476.7 MB, free: 8.734 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.031e-05/0.1192, allocations: 384 / 476.7 MB, free: 8.734 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.412e-06/0.1192, allocations: 384 / 476.7 MB, free: 8.734 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.705e-05/0.1193, allocations: 49.75 kB / 476.8 MB, free: 8.68 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.36e-06/0.1193, allocations: 0 / 476.8 MB, free: 8.68 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.943e-06/0.1193, allocations: 0 / 476.8 MB, free: 8.68 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.007e-06/0.1193, allocations: 0 / 476.8 MB, free: 8.68 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.864e-05/0.1194, allocations: 4 kB / 476.8 MB, free: 8.676 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002026/0.1196, allocations: 228.9 kB / 477 MB, free: 8.402 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.785e-05/0.1196, allocations: 26.52 kB / 477 MB, free: 8.367 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.94e-05/0.1197, allocations: 12.92 kB / 477.1 MB, free: 8.352 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.304e-06/0.1197, allocations: 0 / 477.1 MB, free: 8.352 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.814e-05/0.1197, allocations: 60.27 kB / 477.1 MB, free: 8.277 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 2.384e-06/0.1197, allocations: 3.984 kB / 477.1 MB, free: 8.273 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001583/0.1199, allocations: 67.39 kB / 477.2 MB, free: 8.195 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.536e-05/0.1199, allocations: 77.11 kB / 477.3 MB, free: 8.102 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.694e-05/0.12, allocations: 97.86 kB / 477.4 MB, free: 7.996 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.221e-05/0.12, allocations: 29.83 kB / 477.4 MB, free: 7.961 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.723e-05/0.12, allocations: 80.14 kB / 477.5 MB, free: 7.879 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.884e-05/0.1201, allocations: 11.83 kB / 477.5 MB, free: 7.867 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.023e-05/0.1201, allocations: 9.719 kB / 477.5 MB, free: 7.852 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.044e-05/0.1202, allocations: 310.8 kB / 477.8 MB, free: 7.539 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.931e-05/0.1202, allocations: 4 kB / 477.8 MB, free: 7.535 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.49e-06/0.1202, allocations: 0 / 477.8 MB, free: 7.535 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.572e-05/0.1203, allocations: 68.27 kB / 477.9 MB, free: 7.453 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.1203, allocations: 8 kB / 477.9 MB, free: 7.445 MB / 350.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.01e-05/0.1204, allocations: 67.39 kB / 477.9 MB, free: 7.367 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.677e-05/0.1204, allocations: 32.2 kB / 478 MB, free: 7.332 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.727e-06/0.1204, allocations: 4 kB / 478 MB, free: 7.328 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.566e-06/0.1204, allocations: 0 / 478 MB, free: 7.328 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.308e-05/0.1204, allocations: 0 / 478 MB, free: 7.328 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.857e-06/0.1204, allocations: 7.875 kB / 478 MB, free: 7.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.668e-05/0.1205, allocations: 0 / 478 MB, free: 7.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.372e-06/0.1205, allocations: 3.938 kB / 478 MB, free: 7.316 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.642e-05/0.1206, allocations: 147.5 kB / 478.1 MB, free: 7.156 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.075e-05/0.1206, allocations: 0 / 478.1 MB, free: 7.156 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.214e-05/0.1206, allocations: 11.08 kB / 478.1 MB, free: 7.145 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.1206, allocations: 4 kB / 478.1 MB, free: 7.141 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.1206, allocations: 0 / 478.1 MB, free: 7.141 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.006e-06/0.1206, allocations: 0 / 478.1 MB, free: 7.141 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002322/0.1209, allocations: 292.3 kB / 478.4 MB, free: 6.793 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.1209, allocations: 0 / 478.4 MB, free: 6.793 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.41e-06/0.1209, allocations: 4 kB / 478.4 MB, free: 6.789 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.146e-06/0.1209, allocations: 8.016 kB / 478.4 MB, free: 6.781 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.975e-06/0.1209, allocations: 4 kB / 478.4 MB, free: 6.777 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.705e-06/0.1209, allocations: 3.938 kB / 478.4 MB, free: 6.773 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.1209, allocations: 0 / 478.4 MB, free: 6.773 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001273/0.1211, allocations: 177.1 kB / 478.6 MB, free: 6.578 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.342e-05/0.1211, allocations: 77.11 kB / 478.7 MB, free: 6.484 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.125e-05/0.1211, allocations: 0 / 478.7 MB, free: 6.484 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.181e-05/0.1212, allocations: 4.031 kB / 478.7 MB, free: 6.48 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.344e-05/0.1212, allocations: 4 kB / 478.7 MB, free: 6.477 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.655e-06/0.1212, allocations: 4 kB / 478.7 MB, free: 6.473 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.012e-05/0.1212, allocations: 75.28 kB / 478.8 MB, free: 6.398 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1212, allocations: 0 / 478.8 MB, free: 6.398 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000402/0.1216, allocations: 135.8 kB / 478.9 MB, free: 6.266 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.0009931/0.1226, allocations: 0.8958 MB / 479.8 MB, free: 5.344 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.586e-05/0.1228, allocations: 67.39 kB / 479.9 MB, free: 5.266 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.1228, allocations: 0 / 479.9 MB, free: 5.266 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.365e-05/0.1228, allocations: 59.41 kB / 479.9 MB, free: 5.195 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000189/0.123, allocations: 9.062 kB / 479.9 MB, free: 5.188 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000845/0.1239, allocations: 1.193 MB / 481.1 MB, free: 3.906 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002384/0.1241, allocations: 0.6731 MB / 481.8 MB, free: 3.207 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.284e-05/0.1241, allocations: 0 / 481.8 MB, free: 3.207 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.954e-05/0.1241, allocations: 11.44 kB / 481.8 MB, free: 3.195 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1242, allocations: 0 / 481.8 MB, free: 3.195 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01563/0.1398, allocations: 4.207 MB / 486 MB, free: 15.11 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002242/0.14, allocations: 239.6 kB / 486.3 MB, free: 14.85 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.87/2.01, allocations: 0 / 486.3 MB, free: 14.85 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