Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.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: translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001649/0.001649, allocations: 115.7 kB / 17.08 MB, free: 6.012 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.001923/0.001923, allocations: 194.4 kB / 18.01 MB, free: 5.094 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.786/2.786, allocations: 205.1 MB / 223.9 MB, free: 12.25 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.4014/0.4014, allocations: 43.52 MB / 314.8 MB, free: 468 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.002868/0.002868, allocations: 67.91 kB / 442.5 MB, free: 5.699 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1646/0.1675, allocations: 57.78 MB / 0.4885 GB, free: 11.84 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.004328/0.1718, allocations: 1.9 MB / 0.4904 GB, free: 9.934 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001245/0.1731, allocations: 0.5463 MB / 0.4909 GB, free: 9.379 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001777/0.1734, allocations: 4 kB / 0.4909 GB, free: 9.375 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001862/0.1736, allocations: 15.8 kB / 0.4909 GB, free: 9.359 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001778/0.1738, allocations: 47.62 kB / 0.491 GB, free: 9.312 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000261/0.174, allocations: 31.97 kB / 0.491 GB, free: 9.281 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002329/0.1743, allocations: 147.2 kB / 0.4911 GB, free: 9.137 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002114/0.1745, allocations: 69.56 kB / 0.4912 GB, free: 9.066 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001333/0.1746, allocations: 59.78 kB / 0.4913 GB, free: 9.008 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001305/0.1748, allocations: 67.69 kB / 0.4913 GB, free: 8.941 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.387e-05/0.1748, allocations: 12 kB / 0.4913 GB, free: 8.93 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.118e-05/0.1749, allocations: 12 kB / 0.4914 GB, free: 8.918 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.657e-05/0.1749, allocations: 27.92 kB / 0.4914 GB, free: 8.891 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 8.514e-05/0.175, allocations: 63.67 kB / 0.4914 GB, free: 8.828 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002403/0.1752, allocations: 151.4 kB / 0.4916 GB, free: 8.68 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.681e-06/0.1753, allocations: 0 / 0.4916 GB, free: 8.68 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.326e-06/0.1753, allocations: 0 / 0.4916 GB, free: 8.68 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.04e-05/0.1753, allocations: 7.922 kB / 0.4916 GB, free: 8.672 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.000633/0.1759, allocations: 439 kB / 0.492 GB, free: 8.195 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.508e-05/0.176, allocations: 11.89 kB / 0.492 GB, free: 8.184 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.332e-05/0.176, allocations: 16.75 kB / 0.492 GB, free: 8.168 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003387/0.1764, allocations: 208.1 kB / 0.4922 GB, free: 7.926 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.981e-05/0.1764, allocations: 12.38 kB / 0.4922 GB, free: 7.914 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.594e-05/0.1765, allocations: 12.38 kB / 0.4923 GB, free: 7.902 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002667/0.1767, allocations: 129.7 kB / 0.4924 GB, free: 7.77 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.661e-05/0.1768, allocations: 4 kB / 0.4924 GB, free: 7.766 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.731e-05/0.1768, allocations: 8 kB / 0.4924 GB, free: 7.758 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.304e-06/0.1768, allocations: 4 kB / 0.4924 GB, free: 7.754 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001895/0.177, allocations: 79.95 kB / 0.4925 GB, free: 7.676 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007463/0.1778, allocations: 464.2 kB / 0.4929 GB, free: 7.172 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002288/0.178, allocations: 122.4 kB / 0.493 GB, free: 7.043 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001267/0.1781, allocations: 72.75 kB / 0.4931 GB, free: 6.969 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.054e-05/0.1782, allocations: 0 / 0.4931 GB, free: 6.969 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.076e-05/0.1782, allocations: 30.56 kB / 0.4931 GB, free: 6.93 MB / 382.1 MB Notification: Performance of pre-optimization done (n=13): time 1.342e-06/0.1782, allocations: 0 / 0.4931 GB, free: 6.93 MB / 382.1 MB Notification: Performance of matching and sorting (n=19): time 0.001583/0.1798, allocations: 0.8056 MB / 0.4939 GB, free: 6.031 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.226e-05/0.1799, allocations: 51.41 kB / 0.494 GB, free: 5.969 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001406/0.18, allocations: 138.2 kB / 0.4941 GB, free: 5.82 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.303e-05/0.18, allocations: 29.7 kB / 0.4941 GB, free: 5.785 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.037e-05/0.1801, allocations: 108.3 kB / 0.4942 GB, free: 5.676 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.204e-05/0.1802, allocations: 78.94 kB / 0.4943 GB, free: 5.598 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.458e-05/0.1803, allocations: 41.64 kB / 0.4943 GB, free: 5.551 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001311/0.1804, allocations: 322.8 kB / 0.4947 GB, free: 5.227 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.598e-05/0.1805, allocations: 39.98 kB / 0.4947 GB, free: 5.188 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001237/0.1806, allocations: 79.34 kB / 0.4948 GB, free: 5.098 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002186/0.1809, allocations: 143.2 kB / 0.4949 GB, free: 4.945 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.1809, allocations: 0 / 0.4949 GB, free: 4.945 MB / 382.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003764/0.1813, allocations: 206.2 kB / 0.4951 GB, free: 4.734 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.989e-05/0.1813, allocations: 7.938 kB / 0.4951 GB, free: 4.727 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.1813, allocations: 0 / 0.4951 GB, free: 4.727 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002009/0.1815, allocations: 48.86 kB / 0.4952 GB, free: 4.676 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001783/0.1817, allocations: 27.98 kB / 0.4952 GB, free: 4.648 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001638/0.1833, allocations: 1.744 MB / 0.4969 GB, free: 2.762 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.542e-05/0.1834, allocations: 11.97 kB / 0.4969 GB, free: 2.75 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.601e-05/0.1835, allocations: 4.25 kB / 0.4969 GB, free: 2.746 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (17): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001279/0.1836, allocations: 129.8 kB / 0.497 GB, free: 2.609 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.711e-05/0.1836, allocations: 15.97 kB / 0.497 GB, free: 2.594 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.219e-05/0.1837, allocations: 21.17 kB / 0.4971 GB, free: 2.574 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.434e-05/0.1837, allocations: 11.97 kB / 0.4971 GB, free: 2.562 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.302e-06/0.1837, allocations: 4 kB / 0.4971 GB, free: 2.559 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.342e-06/0.1837, allocations: 0 / 0.4971 GB, free: 2.559 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008/0.1845, allocations: 0.5531 MB / 0.4976 GB, free: 1.945 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.335e-06/0.1846, allocations: 4.031 kB / 0.4976 GB, free: 1.941 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001736/0.1847, allocations: 35.92 kB / 0.4977 GB, free: 1.906 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001199/0.1849, allocations: 36.83 kB / 0.4977 GB, free: 1.867 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.268e-05/0.1849, allocations: 3.938 kB / 0.4977 GB, free: 1.863 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001205/0.1861, allocations: 1.477 MB / 0.4991 GB, free: 248 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.1861, allocations: 0 / 0.4991 GB, free: 248 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005231/0.1866, allocations: 356.4 kB / 0.4995 GB, free: 15.87 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.244e-05/0.1867, allocations: 85.05 kB / 0.4996 GB, free: 15.77 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.609e-05/0.1867, allocations: 0 / 0.4996 GB, free: 15.77 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.815e-05/0.1868, allocations: 8 kB / 0.4996 GB, free: 15.76 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.979e-05/0.1869, allocations: 19.92 kB / 0.4996 GB, free: 15.74 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.163e-05/0.1869, allocations: 7.984 kB / 0.4996 GB, free: 15.73 MB / 398.1 MB Notification: Performance of sorting global known variables: time 8.445e-05/0.187, allocations: 103.3 kB / 0.4997 GB, free: 15.63 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.187, allocations: 4.062 kB / 0.4997 GB, free: 15.63 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003389/0.1874, allocations: 40 kB / 0.4997 GB, free: 15.59 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (J1.phi,J1.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 (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001292/0.1875, allocations: 91.25 kB / 0.4998 GB, free: 15.49 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000531/0.188, allocations: 266.6 kB / 0.5001 GB, free: 15.22 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.1881, allocations: 64 / 0.5001 GB, free: 15.22 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000254/0.1883, allocations: 198.5 kB / 0.5003 GB, free: 15.01 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003477/0.1887, allocations: 24.06 kB / 0.5003 GB, free: 14.99 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008688/0.1896, allocations: 470.9 kB / 0.5007 GB, free: 14.5 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003934/0.19, allocations: 0.7165 MB / 0.5014 GB, free: 13.76 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.575e-05/0.19, allocations: 15.44 kB / 0.5014 GB, free: 13.74 MB / 398.1 MB Notification: Performance of SimCode: time 3.61e-07/0.19, allocations: 0 / 0.5014 GB, free: 13.74 MB / 398.1 MB Notification: Performance of Templates: time 0.005232/0.1953, allocations: 2.43 MB / 0.5038 GB, free: 11.31 MB / 398.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & ./ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches