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.001234/0.001234, allocations: 105.6 kB / 16.4 MB, free: 6.457 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.001193/0.001193, allocations: 192.2 kB / 17.34 MB, free: 5.719 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.469/1.469, 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.2345/0.2345, allocations: 43.53 MB / 314.1 MB, free: 452 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.001516/0.001516, allocations: 73.62 kB / 441.3 MB, free: 6.16 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1296/0.1311, allocations: 57.8 MB / 499.1 MB, free: 12.29 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.00188/0.133, allocations: 0.4949 MB / 499.6 MB, free: 11.8 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003126/0.1362, allocations: 2.019 MB / 0.4899 GB, free: 9.754 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.706e-05/0.1362, allocations: 7.938 kB / 0.4899 GB, free: 9.746 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 2.25e-05/0.1363, allocations: 0 / 0.4899 GB, free: 9.746 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 8.145e-06/0.1363, allocations: 0 / 0.4899 GB, free: 9.746 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001444/0.1377, allocations: 0.4986 MB / 0.4903 GB, free: 9.246 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 6.289e-05/0.1378, allocations: 4 kB / 0.4904 GB, free: 9.242 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.845e-05/0.1379, allocations: 0 / 0.4904 GB, free: 9.242 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.912e-05/0.1379, allocations: 4 kB / 0.4904 GB, free: 9.238 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.888e-05/0.1379, allocations: 0 / 0.4904 GB, free: 9.238 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.514e-06/0.1379, allocations: 0 / 0.4904 GB, free: 9.238 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000965/0.1389, allocations: 0.6239 MB / 0.491 GB, free: 8.613 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.506e-06/0.1389, allocations: 4 kB / 0.491 GB, free: 8.609 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.88e-05/0.1389, allocations: 4 kB / 0.491 GB, free: 8.605 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005263/0.1395, allocations: 379.3 kB / 0.4913 GB, free: 8.234 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.556e-06/0.1395, allocations: 0 / 0.4913 GB, free: 8.234 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.1395, allocations: 0 / 0.4913 GB, free: 8.234 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.08e-06/0.1395, allocations: 0 / 0.4913 GB, free: 8.234 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.0004947/0.14, allocations: 417.2 kB / 0.4917 GB, free: 7.773 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.233e-05/0.1401, allocations: 11.89 kB / 0.4917 GB, free: 7.762 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.948e-05/0.1401, allocations: 34.75 kB / 0.4918 GB, free: 7.719 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.76e-05/0.1401, allocations: 4.938 kB / 0.4918 GB, free: 7.715 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001086/0.1403, allocations: 164.4 kB / 0.4919 GB, free: 7.516 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.202e-05/0.1403, allocations: 384 / 0.4919 GB, free: 7.516 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.785e-06/0.1403, allocations: 384 / 0.4919 GB, free: 7.516 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001088/0.1404, allocations: 37.83 kB / 0.492 GB, free: 7.473 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.018e-05/0.1404, allocations: 3.938 kB / 0.492 GB, free: 7.469 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.367e-06/0.1404, allocations: 8 kB / 0.492 GB, free: 7.461 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.1404, allocations: 0 / 0.492 GB, free: 7.461 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.04e-05/0.1405, allocations: 0 / 0.492 GB, free: 7.461 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002474/0.1407, allocations: 232.9 kB / 0.4922 GB, free: 7.184 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.553e-05/0.1408, allocations: 18.61 kB / 0.4922 GB, free: 7.156 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.178e-05/0.1408, allocations: 8.922 kB / 0.4922 GB, free: 7.145 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.169e-05/0.1408, allocations: 7.984 kB / 0.4922 GB, free: 7.137 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.469e-05/0.1409, allocations: 68.2 kB / 0.4923 GB, free: 7.055 MB / 382.1 MB Notification: Performance of pre-optimization done (n=2): time 1.142e-06/0.1409, allocations: 3.938 kB / 0.4923 GB, free: 7.051 MB / 382.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001921/0.1411, allocations: 63.41 kB / 0.4924 GB, free: 6.977 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.594e-05/0.1412, allocations: 85.09 kB / 0.4925 GB, free: 6.875 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.712e-05/0.1412, allocations: 89.86 kB / 0.4925 GB, free: 6.777 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.417e-05/0.1412, allocations: 25.7 kB / 0.4926 GB, free: 6.746 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.154e-05/0.1413, allocations: 80.27 kB / 0.4926 GB, free: 6.664 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.91e-05/0.1413, allocations: 11.91 kB / 0.4927 GB, free: 6.652 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.52e-05/0.1413, allocations: 13.66 kB / 0.4927 GB, free: 6.633 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001203/0.1415, allocations: 314.8 kB / 0.493 GB, free: 6.316 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.397e-05/0.1415, allocations: 4 kB / 0.493 GB, free: 6.312 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.316e-06/0.1415, allocations: 3.938 kB / 0.493 GB, free: 6.309 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.431e-05/0.1416, allocations: 68.25 kB / 0.493 GB, free: 6.227 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.639e-06/0.1416, allocations: 3.938 kB / 0.493 GB, free: 6.223 MB / 382.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.898e-05/0.1417, allocations: 67.47 kB / 0.4931 GB, free: 6.145 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.463e-05/0.1417, allocations: 33.7 kB / 0.4931 GB, free: 6.105 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.1417, allocations: 0 / 0.4931 GB, free: 6.105 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.47e-05/0.1417, allocations: 0 / 0.4931 GB, free: 6.105 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.688e-05/0.1417, allocations: 3.984 kB / 0.4931 GB, free: 6.102 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.781e-06/0.1418, allocations: 0 / 0.4931 GB, free: 6.102 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.561e-05/0.1418, allocations: 0 / 0.4931 GB, free: 6.102 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.086e-05/0.1418, allocations: 4 kB / 0.4931 GB, free: 6.098 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 9.396e-05/0.1419, allocations: 143.4 kB / 0.4933 GB, free: 5.941 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.524e-05/0.1419, allocations: 8.016 kB / 0.4933 GB, free: 5.934 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.831e-05/0.142, allocations: 7.062 kB / 0.4933 GB, free: 5.922 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.312e-06/0.142, allocations: 4 kB / 0.4933 GB, free: 5.918 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.142, allocations: 0 / 0.4933 GB, free: 5.918 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.142, allocations: 0 / 0.4933 GB, free: 5.918 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000259/0.1422, allocations: 296.3 kB / 0.4936 GB, free: 5.566 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.213e-06/0.1423, allocations: 4 kB / 0.4936 GB, free: 5.562 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.11e-06/0.1423, allocations: 0 / 0.4936 GB, free: 5.562 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.845e-06/0.1423, allocations: 0 / 0.4936 GB, free: 5.562 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.005e-06/0.1423, allocations: 0 / 0.4936 GB, free: 5.562 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.697e-06/0.1423, allocations: 8.016 kB / 0.4936 GB, free: 5.555 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.959e-06/0.1423, allocations: 4 kB / 0.4936 GB, free: 5.551 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001517/0.1425, allocations: 177.1 kB / 0.4938 GB, free: 5.355 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.162e-05/0.1425, allocations: 77.11 kB / 0.4938 GB, free: 5.262 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.417e-05/0.1425, allocations: 3.938 kB / 0.4938 GB, free: 5.258 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.062e-05/0.1426, allocations: 0 / 0.4938 GB, free: 5.258 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.385e-05/0.1426, allocations: 4 kB / 0.4938 GB, free: 5.254 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.156e-06/0.1426, allocations: 4.031 kB / 0.4939 GB, free: 5.25 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.05e-05/0.1427, allocations: 75.31 kB / 0.4939 GB, free: 5.176 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1427, allocations: 0 / 0.4939 GB, free: 5.176 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00041/0.1431, allocations: 123.9 kB / 0.494 GB, free: 5.055 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.001163/0.1443, allocations: 0.9194 MB / 0.4949 GB, free: 4.105 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001402/0.1444, allocations: 63.39 kB / 0.495 GB, free: 4.031 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.1444, allocations: 0 / 0.495 GB, free: 4.031 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 3.947e-05/0.1445, allocations: 55.47 kB / 0.4951 GB, free: 3.965 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001898/0.1447, allocations: 12.06 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.001045/0.1457, allocations: 1.199 MB / 0.4962 GB, free: 2.668 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003285/0.1461, allocations: 0.6729 MB / 0.4969 GB, free: 1.969 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 1.439e-05/0.1461, allocations: 0 / 0.4969 GB, free: 1.969 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.083e-05/0.1461, allocations: 11.44 kB / 0.4969 GB, free: 1.957 MB / 382.1 MB Notification: Performance of SimCode: time 4.21e-07/0.1461, allocations: 0 / 0.4969 GB, free: 1.957 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02474/0.1709, allocations: 4.373 MB / 0.5012 GB, free: 13.57 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.681/7.852, allocations: 11.36 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