Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_ModelicaTest.Rotational.TestFriction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001055/0.001054, allocations: 107.7 kB / 17.33 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001164/0.001164, allocations: 205.8 kB / 18.26 MB, free: 5.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.445/1.445, allocations: 227.4 MB / 246.4 MB, free: 9.074 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2277/0.2277, allocations: 46.1 MB / 343.8 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001386/0.001387, allocations: 77.25 kB / 417 MB, free: 20.04 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1421/0.1435, allocations: 62.44 MB / 479.5 MB, free: 5.586 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.005357/0.1489, allocations: 4.12 MB / 483.6 MB, free: 1.438 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002441/0.1513, allocations: 1.477 MB / 485.1 MB, free: 15.96 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002304/0.1516, allocations: 11.94 kB / 485.1 MB, free: 15.95 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003705/0.152, allocations: 99.33 kB / 485.2 MB, free: 15.85 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005148/0.1525, allocations: 250.4 kB / 485.4 MB, free: 15.6 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005654/0.1531, allocations: 307.6 kB / 485.7 MB, free: 15.3 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009298/0.154, allocations: 1.085 MB / 486.8 MB, free: 14.21 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003129/0.1543, allocations: 190.4 kB / 487 MB, free: 14.02 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000619/0.155, allocations: 490.4 kB / 487.5 MB, free: 13.54 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005634/0.1555, allocations: 0.5137 MB / 488 MB, free: 13.02 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000131/0.1557, allocations: 84 kB / 488.1 MB, free: 12.94 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002677/0.1559, allocations: 148 kB / 488.2 MB, free: 12.79 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002537/0.1562, allocations: 227.3 kB / 488.4 MB, free: 12.57 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000418/0.1566, allocations: 429.9 kB / 488.9 MB, free: 12.15 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009679/0.1576, allocations: 1.005 MB / 489.9 MB, free: 11.14 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.1576, allocations: 0 / 489.9 MB, free: 11.14 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.1576, allocations: 0 / 489.9 MB, free: 11.14 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.383e-05/0.1577, allocations: 4 kB / 489.9 MB, free: 11.14 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 156 * Number of variables: 156 Notification: Performance of Generate backend data structure: time 0.002212/0.1599, allocations: 1.161 MB / 491 MB, free: 9.926 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.038e-05/0.1599, allocations: 8.031 kB / 491 MB, free: 9.918 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005003/0.1604, allocations: 123.8 kB / 491.2 MB, free: 9.797 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006051/0.161, allocations: 469.5 kB / 491.6 MB, free: 9.297 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.542e-05/0.1611, allocations: 49.69 kB / 491.7 MB, free: 9.246 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001289/0.1612, allocations: 68.12 kB / 491.7 MB, free: 9.18 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00147/0.1627, allocations: 0.8184 MB / 492.6 MB, free: 8.328 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.122e-05/0.1628, allocations: 11.84 kB / 492.6 MB, free: 8.316 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.936e-05/0.1629, allocations: 24 kB / 492.6 MB, free: 8.293 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.529e-05/0.1629, allocations: 16 kB / 492.6 MB, free: 8.277 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001588/0.1645, allocations: 0.7336 MB / 493.3 MB, free: 7.547 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004276/0.1688, allocations: 2.601 MB / 495.9 MB, free: 4.824 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001431/0.1702, allocations: 0.6734 MB / 496.6 MB, free: 4.117 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007152/0.1709, allocations: 385.6 kB / 497 MB, free: 3.73 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.635e-05/0.171, allocations: 11.98 kB / 497 MB, free: 3.719 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.902e-05/0.1711, allocations: 38.56 kB / 497 MB, free: 3.672 MB / 366.1 MB Notification: Performance of pre-optimization done (n=79): time 2.575e-06/0.1711, allocations: 0 / 497 MB, free: 3.672 MB / 366.1 MB Notification: Performance of matching and sorting (n=83): time 0.00781/0.1789, allocations: 3.525 MB / 0.4888 GB, free: 15.88 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.484e-05/0.179, allocations: 140.8 kB / 0.489 GB, free: 15.71 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005749/0.1796, allocations: 477.9 kB / 0.4894 GB, free: 15.23 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.08e-05/0.1797, allocations: 53.69 kB / 0.4895 GB, free: 15.18 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000194/0.1799, allocations: 276.6 kB / 0.4897 GB, free: 14.9 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002449/0.1801, allocations: 299.9 kB / 0.49 GB, free: 14.61 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003052/0.1804, allocations: 166.5 kB / 0.4902 GB, free: 14.44 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001565/0.1806, allocations: 374.8 kB / 0.4905 GB, free: 14.06 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007476/0.1814, allocations: 361.8 kB / 0.4909 GB, free: 13.71 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009167/0.1823, allocations: 0.5176 MB / 0.4914 GB, free: 13.13 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001322/0.1836, allocations: 0.7148 MB / 0.4921 GB, free: 12.36 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.926e-06/0.1836, allocations: 4 kB / 0.4921 GB, free: 12.36 MB / 382.1 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.002662/0.1863, allocations: 1.195 MB / 0.4933 GB, free: 11.14 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.677e-05/0.1863, allocations: 8 kB / 0.4933 GB, free: 11.14 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.254e-05/0.1864, allocations: 4 kB / 0.4933 GB, free: 11.13 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00135/0.1877, allocations: 0.5776 MB / 0.4938 GB, free: 10.54 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005193/0.1882, allocations: 143.7 kB / 0.494 GB, free: 10.4 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004649/0.1929, allocations: 3.85 MB / 0.4977 GB, free: 6.336 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001281/0.1942, allocations: 147.8 kB / 0.4979 GB, free: 6.191 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001284/0.1944, allocations: 35.98 kB / 0.4979 GB, free: 6.156 MB / 382.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 (brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,clutch.mode,$PRE.clutch.mode,clutch.locked,clutch.startBackward,$PRE.clutch.startBackward,clutch.startForward,$PRE.clutch.startForward,clutch.free,oneWayClutch.free,oneWayClutch.stuck,$PRE.oneWayClutch.stuck,oneWayClutch.locked,oneWayClutch.startForward,$PRE.oneWayClutch.startForward,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 (88): * Single equations (assignments): 84 * 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,8), (1,10), (1,6), (1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0008447/0.1952, allocations: 228.3 kB / 0.4981 GB, free: 5.922 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002533/0.1955, allocations: 75.09 kB / 0.4982 GB, free: 5.848 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002041/0.1957, allocations: 92.83 kB / 0.4983 GB, free: 5.758 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.116e-05/0.1957, allocations: 12 kB / 0.4983 GB, free: 5.746 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.684e-05/0.1957, allocations: 3.938 kB / 0.4983 GB, free: 5.742 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.107e-05/0.1958, allocations: 3.984 kB / 0.4983 GB, free: 5.738 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00442/0.2002, allocations: 2.163 MB / 0.5004 GB, free: 3.508 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.2002, allocations: 0 / 0.5004 GB, free: 3.508 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005585/0.2008, allocations: 111.9 kB / 0.5005 GB, free: 3.398 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001204/0.202, allocations: 0.5342 MB / 0.501 GB, free: 2.852 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.333e-05/0.2021, allocations: 39.94 kB / 0.5011 GB, free: 2.812 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2576/0.4597, allocations: 3.646 MB / 0.5046 GB, free: 40.2 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.469e-06/0.4598, allocations: 3.625 kB / 0.5046 GB, free: 40.2 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003965/0.4637, allocations: 1.724 MB / 0.5063 GB, free: 39.79 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004154/0.4642, allocations: 225.9 kB / 0.5065 GB, free: 39.7 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001444/0.4643, allocations: 27.97 kB / 0.5066 GB, free: 39.7 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008892/0.4652, allocations: 129.9 kB / 0.5067 GB, free: 39.7 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005229/0.4657, allocations: 191.5 kB / 0.5069 GB, free: 39.7 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.549e-05/0.4658, allocations: 39.39 kB / 0.5069 GB, free: 39.7 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004043/0.4662, allocations: 326.7 kB / 0.5072 GB, free: 39.61 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4663, allocations: 0 / 0.5072 GB, free: 39.61 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001009/0.4673, allocations: 210 kB / 0.5074 GB, free: 39.61 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 (54): * Single equations (assignments): 50 * 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,10), (1,7), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009275/0.4682, allocations: 386.1 kB / 0.5078 GB, free: 39.47 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002411/0.4706, allocations: 1.066 MB / 0.5088 GB, free: 39.09 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.4706, allocations: 1.859 kB / 0.5088 GB, free: 39.09 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001278/0.4719, allocations: 0.6299 MB / 0.5095 GB, free: 38.81 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001064/0.473, allocations: 142.4 kB / 0.5096 GB, free: 38.76 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004745/0.4778, allocations: 2.449 MB / 0.512 GB, free: 37.32 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004725/0.4782, allocations: 0.9317 MB / 0.5129 GB, free: 36.6 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003535/0.4786, allocations: 75.16 kB / 0.513 GB, free: 36.58 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001776/0.4788, allocations: 56.89 kB / 0.513 GB, free: 36.57 MB / 382.1 MB Notification: Performance of SimCode: time 9.62e-07/0.4788, allocations: 0 / 0.513 GB, free: 36.57 MB / 382.1 MB Notification: Performance of Templates: time 0.02495/0.5038, allocations: 15.85 MB / 0.5285 GB, free: 30.71 MB / 382.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.sim & ./ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Rotational.TestFriction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches