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.001151/0.001151, allocations: 108.2 kB / 18.39 MB, free: 4.629 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.001026/0.001026, allocations: 182.9 kB / 19.33 MB, free: 3.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.383/1.383, allocations: 222.9 MB / 243 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2111/0.2111, allocations: 44.18 MB / 337.4 MB, free: 2.699 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001544/0.001544, allocations: 71.91 kB / 409.9 MB, free: 26.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1281/0.1296, allocations: 60.83 MB / 470.7 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.005318/0.135, allocations: 3.907 MB / 474.6 MB, free: 9.734 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002433/0.1375, allocations: 1.239 MB / 475.8 MB, free: 8.492 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002711/0.1377, allocations: 15.94 kB / 475.9 MB, free: 8.477 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003104/0.1381, allocations: 110.9 kB / 476 MB, free: 8.367 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003863/0.1385, allocations: 206.2 kB / 476.2 MB, free: 8.164 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007507/0.1392, allocations: 347.4 kB / 476.5 MB, free: 7.824 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009274/0.1402, allocations: 1.022 MB / 477.5 MB, free: 6.793 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002818/0.1405, allocations: 186.3 kB / 477.7 MB, free: 6.609 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004749/0.141, allocations: 442.6 kB / 478.1 MB, free: 6.176 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005076/0.1415, allocations: 494.2 kB / 478.6 MB, free: 5.691 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00011/0.1416, allocations: 80 kB / 478.7 MB, free: 5.613 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002185/0.1418, allocations: 127.9 kB / 478.8 MB, free: 5.488 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001935/0.142, allocations: 203.4 kB / 479 MB, free: 5.289 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003497/0.1424, allocations: 398 kB / 479.4 MB, free: 4.898 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008526/0.1432, allocations: 0.9305 MB / 480.3 MB, free: 3.965 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.1433, allocations: 0 / 480.3 MB, free: 3.965 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.022e-06/0.1433, allocations: 0 / 480.3 MB, free: 3.965 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.022e-05/0.1433, allocations: 8 kB / 480.4 MB, free: 3.957 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.002382/0.1457, allocations: 1.091 MB / 481.4 MB, free: 2.816 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.744e-05/0.1457, allocations: 8.031 kB / 481.5 MB, free: 2.809 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002164/0.146, allocations: 80 kB / 481.5 MB, free: 2.73 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006864/0.1467, allocations: 441.6 kB / 482 MB, free: 2.258 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.213e-05/0.1467, allocations: 49.69 kB / 482 MB, free: 2.211 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001622/0.1469, allocations: 72.02 kB / 482.1 MB, free: 2.141 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001524/0.1484, allocations: 0.8179 MB / 482.9 MB, free: 1.285 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.998e-05/0.1485, allocations: 7.906 kB / 482.9 MB, free: 1.277 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.028e-05/0.1486, allocations: 24 kB / 482.9 MB, free: 1.254 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.568e-05/0.1486, allocations: 16 kB / 482.9 MB, free: 1.238 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001612/0.1502, allocations: 0.7631 MB / 483.7 MB, free: 488 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004554/0.1548, allocations: 2.55 MB / 486.3 MB, free: 13.8 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001318/0.1561, allocations: 0.6307 MB / 486.9 MB, free: 13.14 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008462/0.157, allocations: 379.3 kB / 487.3 MB, free: 12.75 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.981e-05/0.1571, allocations: 11.98 kB / 487.3 MB, free: 12.74 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.071e-05/0.1571, allocations: 46.5 kB / 487.3 MB, free: 12.69 MB / 366.1 MB Notification: Performance of pre-optimization done (n=72): time 2.545e-06/0.1571, allocations: 4 kB / 487.3 MB, free: 12.68 MB / 366.1 MB Notification: Performance of matching and sorting (n=76): time 0.007416/0.1645, allocations: 3.539 MB / 490.9 MB, free: 8.887 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.273e-05/0.1646, allocations: 144.5 kB / 491 MB, free: 8.715 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004664/0.1651, allocations: 421.8 kB / 491.4 MB, free: 8.293 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.036e-05/0.1652, allocations: 53.69 kB / 491.5 MB, free: 8.234 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001899/0.1654, allocations: 276.4 kB / 491.7 MB, free: 7.957 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002077/0.1656, allocations: 264.4 kB / 492 MB, free: 7.695 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003164/0.1659, allocations: 170.4 kB / 492.2 MB, free: 7.523 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001673/0.1661, allocations: 374.8 kB / 492.5 MB, free: 7.148 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000731/0.1668, allocations: 393.8 kB / 492.9 MB, free: 6.766 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008831/0.1677, allocations: 0.5413 MB / 493.5 MB, free: 6.164 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001265/0.169, allocations: 0.728 MB / 494.2 MB, free: 5.383 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.169, allocations: 0 / 494.2 MB, free: 5.383 MB / 366.1 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.002592/0.1716, allocations: 1.288 MB / 495.5 MB, free: 4.078 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.341e-05/0.1716, allocations: 4 kB / 495.5 MB, free: 4.074 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.359e-05/0.1717, allocations: 8.219 kB / 495.5 MB, free: 4.066 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001391/0.1731, allocations: 0.7645 MB / 496.2 MB, free: 3.289 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005609/0.1736, allocations: 147.8 kB / 496.4 MB, free: 3.145 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002408/0.1761, allocations: 2.698 MB / 499.1 MB, free: 352 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008364/0.1769, allocations: 139.5 kB / 499.2 MB, free: 212 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.432e-05/0.177, allocations: 44.05 kB / 499.3 MB, free: 168 kB / 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 (oneWayClutch.free,oneWayClutch.stuck,$PRE.oneWayClutch.stuck,oneWayClutch.locked,oneWayClutch.startForward,$PRE.oneWayClutch.startForward,clutch.mode,$PRE.clutch.mode,clutch.locked,clutch.startBackward,$PRE.clutch.startBackward,clutch.startForward,$PRE.clutch.startForward,clutch.free,brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,bearingFriction.free,bearingFriction.mode,$PRE.bearingFriction.mode,bearingFriction.locked,bearingFriction.startBackward,$PRE.bearingFriction.startBackward,bearingFriction.startForward,$PRE.bearingFriction.startForward) * 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 (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,6), (1,7), (1,6), (1,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0003898/0.1774, allocations: 221.3 kB / 499.5 MB, free: 15.93 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000173/0.1776, allocations: 59.34 kB / 499.5 MB, free: 15.88 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001599/0.1778, allocations: 83.91 kB / 499.6 MB, free: 15.79 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.448e-06/0.1778, allocations: 8 kB / 499.6 MB, free: 15.79 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.691e-05/0.1778, allocations: 4 kB / 499.6 MB, free: 15.78 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.037e-05/0.1778, allocations: 7.984 kB / 499.6 MB, free: 15.77 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003867/0.1817, allocations: 2.178 MB / 0.4901 GB, free: 13.53 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.971e-06/0.1817, allocations: 0 / 0.4901 GB, free: 13.53 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005304/0.1822, allocations: 115.9 kB / 0.4902 GB, free: 13.42 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001203/0.1834, allocations: 0.7215 MB / 0.4909 GB, free: 12.68 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.754e-05/0.1835, allocations: 35.97 kB / 0.4909 GB, free: 12.65 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002216/0.1858, allocations: 2.647 MB / 0.4935 GB, free: 9.898 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/0.1858, allocations: 4.031 kB / 0.4935 GB, free: 9.895 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003067/0.1888, allocations: 1.756 MB / 0.4952 GB, free: 8.113 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003611/0.1892, allocations: 216.2 kB / 0.4954 GB, free: 7.883 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001241/0.1893, allocations: 31.94 kB / 0.4954 GB, free: 7.852 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007742/0.1901, allocations: 131.8 kB / 0.4956 GB, free: 7.723 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003136/0.1904, allocations: 139.8 kB / 0.4957 GB, free: 7.586 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.464e-05/0.1905, allocations: 35.95 kB / 0.4957 GB, free: 7.551 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003209/0.1908, allocations: 295.1 kB / 0.496 GB, free: 7.262 MB / 382.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1909, allocations: 0 / 0.496 GB, free: 7.262 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008126/0.1917, allocations: 196.1 kB / 0.4962 GB, free: 7.07 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 (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,6), (1,7), (1,5), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002524/0.1919, allocations: 147.1 kB / 0.4963 GB, free: 6.914 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002011/0.194, allocations: 0.9538 MB / 0.4973 GB, free: 5.961 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.078e-06/0.194, allocations: 0.8125 kB / 0.4973 GB, free: 5.961 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001127/0.1951, allocations: 0.5074 MB / 0.4978 GB, free: 5.453 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009161/0.196, allocations: 129.6 kB / 0.4979 GB, free: 5.336 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004332/0.2004, allocations: 2.077 MB / 0.4999 GB, free: 3.223 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004385/0.2008, allocations: 0.9027 MB / 0.5008 GB, free: 2.293 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002439/0.2011, allocations: 72.81 kB / 0.5009 GB, free: 2.219 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001312/0.2012, allocations: 47.42 kB / 0.5009 GB, free: 2.172 MB / 382.1 MB Notification: Performance of SimCode: time 5.51e-07/0.2012, allocations: 0 / 0.5009 GB, free: 2.172 MB / 382.1 MB Notification: Performance of Templates: time 0.2349/0.4361, allocations: 15.69 MB / 0.5162 GB, free: 45.71 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestFriction/TestFriction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches