Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.TestFriction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia.phi|inertia.w|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia5.phi|inertia5.w|oneWayClutch.phi_rel|oneWayClutch.w_rel|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward|oneWayClutch.startForward|oneWayClutch.stuck",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction") translateModel(ModelicaTest.Rotational.TestFriction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia.phi|inertia.w|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia5.phi|inertia5.w|oneWayClutch.phi_rel|oneWayClutch.w_rel|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward|oneWayClutch.startForward|oneWayClutch.stuck",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009061/0.0009062, allocations: 93.62 kB / 17 MB, free: 6.121 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.001227/0.001227, allocations: 183 kB / 17.89 MB, free: 5.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.465/1.465, allocations: 223.3 MB / 241.9 MB, free: 328 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.205/0.205, allocations: 44.26 MB / 337.3 MB, free: 2.852 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003403/0.0003404, allocations: 8 kB / 409.7 MB, free: 27.67 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1428/0.1432, allocations: 61.93 MB / 471.6 MB, free: 13.71 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.004766/0.148, allocations: 3.359 MB / 475 MB, free: 10.33 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003081/0.1511, allocations: 1.2 MB / 476.2 MB, free: 9.125 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005213/0.1517, allocations: 15.94 kB / 476.2 MB, free: 9.109 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002947/0.152, allocations: 79.34 kB / 476.2 MB, free: 9.031 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000451/0.1524, allocations: 178.6 kB / 476.4 MB, free: 8.855 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007658/0.1532, allocations: 255.6 kB / 476.7 MB, free: 8.605 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009315/0.1542, allocations: 0.9053 MB / 477.6 MB, free: 7.691 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002976/0.1545, allocations: 148.9 kB / 477.7 MB, free: 7.539 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005296/0.155, allocations: 390.6 kB / 478.1 MB, free: 7.156 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005249/0.1555, allocations: 438.4 kB / 478.5 MB, free: 6.727 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.667e-05/0.1556, allocations: 40 kB / 478.6 MB, free: 6.688 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001939/0.1558, allocations: 75.97 kB / 478.6 MB, free: 6.613 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001995/0.1561, allocations: 159.4 kB / 478.8 MB, free: 6.457 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001334/0.1562, allocations: 141.3 kB / 478.9 MB, free: 6.312 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006489/0.1568, allocations: 0.6509 MB / 479.6 MB, free: 5.66 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.416e-05/0.1569, allocations: 0 / 479.6 MB, free: 5.66 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.1569, allocations: 4 kB / 479.6 MB, free: 5.656 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.058e-05/0.1569, allocations: 0 / 479.6 MB, free: 5.656 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.001996/0.1589, allocations: 0.9975 MB / 480.6 MB, free: 4.609 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.189e-05/0.159, allocations: 12.03 kB / 480.6 MB, free: 4.598 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001585/0.1591, allocations: 79.06 kB / 480.7 MB, free: 4.52 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005752/0.1597, allocations: 408.8 kB / 481.1 MB, free: 4.078 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.874e-05/0.1598, allocations: 45.31 kB / 481.1 MB, free: 4.035 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000134/0.1599, allocations: 71.84 kB / 481.2 MB, free: 3.965 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001499/0.1614, allocations: 0.8413 MB / 482 MB, free: 3.086 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.104e-05/0.1615, allocations: 7.906 kB / 482 MB, free: 3.078 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.656e-05/0.1615, allocations: 24 kB / 482.1 MB, free: 3.055 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.638e-05/0.1616, allocations: 16 kB / 482.1 MB, free: 3.039 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001529/0.1631, allocations: 0.7821 MB / 482.9 MB, free: 2.258 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004145/0.1672, allocations: 2.636 MB / 485.5 MB, free: 15.5 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001302/0.1686, allocations: 0.6475 MB / 486.1 MB, free: 14.82 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007183/0.1693, allocations: 392.2 kB / 486.5 MB, free: 14.42 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.076e-05/0.1694, allocations: 12.38 kB / 486.5 MB, free: 14.41 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.446e-05/0.1694, allocations: 47.61 kB / 486.6 MB, free: 14.36 MB / 366.1 MB Notification: Performance of pre-optimization done (n=72): time 2.064e-06/0.1694, allocations: 0 / 486.6 MB, free: 14.36 MB / 366.1 MB Notification: Performance of matching and sorting (n=76): time 0.007402/0.1768, allocations: 3.727 MB / 490.3 MB, free: 10.37 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001059/0.177, allocations: 136.5 kB / 490.4 MB, free: 10.2 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004766/0.1774, allocations: 425.8 kB / 490.9 MB, free: 9.773 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.057e-05/0.1775, allocations: 53.69 kB / 490.9 MB, free: 9.715 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000267/0.1778, allocations: 288.3 kB / 491.2 MB, free: 9.426 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002544/0.1781, allocations: 268.4 kB / 491.5 MB, free: 9.16 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.248e-05/0.1781, allocations: 16 kB / 491.5 MB, free: 9.145 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002058/0.1783, allocations: 370.8 kB / 491.8 MB, free: 8.773 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007897/0.1791, allocations: 401.8 kB / 492.2 MB, free: 8.383 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008712/0.18, allocations: 0.553 MB / 492.8 MB, free: 7.773 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007114/0.1807, allocations: 356 kB / 493.1 MB, free: 7.43 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.1808, allocations: 0 / 493.1 MB, free: 7.43 MB / 366.1 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.002538/0.1833, allocations: 1.275 MB / 494.4 MB, free: 6.137 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.034e-05/0.1833, allocations: 10.03 kB / 494.4 MB, free: 6.129 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.188e-05/0.1834, allocations: 7.938 kB / 494.4 MB, free: 6.121 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001398/0.1848, allocations: 0.7607 MB / 495.2 MB, free: 5.348 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005624/0.1853, allocations: 155.7 kB / 495.3 MB, free: 5.195 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002344/0.1877, allocations: 2.69 MB / 498 MB, free: 2.402 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008704/0.1886, allocations: 203.8 kB / 498.2 MB, free: 2.203 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001219/0.1887, allocations: 35.98 kB / 498.3 MB, free: 2.168 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 30 ($PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free,clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,bearingFriction.free,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 87 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,1 7,1 6,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.000495/0.1892, allocations: 221.2 kB / 498.5 MB, free: 1.945 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000192/0.1894, allocations: 59.34 kB / 498.5 MB, free: 1.887 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002131/0.1896, allocations: 87.91 kB / 498.6 MB, free: 1.805 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.048e-05/0.1897, allocations: 8 kB / 498.6 MB, free: 1.797 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.542e-05/0.1897, allocations: 0 / 498.6 MB, free: 1.797 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.406e-05/0.1897, allocations: 7.984 kB / 498.6 MB, free: 1.789 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004375/0.1941, allocations: 2.196 MB / 0.4891 GB, free: 15.52 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.51e-06/0.1941, allocations: 0 / 0.4891 GB, free: 15.52 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000549/0.1947, allocations: 123.8 kB / 0.4892 GB, free: 15.4 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001215/0.1959, allocations: 0.7176 MB / 0.4899 GB, free: 14.67 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.141e-05/0.196, allocations: 31.95 kB / 0.4899 GB, free: 14.64 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002408/0.1984, allocations: 2.647 MB / 0.4925 GB, free: 11.89 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/0.1984, allocations: 4.062 kB / 0.4925 GB, free: 11.89 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003792/0.2022, allocations: 1.81 MB / 0.4943 GB, free: 10.05 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005187/0.2027, allocations: 220.2 kB / 0.4945 GB, free: 9.812 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002266/0.203, allocations: 31.98 kB / 0.4945 GB, free: 9.781 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001431/0.2044, allocations: 171.8 kB / 0.4947 GB, free: 9.613 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005192/0.205, allocations: 167.6 kB / 0.4949 GB, free: 9.449 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001187/0.2051, allocations: 39.91 kB / 0.4949 GB, free: 9.41 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005293/0.2056, allocations: 287.1 kB / 0.4952 GB, free: 9.125 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.3e-07/0.2056, allocations: 3.938 kB / 0.4952 GB, free: 9.121 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001434/0.2071, allocations: 196 kB / 0.4954 GB, free: 8.93 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 (inertia4.phi,inertia4.w,oneWayClutch.phi_rel,oneWayClutch.w_rel,inertia2.phi,inertia2.w,clutch.phi_rel,clutch.w_rel,inertia1.w,brake.phi,inertia.w,bearingFriction.phi) * Number of discrete variables: 18 (oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck,oneWayClutch.free,clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 11 (bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward,brake.mode,brake.startForward,brake.startBackward,clutch.mode,clutch.startForward,clutch.startBackward,oneWayClutch.stuck,oneWayClutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 49 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,1 7,1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.000423/0.2075, allocations: 160.3 kB / 0.4955 GB, free: 8.762 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003383/0.2109, allocations: 0.969 MB / 0.4965 GB, free: 7.789 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/0.2109, allocations: 0 / 0.4965 GB, free: 7.789 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001944/0.2129, allocations: 0.5151 MB / 0.497 GB, free: 7.277 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001649/0.2146, allocations: 107.1 kB / 0.4971 GB, free: 7.176 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007984/0.2226, allocations: 2.572 MB / 0.4996 GB, free: 4.57 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007952/0.2234, allocations: 0.9027 MB / 0.5005 GB, free: 3.637 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005095/0.2239, allocations: 60.83 kB / 0.5005 GB, free: 3.574 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002141/0.2241, allocations: 47.41 kB / 0.5006 GB, free: 3.527 MB / 382.1 MB Notification: Performance of SimCode: time 1.884e-06/0.2242, allocations: 0 / 0.5006 GB, free: 3.527 MB / 382.1 MB Notification: Performance of Templates: time 0.2575/0.4817, allocations: 14.06 MB / 0.5143 GB, free: 46.15 MB / 382.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestFriction/TestFriction.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches