Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_ModelicaTest_Math_Random_TestDistributions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestDistributions,fileNamePrefix="ModelicaTest_3_2_3_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.001212/0.001212, allocations: 105.8 kB / 15.98 MB, free: 5.867 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.001399/0.001398, allocations: 195.3 kB / 16.91 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.488/1.488, allocations: 205.1 MB / 222.8 MB, free: 4.551 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4278/0.4278, allocations: 43.5 MB / 313.6 MB, free: 8.66 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001921/0.001921, allocations: 63.91 kB / 382.3 MB, free: 8.516 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1839/0.1858, allocations: 57.78 MB / 440.1 MB, free: 14.63 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.00248/0.1884, allocations: 0.5659 MB / 440.7 MB, free: 14.06 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003992/0.1925, allocations: 2.067 MB / 442.7 MB, free: 11.97 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.495e-05/0.1925, allocations: 0 / 442.7 MB, free: 11.97 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 2.875e-05/0.1926, allocations: 3.938 kB / 442.7 MB, free: 11.97 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 8.165e-06/0.1926, allocations: 0 / 442.7 MB, free: 11.97 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002352/0.195, allocations: 459.1 kB / 443.2 MB, free: 11.52 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 7.664e-05/0.1951, allocations: 8 kB / 443.2 MB, free: 11.51 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.585e-05/0.1951, allocations: 0 / 443.2 MB, free: 11.51 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.899e-05/0.1952, allocations: 11.92 kB / 443.2 MB, free: 11.5 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.164e-05/0.1952, allocations: 4 kB / 443.2 MB, free: 11.5 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.107e-06/0.1952, allocations: 0 / 443.2 MB, free: 11.5 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001473/0.1967, allocations: 0.6355 MB / 443.8 MB, free: 10.86 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.288e-05/0.1968, allocations: 4 kB / 443.8 MB, free: 10.86 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.74e-05/0.1968, allocations: 7.984 kB / 443.9 MB, free: 10.85 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001288/0.1981, allocations: 391.4 kB / 444.2 MB, free: 10.46 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.202e-06/0.1981, allocations: 0 / 444.2 MB, free: 10.46 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.487e-06/0.1981, allocations: 0 / 444.2 MB, free: 10.46 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.106e-05/0.1981, allocations: 0 / 444.2 MB, free: 10.46 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.0009234/0.1991, allocations: 417.2 kB / 444.6 MB, free: 10 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.17e-05/0.1992, allocations: 11.89 kB / 444.7 MB, free: 9.992 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001002/0.1993, allocations: 42.64 kB / 444.7 MB, free: 9.941 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.027e-05/0.1993, allocations: 4.938 kB / 444.7 MB, free: 9.938 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001575/0.1995, allocations: 160.4 kB / 444.9 MB, free: 9.742 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.61e-05/0.1995, allocations: 4.375 kB / 444.9 MB, free: 9.738 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.43e-05/0.1995, allocations: 384 / 444.9 MB, free: 9.738 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001513/0.1997, allocations: 37.83 kB / 444.9 MB, free: 9.695 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.771e-05/0.1997, allocations: 0 / 444.9 MB, free: 9.695 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.428e-05/0.1997, allocations: 3.938 kB / 444.9 MB, free: 9.691 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.365e-06/0.1997, allocations: 0 / 444.9 MB, free: 9.691 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.022e-05/0.1998, allocations: 11.92 kB / 444.9 MB, free: 9.68 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004106/0.2002, allocations: 240.9 kB / 445.2 MB, free: 9.395 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.809e-05/0.2003, allocations: 22.56 kB / 445.2 MB, free: 9.363 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.985e-05/0.2004, allocations: 8.922 kB / 445.2 MB, free: 9.352 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.502e-05/0.2004, allocations: 0 / 445.2 MB, free: 9.352 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.284e-05/0.2005, allocations: 60.27 kB / 445.2 MB, free: 9.277 MB / 382.1 MB Notification: Performance of pre-optimization done (n=2): time 1.143e-06/0.2005, allocations: 4 kB / 445.2 MB, free: 9.273 MB / 382.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002964/0.2008, allocations: 71.33 kB / 445.3 MB, free: 9.191 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.838e-05/0.2009, allocations: 81.11 kB / 445.4 MB, free: 9.094 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.897e-05/0.2009, allocations: 93.86 kB / 445.5 MB, free: 8.992 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.756e-05/0.201, allocations: 29.64 kB / 445.5 MB, free: 8.957 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.776e-05/0.201, allocations: 80.14 kB / 445.6 MB, free: 8.875 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.112e-05/0.2011, allocations: 3.906 kB / 445.6 MB, free: 8.871 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.613e-05/0.2011, allocations: 13.72 kB / 445.6 MB, free: 8.852 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001946/0.2013, allocations: 319 kB / 445.9 MB, free: 8.531 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.591e-05/0.2013, allocations: 3.984 kB / 445.9 MB, free: 8.527 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.011e-05/0.2013, allocations: 4 kB / 445.9 MB, free: 8.523 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.886e-05/0.2014, allocations: 64.2 kB / 446 MB, free: 8.445 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.18e-06/0.2014, allocations: 3.938 kB / 446 MB, free: 8.441 MB / 382.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.607e-05/0.2015, allocations: 67.41 kB / 446.1 MB, free: 8.363 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.624e-05/0.2016, allocations: 33.69 kB / 446.1 MB, free: 8.324 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.364e-06/0.2016, allocations: 0 / 446.1 MB, free: 8.324 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.516e-05/0.2016, allocations: 4.094 kB / 446.1 MB, free: 8.32 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.856e-05/0.2016, allocations: 0 / 446.1 MB, free: 8.32 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.351e-06/0.2017, allocations: 0 / 446.1 MB, free: 8.32 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.245e-05/0.2017, allocations: 4 kB / 446.1 MB, free: 8.316 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.554e-06/0.2017, allocations: 0 / 446.1 MB, free: 8.316 MB / 382.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.0001038/0.2018, allocations: 139.5 kB / 446.2 MB, free: 8.164 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.515e-05/0.2018, allocations: 4 kB / 446.2 MB, free: 8.16 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.935e-05/0.2019, allocations: 3.125 kB / 446.2 MB, free: 8.156 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.2019, allocations: 3.984 kB / 446.3 MB, free: 8.152 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.179e-06/0.2019, allocations: 4 kB / 446.3 MB, free: 8.148 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.444e-06/0.2019, allocations: 0 / 446.3 MB, free: 8.148 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002962/0.2022, allocations: 300.2 kB / 446.5 MB, free: 7.793 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.2022, allocations: 3.938 kB / 446.6 MB, free: 7.789 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.938e-06/0.2022, allocations: 0 / 446.6 MB, free: 7.789 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.393e-06/0.2022, allocations: 0 / 446.6 MB, free: 7.789 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.265e-06/0.2022, allocations: 0 / 446.6 MB, free: 7.789 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.699e-06/0.2022, allocations: 4 kB / 446.6 MB, free: 7.785 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.2022, allocations: 4 kB / 446.6 MB, free: 7.781 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002038/0.2025, allocations: 177.2 kB / 446.7 MB, free: 7.586 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.883e-05/0.2025, allocations: 77.11 kB / 446.8 MB, free: 7.492 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.531e-05/0.2025, allocations: 0 / 446.8 MB, free: 7.492 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.844e-05/0.2026, allocations: 7.984 kB / 446.8 MB, free: 7.484 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.273e-05/0.2026, allocations: 0 / 446.8 MB, free: 7.484 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.866e-06/0.2026, allocations: 0 / 446.8 MB, free: 7.484 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.721e-05/0.2027, allocations: 75.28 kB / 446.9 MB, free: 7.41 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2027, allocations: 0 / 446.9 MB, free: 7.41 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006489/0.2033, allocations: 131.9 kB / 447 MB, free: 7.281 MB / 382.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.001297/0.2046, allocations: 0.9164 MB / 447.9 MB, free: 6.34 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001208/0.2048, allocations: 63.34 kB / 448 MB, free: 6.266 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.2048, allocations: 0 / 448 MB, free: 6.266 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 4.596e-05/0.2048, allocations: 63.39 kB / 448.1 MB, free: 6.191 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002017/0.205, allocations: 7.938 kB / 448.1 MB, free: 6.184 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001158/0.2062, allocations: 1.199 MB / 449.3 MB, free: 4.898 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004614/0.2067, allocations: 0.6729 MB / 449.9 MB, free: 4.199 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 1.907e-05/0.2067, allocations: 0 / 449.9 MB, free: 4.199 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.208e-05/0.2067, allocations: 11.5 kB / 450 MB, free: 4.188 MB / 382.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2067, allocations: 0 / 450 MB, free: 4.188 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3628/0.5696, allocations: 4.312 MB / 454.3 MB, free: 48.98 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002865/0.5699, allocations: 234.9 kB / 454.5 MB, free: 48.73 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.238/2.808, allocations: 1.094 kB / 454.5 MB, free: 48.73 MB / 382.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestDistributions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestDistributions.fmu > ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Math/Random/TestDistributions/TestDistributions.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches