Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Rotational.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|directInertia.inertia.phi|directInertia.inertia.w|inertia2a.phi|inertia2a.w|inertia2b.phi|inertia2b.w|inertia3a.phi|inertia3a.w|inertia3b.phi|inertia3b.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs") translateModel(ModelicaTest.Rotational.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|directInertia.inertia.phi|directInertia.inertia.w|inertia2a.phi|inertia2a.w|inertia2b.phi|inertia2b.w|inertia3a.phi|inertia3a.w|inertia3b.phi|inertia3b.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001274/0.001274, allocations: 96.06 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001498/0.001498, allocations: 204.2 kB / 17.9 MB, free: 5.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.448/1.448, allocations: 227.2 MB / 245.9 MB, free: 12.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2257/0.2257, allocations: 45.92 MB / 344 MB, free: 12.39 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004096/0.0004097, allocations: 4 kB / 417.9 MB, free: 20.97 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1502/0.1506, allocations: 63.46 MB / 481.4 MB, free: 5.496 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.GenerationOfFMUs): time 0.005839/0.1565, allocations: 4.705 MB / 486.1 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004606/0.1612, allocations: 2.221 MB / 488.3 MB, free: 14.54 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001149/0.1623, allocations: 35.75 kB / 488.3 MB, free: 14.5 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007505/0.1631, allocations: 166.8 kB / 488.5 MB, free: 14.34 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001273/0.1644, allocations: 314.9 kB / 488.8 MB, free: 14.03 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001415/0.1658, allocations: 403.2 kB / 489.2 MB, free: 13.64 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001526/0.1674, allocations: 0.7334 MB / 489.9 MB, free: 12.9 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008409/0.1682, allocations: 433.9 kB / 490.4 MB, free: 12.46 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000502/0.1687, allocations: 250.9 kB / 490.6 MB, free: 12.21 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004872/0.1693, allocations: 294.3 kB / 490.9 MB, free: 11.93 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001111/0.1694, allocations: 36 kB / 490.9 MB, free: 11.89 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002869/0.1697, allocations: 75.92 kB / 491 MB, free: 11.82 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001622/0.1698, allocations: 135.4 kB / 491.1 MB, free: 11.68 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002198/0.1701, allocations: 185.2 kB / 491.3 MB, free: 11.5 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009401/0.171, allocations: 0.9312 MB / 492.2 MB, free: 10.56 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.171, allocations: 0 / 492.2 MB, free: 10.56 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.106e-06/0.171, allocations: 3.984 kB / 492.3 MB, free: 10.56 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.975e-05/0.1711, allocations: 0 / 492.3 MB, free: 10.56 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 230 * Number of variables: 230 Notification: Performance of Generate backend data structure: time 0.002057/0.1732, allocations: 0.9706 MB / 493.2 MB, free: 9.535 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.776e-05/0.1732, allocations: 8.031 kB / 493.2 MB, free: 9.527 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003598/0.1736, allocations: 118.7 kB / 493.3 MB, free: 9.41 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000873/0.1745, allocations: 0.5394 MB / 493.9 MB, free: 8.828 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.571e-05/0.1745, allocations: 70 kB / 494 MB, free: 8.762 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001466/0.1747, allocations: 99.84 kB / 494.1 MB, free: 8.664 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001613/0.1763, allocations: 0.8697 MB / 494.9 MB, free: 7.73 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.464e-05/0.1764, allocations: 11.84 kB / 494.9 MB, free: 7.719 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.818e-05/0.1764, allocations: 36 kB / 495 MB, free: 7.684 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.126e-05/0.1765, allocations: 24 kB / 495 MB, free: 7.66 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001093/0.1776, allocations: 0.5229 MB / 495.5 MB, free: 7.137 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003563/0.1811, allocations: 3.651 MB / 499.2 MB, free: 3.332 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005151/0.1817, allocations: 223.3 kB / 499.4 MB, free: 3.102 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002302/0.1819, allocations: 247.2 kB / 499.6 MB, free: 2.805 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.619e-05/0.1819, allocations: 39.06 kB / 499.7 MB, free: 2.758 MB / 366.1 MB Notification: Performance of pre-optimization done (n=30): time 1.743e-06/0.182, allocations: 0 / 499.7 MB, free: 2.758 MB / 366.1 MB Notification: Performance of matching and sorting (n=35): time 0.002351/0.1843, allocations: 1.3 MB / 0.4892 GB, free: 1.359 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.947e-05/0.1844, allocations: 63.34 kB / 0.4893 GB, free: 1.285 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003798/0.1848, allocations: 401.8 kB / 0.4897 GB, free: 0.8867 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.722e-05/0.1848, allocations: 29.7 kB / 0.4897 GB, free: 0.8516 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002675/0.1851, allocations: 470.1 kB / 0.4901 GB, free: 392 kB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.17e-05/0.1852, allocations: 142 kB / 0.4903 GB, free: 248 kB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.572e-05/0.1852, allocations: 8 kB / 0.4903 GB, free: 240 kB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001479/0.1853, allocations: 362.8 kB / 0.4906 GB, free: 15.87 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001877/0.1855, allocations: 113.1 kB / 0.4907 GB, free: 15.76 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003038/0.1858, allocations: 310.2 kB / 0.491 GB, free: 15.37 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002472/0.1861, allocations: 164.7 kB / 0.4912 GB, free: 15.21 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.809e-06/0.1861, allocations: 4 kB / 0.4912 GB, free: 15.21 MB / 382.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0007077/0.1868, allocations: 0.513 MB / 0.4917 GB, free: 14.68 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.062e-05/0.1868, allocations: 8 kB / 0.4917 GB, free: 14.68 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.106e-05/0.1869, allocations: 8 kB / 0.4917 GB, free: 14.67 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001738/0.187, allocations: 36.84 kB / 0.4917 GB, free: 14.63 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003605/0.1874, allocations: 127.8 kB / 0.4919 GB, free: 14.5 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003559/0.1878, allocations: 0.5604 MB / 0.4924 GB, free: 13.92 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001937/0.188, allocations: 20 kB / 0.4924 GB, free: 13.9 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.146e-05/0.188, allocations: 27.94 kB / 0.4925 GB, free: 13.87 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (68): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0002983/0.1883, allocations: 228.2 kB / 0.4927 GB, free: 13.64 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.425e-05/0.1884, allocations: 51.39 kB / 0.4927 GB, free: 13.59 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005587/0.189, allocations: 342.9 kB / 0.4931 GB, free: 13.25 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.819e-06/0.189, allocations: 4 kB / 0.4931 GB, free: 13.24 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.189, allocations: 0 / 0.4931 GB, free: 13.24 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.189, allocations: 0 / 0.4931 GB, free: 13.24 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001384/0.1904, allocations: 1.054 MB / 0.4941 GB, free: 12.11 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/0.1904, allocations: 0 / 0.4941 GB, free: 12.11 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003333/0.1908, allocations: 83.89 kB / 0.4942 GB, free: 12.03 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001248/0.1909, allocations: 33 kB / 0.4942 GB, free: 12 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.326e-05/0.1909, allocations: 15.98 kB / 0.4942 GB, free: 11.98 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002964/0.1912, allocations: 0.5485 MB / 0.4947 GB, free: 11.41 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/0.1912, allocations: 0 / 0.4947 GB, free: 11.41 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007658/0.192, allocations: 0.6267 MB / 0.4954 GB, free: 10.71 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001058/0.1921, allocations: 124.4 kB / 0.4955 GB, free: 10.57 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.008e-05/0.1922, allocations: 8 kB / 0.4955 GB, free: 10.56 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000154/0.1923, allocations: 8 kB / 0.4955 GB, free: 10.55 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.467e-05/0.1924, allocations: 27.97 kB / 0.4955 GB, free: 10.53 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.374e-05/0.1924, allocations: 16 kB / 0.4955 GB, free: 10.51 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002657/0.1927, allocations: 267.1 kB / 0.4958 GB, free: 10.25 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.1927, allocations: 0 / 0.4958 GB, free: 10.25 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005283/0.1933, allocations: 124.2 kB / 0.4959 GB, free: 10.13 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 10 (directInertia.inertia.w,directInertia.torqueToAngle.phi,inertia2a.w,torqueToAngle2a.y,inertia2b.w,torqueToAngle2b.y,inertia3a.phi,inertia3a.w,inertia3b.phi,inertia3b.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001795/0.1934, allocations: 127.7 kB / 0.496 GB, free: 9.996 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006326/0.1941, allocations: 320.9 kB / 0.4963 GB, free: 9.684 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.1941, allocations: 0 / 0.4963 GB, free: 9.684 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002567/0.1944, allocations: 149 kB / 0.4965 GB, free: 9.539 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004082/0.1948, allocations: 73.94 kB / 0.4966 GB, free: 9.465 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002804/0.1976, allocations: 2.047 MB / 0.4986 GB, free: 7.371 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005866/0.1982, allocations: 0.9756 MB / 0.4995 GB, free: 6.371 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001981/0.1984, allocations: 56.55 kB / 0.4996 GB, free: 6.312 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.156e-05/0.1985, allocations: 43.42 kB / 0.4996 GB, free: 6.27 MB / 382.1 MB Notification: Performance of SimCode: time 6.51e-07/0.1985, allocations: 0 / 0.4996 GB, free: 6.27 MB / 382.1 MB Notification: Performance of Templates: time 0.009017/0.2075, allocations: 3.818 MB / 0.5033 GB, free: 2.48 MB / 382.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.sim & ./ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/GenerationOfFMUs/GenerationOfFMUs.csv","../files/ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches