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.001495/0.001495, allocations: 110.9 kB / 17.86 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001912/0.001912, allocations: 209.7 kB / 18.79 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.391/1.391, allocations: 227.4 MB / 246.9 MB, free: 8.996 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2276/0.2276, allocations: 46.11 MB / 344.3 MB, free: 11.56 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001464/0.001464, allocations: 81.95 kB / 417.5 MB, free: 20.15 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1104/0.1119, allocations: 62.44 MB / 479.9 MB, free: 5.684 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.005465/0.1174, allocations: 4.102 MB / 484 MB, free: 1.551 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002567/0.12, allocations: 1.485 MB / 485.5 MB, free: 64 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004498/0.1205, allocations: 15.94 kB / 485.5 MB, free: 48 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004523/0.1209, allocations: 95.38 kB / 485.6 MB, free: 15.95 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006593/0.1217, allocations: 246.5 kB / 485.9 MB, free: 15.71 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006406/0.1223, allocations: 315.5 kB / 486.2 MB, free: 15.4 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001058/0.1234, allocations: 1.038 MB / 487.2 MB, free: 14.36 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002678/0.1237, allocations: 166 kB / 487.4 MB, free: 14.19 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006295/0.1243, allocations: 442.4 kB / 487.8 MB, free: 13.75 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006279/0.1249, allocations: 494.1 kB / 488.3 MB, free: 13.27 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000156/0.1251, allocations: 48 kB / 488.3 MB, free: 13.22 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002605/0.1254, allocations: 104 kB / 488.4 MB, free: 13.12 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002366/0.1256, allocations: 203.2 kB / 488.6 MB, free: 12.92 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003921/0.126, allocations: 397.8 kB / 489 MB, free: 12.53 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006644/0.1267, allocations: 0.729 MB / 489.8 MB, free: 11.8 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.1267, allocations: 0 / 489.8 MB, free: 11.8 MB / 366.1 MB Notification: Performance of FrontEnd: time 9.02e-07/0.1267, allocations: 0 / 489.8 MB, free: 11.8 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.875e-05/0.1267, allocations: 0 / 489.8 MB, free: 11.8 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.002392/0.1291, allocations: 1.157 MB / 490.9 MB, free: 10.59 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.469e-05/0.1292, allocations: 12.88 kB / 490.9 MB, free: 10.58 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005397/0.1297, allocations: 123.8 kB / 491 MB, free: 10.46 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000639/0.1304, allocations: 477.4 kB / 491.5 MB, free: 9.953 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.145e-05/0.1305, allocations: 53.69 kB / 491.6 MB, free: 9.898 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001324/0.1306, allocations: 64.12 kB / 491.6 MB, free: 9.836 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00152/0.1321, allocations: 0.8184 MB / 492.4 MB, free: 8.984 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.645e-05/0.1322, allocations: 11.91 kB / 492.5 MB, free: 8.973 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.912e-05/0.1323, allocations: 20 kB / 492.5 MB, free: 8.953 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.488e-05/0.1323, allocations: 16 kB / 492.5 MB, free: 8.938 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001906/0.1342, allocations: 0.7405 MB / 493.2 MB, free: 8.199 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006532/0.1407, allocations: 2.593 MB / 495.8 MB, free: 5.484 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002204/0.143, allocations: 0.6816 MB / 496.5 MB, free: 4.77 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001171/0.1442, allocations: 375.2 kB / 496.9 MB, free: 4.391 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.206e-05/0.1443, allocations: 8 kB / 496.9 MB, free: 4.383 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.766e-05/0.1443, allocations: 46.5 kB / 496.9 MB, free: 4.328 MB / 366.1 MB Notification: Performance of pre-optimization done (n=79): time 4.298e-06/0.1444, allocations: 0 / 496.9 MB, free: 4.328 MB / 366.1 MB Notification: Performance of matching and sorting (n=83): time 0.01236/0.1567, allocations: 3.529 MB / 0.4887 GB, free: 0.5391 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001197/0.1569, allocations: 140.5 kB / 0.4889 GB, free: 380 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008932/0.1578, allocations: 477.9 kB / 0.4893 GB, free: 15.89 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000141/0.158, allocations: 57.69 kB / 0.4894 GB, free: 15.83 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002857/0.1583, allocations: 280.6 kB / 0.4896 GB, free: 15.55 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004252/0.1587, allocations: 288.1 kB / 0.4899 GB, free: 15.27 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004862/0.1592, allocations: 166.5 kB / 0.4901 GB, free: 15.1 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002222/0.1594, allocations: 370.8 kB / 0.4904 GB, free: 14.73 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001314/0.1608, allocations: 365.8 kB / 0.4908 GB, free: 14.37 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001462/0.1622, allocations: 0.5215 MB / 0.4913 GB, free: 13.79 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002142/0.1644, allocations: 0.6959 MB / 0.492 GB, free: 13.04 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.152e-05/0.1644, allocations: 4 kB / 0.492 GB, free: 13.04 MB / 382.1 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.004401/0.1688, allocations: 1.213 MB / 0.4932 GB, free: 11.8 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.97e-05/0.1689, allocations: 4 kB / 0.4932 GB, free: 11.8 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.553e-05/0.1689, allocations: 4 kB / 0.4932 GB, free: 11.8 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002043/0.171, allocations: 0.5773 MB / 0.4937 GB, free: 11.21 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008048/0.1718, allocations: 143.8 kB / 0.4939 GB, free: 11.07 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005456/0.1773, allocations: 3.67 MB / 0.4974 GB, free: 7.188 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001378/0.1787, allocations: 151.9 kB / 0.4976 GB, free: 7.039 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001454/0.1788, allocations: 43.86 kB / 0.4976 GB, free: 6.996 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.0005728/0.1794, allocations: 224.2 kB / 0.4978 GB, free: 6.766 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003967/0.1798, allocations: 75.14 kB / 0.4979 GB, free: 6.691 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002527/0.1801, allocations: 88.84 kB / 0.498 GB, free: 6.605 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.317e-05/0.1801, allocations: 8 kB / 0.498 GB, free: 6.598 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.578e-06/0.1801, allocations: 0 / 0.498 GB, free: 6.598 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.186e-05/0.1802, allocations: 3.984 kB / 0.498 GB, free: 6.594 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006036/0.1862, allocations: 2.171 MB / 0.5001 GB, free: 4.352 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.354e-06/0.1863, allocations: 0 / 0.5001 GB, free: 4.352 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008586/0.1871, allocations: 119.8 kB / 0.5002 GB, free: 4.234 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002206/0.1893, allocations: 0.5303 MB / 0.5008 GB, free: 3.691 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000117/0.1895, allocations: 27.97 kB / 0.5008 GB, free: 3.664 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2204/0.4099, allocations: 3.543 MB / 0.5043 GB, free: 40.44 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.088e-06/0.4099, allocations: 1.422 kB / 0.5043 GB, free: 40.44 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003726/0.4136, allocations: 1.726 MB / 0.5059 GB, free: 40.02 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003793/0.4141, allocations: 226.5 kB / 0.5062 GB, free: 39.93 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001402/0.4142, allocations: 30.27 kB / 0.5062 GB, free: 39.93 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008629/0.4151, allocations: 122.3 kB / 0.5063 GB, free: 39.93 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005041/0.4156, allocations: 185.4 kB / 0.5065 GB, free: 39.93 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.688e-05/0.4157, allocations: 39 kB / 0.5065 GB, free: 39.93 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004206/0.4161, allocations: 325.4 kB / 0.5068 GB, free: 39.84 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.4161, allocations: 0 / 0.5068 GB, free: 39.84 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009643/0.4171, allocations: 209.9 kB / 0.507 GB, free: 39.84 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.0009105/0.418, allocations: 402.2 kB / 0.5074 GB, free: 39.71 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002239/0.4202, allocations: 1.031 MB / 0.5084 GB, free: 39.48 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.4203, allocations: 0 / 0.5084 GB, free: 39.48 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001292/0.4216, allocations: 0.6236 MB / 0.509 GB, free: 39.2 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001093/0.4227, allocations: 122.8 kB / 0.5091 GB, free: 39.16 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004527/0.4272, allocations: 2.481 MB / 0.5116 GB, free: 37.71 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004664/0.4277, allocations: 0.928 MB / 0.5125 GB, free: 37 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002331/0.4279, allocations: 58.77 kB / 0.5125 GB, free: 36.99 MB / 382.1 MB Notification: Performance of SimCode: time 9.32e-07/0.4279, allocations: 0 / 0.5125 GB, free: 36.99 MB / 382.1 MB Notification: Performance of Templates: time 0.02423/0.4522, allocations: 18.56 MB / 0.5307 GB, free: 28.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/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_trunk_ModelicaTest.Rotational.TestFriction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches