Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestSpecial.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.TestSpecial,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestSpecial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestSpecial,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestSpecial",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.001356/0.001355, allocations: 105.8 kB / 16.41 MB, free: 6.465 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.00131/0.00131, allocations: 189.5 kB / 17.34 MB, free: 5.715 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.54/1.54, allocations: 205.1 MB / 223.2 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2682/0.2682, allocations: 43.52 MB / 314.1 MB, free: 460 kB / 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.002934/0.002934, allocations: 73.45 kB / 441.3 MB, free: 6.156 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1588/0.1618, allocations: 57.79 MB / 499.1 MB, free: 12.3 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.00233/0.1641, allocations: 0.5027 MB / 499.6 MB, free: 11.8 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004038/0.1682, allocations: 2.023 MB / 0.4899 GB, free: 9.75 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.603e-05/0.1683, allocations: 4 kB / 0.4899 GB, free: 9.746 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.94e-05/0.1683, allocations: 0 / 0.4899 GB, free: 9.746 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 8.055e-06/0.1683, allocations: 0 / 0.4899 GB, free: 9.746 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001773/0.1701, allocations: 0.5025 MB / 0.4904 GB, free: 9.242 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 6.757e-05/0.1702, allocations: 4 kB / 0.4904 GB, free: 9.238 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.932e-05/0.1703, allocations: 3.984 kB / 0.4904 GB, free: 9.234 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.046e-05/0.1703, allocations: 0 / 0.4904 GB, free: 9.234 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.375e-05/0.1703, allocations: 0 / 0.4904 GB, free: 9.234 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.006e-05/0.1703, allocations: 0 / 0.4904 GB, free: 9.234 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001173/0.1715, allocations: 0.624 MB / 0.491 GB, free: 8.609 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.807e-06/0.1715, allocations: 4 kB / 0.491 GB, free: 8.605 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.141e-05/0.1716, allocations: 0 / 0.491 GB, free: 8.605 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006396/0.1722, allocations: 383 kB / 0.4913 GB, free: 8.23 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.07e-06/0.1722, allocations: 0 / 0.4913 GB, free: 8.23 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.1722, allocations: 0 / 0.4913 GB, free: 8.23 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.684e-06/0.1722, allocations: 0 / 0.4913 GB, free: 8.23 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.0005768/0.1728, allocations: 412.6 kB / 0.4917 GB, free: 7.773 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.799e-05/0.1729, allocations: 11.89 kB / 0.4917 GB, free: 7.762 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.286e-05/0.173, allocations: 30.75 kB / 0.4918 GB, free: 7.723 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.871e-05/0.173, allocations: 0.9375 kB / 0.4918 GB, free: 7.723 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001774/0.1732, allocations: 172.3 kB / 0.4919 GB, free: 7.516 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.814e-05/0.1732, allocations: 4.375 kB / 0.4919 GB, free: 7.512 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.288e-06/0.1732, allocations: 384 / 0.4919 GB, free: 7.512 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001516/0.1734, allocations: 37.83 kB / 0.492 GB, free: 7.469 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.068e-05/0.1734, allocations: 0 / 0.492 GB, free: 7.469 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.446e-06/0.1734, allocations: 4 kB / 0.492 GB, free: 7.465 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.282e-06/0.1734, allocations: 0 / 0.492 GB, free: 7.465 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.062e-05/0.1734, allocations: 7.938 kB / 0.492 GB, free: 7.457 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003328/0.1738, allocations: 232.9 kB / 0.4922 GB, free: 7.18 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.192e-05/0.1739, allocations: 22.61 kB / 0.4922 GB, free: 7.148 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.477e-05/0.1739, allocations: 16.91 kB / 0.4923 GB, free: 7.129 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.426e-06/0.1739, allocations: 7.938 kB / 0.4923 GB, free: 7.121 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.33e-05/0.174, allocations: 56.27 kB / 0.4923 GB, free: 7.051 MB / 382.1 MB Notification: Performance of pre-optimization done (n=2): time 1.452e-06/0.174, allocations: 0 / 0.4923 GB, free: 7.051 MB / 382.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002492/0.1742, allocations: 71.34 kB / 0.4924 GB, free: 6.969 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001029/0.1744, allocations: 81.09 kB / 0.4925 GB, free: 6.871 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.62e-05/0.1744, allocations: 93.86 kB / 0.4926 GB, free: 6.77 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.923e-05/0.1745, allocations: 25.7 kB / 0.4926 GB, free: 6.738 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.108e-05/0.1745, allocations: 80.27 kB / 0.4927 GB, free: 6.656 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.787e-05/0.1746, allocations: 7.953 kB / 0.4927 GB, free: 6.648 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.247e-05/0.1746, allocations: 13.72 kB / 0.4927 GB, free: 6.629 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001853/0.1748, allocations: 314.8 kB / 0.493 GB, free: 6.312 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.317e-05/0.1748, allocations: 0 / 0.493 GB, free: 6.312 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.109e-05/0.1748, allocations: 4 kB / 0.493 GB, free: 6.309 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.571e-05/0.1749, allocations: 76.12 kB / 0.4931 GB, free: 6.219 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.228e-06/0.1749, allocations: 3.938 kB / 0.4931 GB, free: 6.215 MB / 382.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.823e-05/0.175, allocations: 67.47 kB / 0.4931 GB, free: 6.137 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.93e-05/0.1751, allocations: 29.7 kB / 0.4931 GB, free: 6.102 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.405e-06/0.1751, allocations: 3.984 kB / 0.4932 GB, free: 6.098 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.497e-05/0.1751, allocations: 0 / 0.4932 GB, free: 6.098 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.807e-05/0.1751, allocations: 0 / 0.4932 GB, free: 6.098 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.748e-06/0.1751, allocations: 4 kB / 0.4932 GB, free: 6.094 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.657e-05/0.1752, allocations: 0 / 0.4932 GB, free: 6.094 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.344e-06/0.1752, allocations: 0 / 0.4932 GB, free: 6.094 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.0001519/0.1753, allocations: 147.4 kB / 0.4933 GB, free: 5.934 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.067e-05/0.1754, allocations: 4.031 kB / 0.4933 GB, free: 5.93 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.634e-05/0.1754, allocations: 3.125 kB / 0.4933 GB, free: 5.922 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.402e-06/0.1754, allocations: 0 / 0.4933 GB, free: 5.922 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.1754, allocations: 0 / 0.4933 GB, free: 5.922 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.955e-06/0.1754, allocations: 0 / 0.4933 GB, free: 5.922 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003449/0.1758, allocations: 304.2 kB / 0.4936 GB, free: 5.562 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.1758, allocations: 0 / 0.4936 GB, free: 5.562 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.657e-06/0.1758, allocations: 0 / 0.4936 GB, free: 5.562 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.212e-06/0.1758, allocations: 0 / 0.4936 GB, free: 5.562 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.207e-05/0.1758, allocations: 4 kB / 0.4936 GB, free: 5.559 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.1758, allocations: 4.031 kB / 0.4936 GB, free: 5.555 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.1758, allocations: 0 / 0.4936 GB, free: 5.555 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001899/0.176, allocations: 177.1 kB / 0.4938 GB, free: 5.359 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.231e-05/0.1761, allocations: 81.11 kB / 0.4938 GB, free: 5.262 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.637e-05/0.1761, allocations: 4 kB / 0.4939 GB, free: 5.258 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.92e-05/0.1762, allocations: 0 / 0.4939 GB, free: 5.258 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.074e-05/0.1762, allocations: 0 / 0.4939 GB, free: 5.258 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.488e-06/0.1762, allocations: 12 kB / 0.4939 GB, free: 5.246 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.045e-05/0.1763, allocations: 79.31 kB / 0.4939 GB, free: 5.168 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1763, allocations: 0 / 0.4939 GB, free: 5.168 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004513/0.1768, allocations: 127.5 kB / 0.4941 GB, free: 5.043 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.001429/0.1782, allocations: 0.9074 MB / 0.4949 GB, free: 4.105 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001603/0.1784, allocations: 63.34 kB / 0.495 GB, free: 4.031 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.846e-06/0.1784, allocations: 0 / 0.495 GB, free: 4.031 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 5.602e-05/0.1784, allocations: 63.41 kB / 0.4951 GB, free: 3.957 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001976/0.1786, allocations: 4.125 kB / 0.4951 GB, free: 3.953 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001232/0.1799, allocations: 1.207 MB / 0.4962 GB, free: 2.66 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003952/0.1803, allocations: 0.669 MB / 0.4969 GB, free: 1.965 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 1.339e-05/0.1803, allocations: 4 kB / 0.4969 GB, free: 1.961 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.235e-05/0.1803, allocations: 7.438 kB / 0.4969 GB, free: 1.953 MB / 382.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1803, allocations: 0 / 0.4969 GB, free: 1.953 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03042/0.2108, allocations: 4.378 MB / 0.5012 GB, free: 13.57 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.26/8.471, allocations: 3.984 kB / 0.5012 GB, free: 13.57 MB / 398.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestSpecial.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestSpecial.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestSpecial.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestSpecial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestSpecial_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestSpecial_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestSpecial.fmu > ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestSpecial.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestSpecial_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Math/Random/TestSpecial/TestSpecial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestSpecial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches