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.001305/0.001305, allocations: 109 kB / 16.41 MB, free: 6.48 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.001223/0.001223, allocations: 185.5 kB / 17.34 MB, free: 5.766 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.617/1.617, allocations: 205.1 MB / 223.2 MB, free: 12.11 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.2592/0.2592, allocations: 43.53 MB / 314.1 MB, free: 440 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.001569/0.001569, allocations: 72.45 kB / 441.8 MB, free: 5.676 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1515/0.1531, allocations: 57.78 MB / 499.6 MB, free: 11.82 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.004075/0.1572, allocations: 1.907 MB / 0.4897 GB, free: 9.898 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001095/0.1583, allocations: 0.5308 MB / 0.4902 GB, free: 9.359 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001827/0.1585, allocations: 7.938 kB / 0.4903 GB, free: 9.352 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001628/0.1587, allocations: 27.78 kB / 0.4903 GB, free: 9.324 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001696/0.1589, allocations: 35.64 kB / 0.4903 GB, free: 9.289 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002517/0.1592, allocations: 39.94 kB / 0.4903 GB, free: 9.25 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002571/0.1594, allocations: 151.3 kB / 0.4905 GB, free: 9.102 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002022/0.1596, allocations: 61.56 kB / 0.4906 GB, free: 9.039 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001493/0.1598, allocations: 63.78 kB / 0.4906 GB, free: 8.977 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001244/0.1599, allocations: 63.7 kB / 0.4907 GB, free: 8.914 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.063e-05/0.16, allocations: 12 kB / 0.4907 GB, free: 8.902 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.948e-05/0.16, allocations: 12 kB / 0.4907 GB, free: 8.891 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.84e-05/0.1601, allocations: 27.92 kB / 0.4907 GB, free: 8.863 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 8.548e-05/0.1601, allocations: 71.66 kB / 0.4908 GB, free: 8.793 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002301/0.1604, allocations: 147.5 kB / 0.4909 GB, free: 8.648 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.352e-06/0.1604, allocations: 0 / 0.4909 GB, free: 8.648 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.1604, allocations: 0 / 0.4909 GB, free: 8.648 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.339e-05/0.1604, allocations: 0 / 0.4909 GB, free: 8.648 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.0006917/0.1611, allocations: 446.8 kB / 0.4914 GB, free: 8.164 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.281e-05/0.1612, allocations: 11.89 kB / 0.4914 GB, free: 8.152 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.313e-05/0.1612, allocations: 20.75 kB / 0.4914 GB, free: 8.133 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003306/0.1616, allocations: 212.1 kB / 0.4916 GB, free: 7.887 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.637e-05/0.1616, allocations: 8.375 kB / 0.4916 GB, free: 7.879 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.567e-05/0.1616, allocations: 12.38 kB / 0.4916 GB, free: 7.867 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003203/0.162, allocations: 129.8 kB / 0.4917 GB, free: 7.734 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.745e-05/0.162, allocations: 0 / 0.4917 GB, free: 7.734 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.986e-05/0.162, allocations: 8 kB / 0.4917 GB, free: 7.727 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.848e-06/0.162, allocations: 4 kB / 0.4917 GB, free: 7.723 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001987/0.1623, allocations: 83.94 kB / 0.4918 GB, free: 7.641 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007062/0.163, allocations: 460.2 kB / 0.4923 GB, free: 7.141 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002301/0.1632, allocations: 126.4 kB / 0.4924 GB, free: 7.008 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001142/0.1633, allocations: 56.84 kB / 0.4924 GB, free: 6.949 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.21e-05/0.1634, allocations: 4 kB / 0.4924 GB, free: 6.945 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.302e-05/0.1634, allocations: 34.5 kB / 0.4925 GB, free: 6.902 MB / 382.1 MB Notification: Performance of pre-optimization done (n=13): time 1.643e-06/0.1634, allocations: 0 / 0.4925 GB, free: 6.902 MB / 382.1 MB Notification: Performance of matching and sorting (n=19): time 0.002036/0.1655, allocations: 0.8058 MB / 0.4933 GB, free: 6.004 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001555/0.1656, allocations: 59.39 kB / 0.4933 GB, free: 5.934 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002194/0.1659, allocations: 134.2 kB / 0.4934 GB, free: 5.789 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.004e-05/0.1659, allocations: 33.7 kB / 0.4935 GB, free: 5.75 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001052/0.166, allocations: 108.3 kB / 0.4936 GB, free: 5.641 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.946e-05/0.1661, allocations: 74.94 kB / 0.4937 GB, free: 5.566 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001042/0.1662, allocations: 37.7 kB / 0.4937 GB, free: 5.523 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002028/0.1664, allocations: 326.8 kB / 0.494 GB, free: 5.195 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001149/0.1665, allocations: 39.97 kB / 0.494 GB, free: 5.156 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001327/0.1667, allocations: 83.28 kB / 0.4941 GB, free: 5.062 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002613/0.1669, allocations: 135.3 kB / 0.4942 GB, free: 4.918 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.167, allocations: 0 / 0.4942 GB, free: 4.918 MB / 382.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004705/0.1674, allocations: 210.2 kB / 0.4944 GB, free: 4.703 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.131e-05/0.1675, allocations: 11.88 kB / 0.4945 GB, free: 4.691 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.011e-05/0.1675, allocations: 4 kB / 0.4945 GB, free: 4.688 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002211/0.1677, allocations: 40.88 kB / 0.4945 GB, free: 4.645 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002057/0.1679, allocations: 35.97 kB / 0.4945 GB, free: 4.609 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001951/0.1699, allocations: 1.732 MB / 0.4962 GB, free: 2.734 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.972e-05/0.17, allocations: 8 kB / 0.4962 GB, free: 2.727 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.391e-05/0.17, allocations: 7.984 kB / 0.4962 GB, free: 2.719 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.0001417/0.1702, allocations: 133.7 kB / 0.4964 GB, free: 2.578 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.306e-05/0.1702, allocations: 7.906 kB / 0.4964 GB, free: 2.57 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.422e-05/0.1703, allocations: 21.5 kB / 0.4964 GB, free: 2.551 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.148e-06/0.1703, allocations: 3.938 kB / 0.4964 GB, free: 2.547 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.676e-06/0.1703, allocations: 8 kB / 0.4964 GB, free: 2.539 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.943e-06/0.1703, allocations: 3.984 kB / 0.4964 GB, free: 2.535 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009802/0.1713, allocations: 0.549 MB / 0.497 GB, free: 1.926 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.1713, allocations: 32 / 0.497 GB, free: 1.926 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002287/0.1716, allocations: 40.02 kB / 0.497 GB, free: 1.887 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001359/0.1717, allocations: 40.7 kB / 0.497 GB, free: 1.844 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.798e-05/0.1717, allocations: 4 kB / 0.497 GB, free: 1.84 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001266/0.173, allocations: 1.477 MB / 0.4985 GB, free: 224 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.446e-06/0.173, allocations: 7.969 kB / 0.4985 GB, free: 216 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005182/0.1736, allocations: 344.6 kB / 0.4988 GB, free: 15.86 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.07e-05/0.1736, allocations: 89.05 kB / 0.4989 GB, free: 15.75 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.027e-05/0.1737, allocations: 7.938 kB / 0.4989 GB, free: 15.74 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001033/0.1738, allocations: 7.984 kB / 0.4989 GB, free: 15.73 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.626e-05/0.1738, allocations: 15.92 kB / 0.4989 GB, free: 15.72 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.1e-05/0.1738, allocations: 8 kB / 0.4989 GB, free: 15.71 MB / 398.1 MB Notification: Performance of sorting global known variables: time 8.66e-05/0.1739, allocations: 107.2 kB / 0.499 GB, free: 15.61 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1739, allocations: 64 / 0.499 GB, free: 15.61 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003331/0.1743, allocations: 44 kB / 0.4991 GB, free: 15.56 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.0001372/0.1744, allocations: 95.25 kB / 0.4992 GB, free: 15.46 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005741/0.175, allocations: 258.5 kB / 0.4994 GB, free: 15.2 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.175, allocations: 0 / 0.4994 GB, free: 15.2 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002743/0.1753, allocations: 198.6 kB / 0.4996 GB, free: 14.99 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003395/0.1757, allocations: 19.98 kB / 0.4996 GB, free: 14.97 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008481/0.1765, allocations: 449.5 kB / 0.5001 GB, free: 14.5 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003318/0.1769, allocations: 0.7166 MB / 0.5008 GB, free: 13.76 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.067e-05/0.1769, allocations: 9.422 kB / 0.5008 GB, free: 13.75 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.092e-05/0.177, allocations: 19.38 kB / 0.5008 GB, free: 13.73 MB / 398.1 MB Notification: Performance of SimCode: time 2.61e-07/0.177, allocations: 0 / 0.5008 GB, free: 13.73 MB / 398.1 MB Notification: Performance of Templates: time 0.004864/0.1819, allocations: 1.641 MB / 0.5024 GB, free: 12.1 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.csv","/var/lib/jenkins/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