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.001605/0.001605, allocations: 108 kB / 16.41 MB, free: 6.449 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.001899/0.001899, allocations: 189.5 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.591/1.591, allocations: 205.1 MB / 223.2 MB, free: 12.23 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.2258/0.2258, allocations: 43.52 MB / 314.1 MB, free: 444 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.001419/0.001419, allocations: 67.89 kB / 441.8 MB, free: 5.66 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.145/0.1464, allocations: 57.79 MB / 499.6 MB, free: 11.8 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003271/0.1497, allocations: 1.908 MB / 0.4897 GB, free: 9.875 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009051/0.1507, allocations: 0.5385 MB / 0.4903 GB, free: 9.328 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.507e-05/0.1508, allocations: 4 kB / 0.4903 GB, free: 9.324 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001413/0.1509, allocations: 23.72 kB / 0.4903 GB, free: 9.301 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001013/0.151, allocations: 43.64 kB / 0.4903 GB, free: 9.258 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001921/0.1512, allocations: 35.95 kB / 0.4904 GB, free: 9.223 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002037/0.1514, allocations: 147.3 kB / 0.4905 GB, free: 9.078 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001987/0.1517, allocations: 65.56 kB / 0.4906 GB, free: 9.012 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001147/0.1518, allocations: 59.8 kB / 0.4906 GB, free: 8.953 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001128/0.1519, allocations: 67.69 kB / 0.4907 GB, free: 8.887 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.612e-05/0.1519, allocations: 12 kB / 0.4907 GB, free: 8.875 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.374e-05/0.152, allocations: 12 kB / 0.4907 GB, free: 8.863 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.796e-05/0.152, allocations: 27.91 kB / 0.4907 GB, free: 8.836 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 8.342e-05/0.1521, allocations: 67.67 kB / 0.4908 GB, free: 8.77 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002018/0.1523, allocations: 147.5 kB / 0.4909 GB, free: 8.625 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.688e-06/0.1523, allocations: 0 / 0.4909 GB, free: 8.625 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.847e-06/0.1523, allocations: 0 / 0.4909 GB, free: 8.625 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.991e-06/0.1523, allocations: 3.938 kB / 0.4909 GB, free: 8.621 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.000625/0.153, allocations: 435 kB / 0.4914 GB, free: 8.148 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.253e-05/0.153, allocations: 15.89 kB / 0.4914 GB, free: 8.133 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.477e-05/0.1531, allocations: 16.75 kB / 0.4914 GB, free: 8.117 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002711/0.1533, allocations: 212 kB / 0.4916 GB, free: 7.871 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.181e-05/0.1534, allocations: 8.375 kB / 0.4916 GB, free: 7.863 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.805e-05/0.1534, allocations: 12.38 kB / 0.4916 GB, free: 7.852 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000271/0.1537, allocations: 133.7 kB / 0.4917 GB, free: 7.715 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.421e-05/0.1537, allocations: 0 / 0.4917 GB, free: 7.715 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.874e-05/0.1537, allocations: 15.97 kB / 0.4918 GB, free: 7.699 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.733e-06/0.1537, allocations: 4 kB / 0.4918 GB, free: 7.695 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001837/0.1539, allocations: 79.95 kB / 0.4918 GB, free: 7.617 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000697/0.1546, allocations: 456.2 kB / 0.4923 GB, free: 7.121 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002142/0.1549, allocations: 130.3 kB / 0.4924 GB, free: 6.984 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001053/0.155, allocations: 56.84 kB / 0.4924 GB, free: 6.926 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.683e-05/0.155, allocations: 0 / 0.4924 GB, free: 6.926 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.022e-05/0.155, allocations: 38.56 kB / 0.4925 GB, free: 6.879 MB / 382.1 MB Notification: Performance of pre-optimization done (n=13): time 1.122e-06/0.155, allocations: 0 / 0.4925 GB, free: 6.879 MB / 382.1 MB Notification: Performance of matching and sorting (n=19): time 0.001462/0.1565, allocations: 0.8094 MB / 0.4933 GB, free: 5.977 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.501e-05/0.1566, allocations: 55.41 kB / 0.4933 GB, free: 5.91 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001354/0.1567, allocations: 138.2 kB / 0.4935 GB, free: 5.762 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.184e-05/0.1567, allocations: 25.7 kB / 0.4935 GB, free: 5.73 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.848e-05/0.1568, allocations: 116.3 kB / 0.4936 GB, free: 5.613 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.602e-05/0.1569, allocations: 70.95 kB / 0.4937 GB, free: 5.543 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.26e-05/0.1569, allocations: 37.7 kB / 0.4937 GB, free: 5.5 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001134/0.157, allocations: 322.8 kB / 0.494 GB, free: 5.176 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.315e-05/0.1571, allocations: 43.97 kB / 0.494 GB, free: 5.133 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001133/0.1573, allocations: 79.34 kB / 0.4941 GB, free: 5.043 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002108/0.1575, allocations: 131.3 kB / 0.4942 GB, free: 4.902 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.072e-06/0.1575, allocations: 0 / 0.4942 GB, free: 4.902 MB / 382.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003363/0.1578, allocations: 206.2 kB / 0.4944 GB, free: 4.691 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.711e-05/0.1579, allocations: 7.938 kB / 0.4945 GB, free: 4.684 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.012e-05/0.1579, allocations: 4 kB / 0.4945 GB, free: 4.68 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001633/0.158, allocations: 44.86 kB / 0.4945 GB, free: 4.633 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001622/0.1582, allocations: 39.92 kB / 0.4945 GB, free: 4.594 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001461/0.1597, allocations: 1.744 MB / 0.4962 GB, free: 2.707 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.113e-05/0.1598, allocations: 3.984 kB / 0.4962 GB, free: 2.703 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.396e-05/0.1598, allocations: 12 kB / 0.4963 GB, free: 2.691 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.0001188/0.1599, allocations: 129.7 kB / 0.4964 GB, free: 2.555 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.246e-05/0.16, allocations: 7.906 kB / 0.4964 GB, free: 2.547 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.998e-05/0.16, allocations: 25.25 kB / 0.4964 GB, free: 2.523 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.307e-06/0.16, allocations: 3.938 kB / 0.4964 GB, free: 2.52 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.16, allocations: 0 / 0.4964 GB, free: 2.52 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.642e-06/0.16, allocations: 7.984 kB / 0.4964 GB, free: 2.512 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007405/0.1608, allocations: 0.5454 MB / 0.497 GB, free: 1.906 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.008e-06/0.1608, allocations: 3.984 kB / 0.497 GB, free: 1.902 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001556/0.161, allocations: 36.02 kB / 0.497 GB, free: 1.867 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.768e-05/0.1611, allocations: 32.84 kB / 0.497 GB, free: 1.832 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.292e-05/0.1611, allocations: 0 / 0.497 GB, free: 1.832 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001073/0.1622, allocations: 1.492 MB / 0.4985 GB, free: 200 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.492e-06/0.1622, allocations: 0 / 0.4985 GB, free: 200 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004703/0.1627, allocations: 352.4 kB / 0.4988 GB, free: 15.83 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.634e-05/0.1627, allocations: 85.05 kB / 0.4989 GB, free: 15.73 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.968e-05/0.1628, allocations: 11.98 kB / 0.4989 GB, free: 15.72 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.654e-05/0.1628, allocations: 0 / 0.4989 GB, free: 15.72 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.44e-05/0.1629, allocations: 19.92 kB / 0.4989 GB, free: 15.7 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.278e-06/0.1629, allocations: 4 kB / 0.4989 GB, free: 15.7 MB / 398.1 MB Notification: Performance of sorting global known variables: time 7.359e-05/0.163, allocations: 107.2 kB / 0.499 GB, free: 15.59 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.163, allocations: 3.938 kB / 0.499 GB, free: 15.59 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003072/0.1633, allocations: 48.06 kB / 0.4991 GB, free: 15.54 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.0001074/0.1634, allocations: 95.25 kB / 0.4992 GB, free: 15.44 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004717/0.1639, allocations: 258.5 kB / 0.4994 GB, free: 15.17 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.1639, allocations: 0 / 0.4994 GB, free: 15.17 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002483/0.1642, allocations: 198.6 kB / 0.4996 GB, free: 14.96 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000318/0.1645, allocations: 19.98 kB / 0.4996 GB, free: 14.95 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007563/0.1653, allocations: 441.7 kB / 0.5001 GB, free: 14.49 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002764/0.1656, allocations: 0.7166 MB / 0.5007 GB, free: 13.75 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.437e-05/0.1656, allocations: 13.41 kB / 0.5008 GB, free: 13.73 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.458e-05/0.1657, allocations: 15.44 kB / 0.5008 GB, free: 13.71 MB / 398.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1657, allocations: 0 / 0.5008 GB, free: 13.71 MB / 398.1 MB Notification: Performance of Templates: time 0.004565/0.1702, allocations: 1.646 MB / 0.5024 GB, free: 12.07 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