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.000895/0.0008951, allocations: 102.2 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009958/0.0009961, allocations: 182.9 kB / 16.92 MB, free: 6.918 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.589/1.589, allocations: 205.4 MB / 223.1 MB, free: 5.535 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.3999/0.3999, allocations: 43.58 MB / 315 MB, free: 8.785 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.0005571/0.0005567, allocations: 12 kB / 384.7 MB, free: 7.559 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1453/0.1459, allocations: 58.88 MB / 443.5 MB, free: 12.58 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.0008035/0.1467, allocations: 240.4 kB / 443.8 MB, free: 12.34 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00337/0.1501, allocations: 2.102 MB / 445.9 MB, free: 10.22 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.122e-05/0.1502, allocations: 0 / 445.9 MB, free: 10.22 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.429e-05/0.1502, allocations: 0 / 445.9 MB, free: 10.22 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 4.989e-06/0.1502, allocations: 0 / 445.9 MB, free: 10.22 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001225/0.1514, allocations: 427.1 kB / 446.3 MB, free: 9.801 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 3.426e-05/0.1515, allocations: 0 / 446.3 MB, free: 9.801 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.687e-05/0.1515, allocations: 4 kB / 446.3 MB, free: 9.797 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.84e-05/0.1515, allocations: 0 / 446.3 MB, free: 9.797 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.344e-05/0.1516, allocations: 7.938 kB / 446.3 MB, free: 9.789 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.418e-06/0.1516, allocations: 4 kB / 446.3 MB, free: 9.785 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009793/0.1526, allocations: 0.6433 MB / 447 MB, free: 9.141 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.915e-06/0.1526, allocations: 0 / 447 MB, free: 9.141 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.39e-05/0.1526, allocations: 25.7 kB / 447 MB, free: 9.109 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005723/0.1532, allocations: 387.4 kB / 447.4 MB, free: 8.73 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.247e-06/0.1532, allocations: 3.938 kB / 447.4 MB, free: 8.727 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.1533, allocations: 4 kB / 447.4 MB, free: 8.723 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.878e-06/0.1533, allocations: 4 kB / 447.4 MB, free: 8.719 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.0005192/0.1538, allocations: 409.2 kB / 447.8 MB, free: 8.266 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.627e-05/0.1538, allocations: 12.03 kB / 447.8 MB, free: 8.254 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.229e-05/0.1539, allocations: 34.66 kB / 447.8 MB, free: 8.211 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.387e-05/0.154, allocations: 0.9375 kB / 447.8 MB, free: 8.211 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001191/0.1541, allocations: 164.4 kB / 448 MB, free: 8.012 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.725e-05/0.1541, allocations: 4.375 kB / 448 MB, free: 8.008 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.022e-05/0.1541, allocations: 4.375 kB / 448 MB, free: 8.004 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001396/0.1543, allocations: 41.81 kB / 448 MB, free: 7.957 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.746e-06/0.1543, allocations: 0 / 448 MB, free: 7.957 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.446e-06/0.1543, allocations: 0 / 448 MB, free: 7.957 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.98e-06/0.1543, allocations: 0 / 448 MB, free: 7.957 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.461e-05/0.1543, allocations: 3.938 kB / 448 MB, free: 7.953 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002877/0.1546, allocations: 232.9 kB / 448.3 MB, free: 7.676 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.198e-05/0.1547, allocations: 26.55 kB / 448.3 MB, free: 7.641 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.043e-05/0.1547, allocations: 16.92 kB / 448.3 MB, free: 7.621 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.037e-06/0.1548, allocations: 0 / 448.3 MB, free: 7.621 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.79e-05/0.1548, allocations: 60.25 kB / 448.4 MB, free: 7.547 MB / 382.1 MB Notification: Performance of pre-optimization done (n=2): time 2.515e-06/0.1548, allocations: 0 / 448.4 MB, free: 7.547 MB / 382.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002453/0.1551, allocations: 71.34 kB / 448.4 MB, free: 7.465 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.489e-05/0.1551, allocations: 77.11 kB / 448.5 MB, free: 7.371 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.397e-05/0.1552, allocations: 93.97 kB / 448.6 MB, free: 7.27 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.566e-05/0.1552, allocations: 29.7 kB / 448.6 MB, free: 7.234 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.352e-05/0.1553, allocations: 80.14 kB / 448.7 MB, free: 7.152 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.219e-05/0.1553, allocations: 7.906 kB / 448.7 MB, free: 7.145 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.126e-05/0.1553, allocations: 9.719 kB / 448.7 MB, free: 7.129 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000129/0.1555, allocations: 314.8 kB / 449 MB, free: 6.812 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.154e-05/0.1555, allocations: 4 kB / 449 MB, free: 6.809 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.35e-06/0.1555, allocations: 0 / 449 MB, free: 6.809 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.907e-05/0.1556, allocations: 76.25 kB / 449.1 MB, free: 6.719 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.507e-06/0.1556, allocations: 3.938 kB / 449.1 MB, free: 6.715 MB / 382.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.215e-05/0.1556, allocations: 63.41 kB / 449.2 MB, free: 6.641 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.82e-05/0.1557, allocations: 29.7 kB / 449.2 MB, free: 6.605 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.1557, allocations: 4 kB / 449.2 MB, free: 6.602 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.218e-05/0.1557, allocations: 0 / 449.2 MB, free: 6.602 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.778e-05/0.1557, allocations: 4 kB / 449.2 MB, free: 6.598 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.601e-06/0.1557, allocations: 0 / 449.2 MB, free: 6.598 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.779e-05/0.1558, allocations: 3.984 kB / 449.2 MB, free: 6.594 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.662e-06/0.1558, allocations: 0 / 449.2 MB, free: 6.594 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.0001058/0.1559, allocations: 147.5 kB / 449.4 MB, free: 6.434 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.19e-05/0.1559, allocations: 3.938 kB / 449.4 MB, free: 6.43 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.74e-05/0.1559, allocations: 3.125 kB / 449.4 MB, free: 6.426 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.182e-06/0.156, allocations: 0 / 449.4 MB, free: 6.426 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.156, allocations: 0 / 449.4 MB, free: 6.426 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.156, allocations: 0 / 449.4 MB, free: 6.426 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002662/0.1562, allocations: 304.2 kB / 449.7 MB, free: 6.066 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.1563, allocations: 0 / 449.7 MB, free: 6.066 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.387e-06/0.1563, allocations: 32 / 449.7 MB, free: 6.066 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.1563, allocations: 4 kB / 449.7 MB, free: 6.062 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.018e-05/0.1563, allocations: 4 kB / 449.7 MB, free: 6.059 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.1563, allocations: 3.938 kB / 449.7 MB, free: 6.055 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.1563, allocations: 0 / 449.7 MB, free: 6.055 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001271/0.1564, allocations: 173.1 kB / 449.8 MB, free: 5.863 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.674e-05/0.1565, allocations: 77.11 kB / 449.9 MB, free: 5.77 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.45e-05/0.1565, allocations: 4 kB / 449.9 MB, free: 5.766 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.618e-05/0.1566, allocations: 4.031 kB / 449.9 MB, free: 5.762 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.648e-05/0.1566, allocations: 0 / 449.9 MB, free: 5.762 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.715e-06/0.1566, allocations: 0 / 449.9 MB, free: 5.762 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.536e-05/0.1566, allocations: 75.28 kB / 450 MB, free: 5.688 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1566, allocations: 4 kB / 450 MB, free: 5.684 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004445/0.1571, allocations: 131.8 kB / 450.1 MB, free: 5.555 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.001181/0.1583, allocations: 0.9089 MB / 451 MB, free: 4.617 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001116/0.1584, allocations: 63.34 kB / 451.1 MB, free: 4.543 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.1584, allocations: 0 / 451.1 MB, free: 4.543 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 4.097e-05/0.1585, allocations: 59.41 kB / 451.2 MB, free: 4.473 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001938/0.1587, allocations: 8.156 kB / 451.2 MB, free: 4.465 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001142/0.1598, allocations: 1.197 MB / 452.4 MB, free: 3.184 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000306/0.1601, allocations: 0.677 MB / 453 MB, free: 2.48 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 1.263e-05/0.1602, allocations: 0 / 453 MB, free: 2.48 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.011e-05/0.1602, allocations: 7.438 kB / 453.1 MB, free: 2.477 MB / 382.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1602, allocations: 0 / 453.1 MB, free: 2.477 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2436/0.4038, allocations: 4.193 MB / 457.2 MB, free: 44.62 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001667/0.404, allocations: 237.5 kB / 457.5 MB, free: 44.37 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.048/2.452, allocations: 3.281 kB / 457.5 MB, free: 44.37 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