Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.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.ForUsersGuide.SupportTorque1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia4.phi|inertia4.w|bearingFriction1.mode|bearingFriction1.startBackward|bearingFriction1.startForward",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1") translateModel(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia4.phi|inertia4.w|bearingFriction1.mode|bearingFriction1.startBackward|bearingFriction1.startForward",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001316/0.001316, allocations: 109.1 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.001207/0.001207, 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.346/1.346, allocations: 227.3 MB / 246.9 MB, free: 10.71 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2256/0.2256, allocations: 46.1 MB / 344.3 MB, free: 11.79 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001392/0.001392, allocations: 76.53 kB / 417.5 MB, free: 20.19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1116/0.113, allocations: 62.44 MB / 479.9 MB, free: 5.719 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.003746/0.1168, allocations: 2.401 MB / 482.3 MB, free: 3.301 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001417/0.1183, allocations: 0.8921 MB / 483.2 MB, free: 2.402 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001182/0.1184, allocations: 7.938 kB / 483.2 MB, free: 2.395 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002724/0.1187, allocations: 47.75 kB / 483.3 MB, free: 2.348 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001763/0.1189, allocations: 67.52 kB / 483.3 MB, free: 2.281 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003015/0.1192, allocations: 119.8 kB / 483.5 MB, free: 2.164 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003204/0.1196, allocations: 343.3 kB / 483.8 MB, free: 1.828 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001707/0.1197, allocations: 69.36 kB / 483.9 MB, free: 1.758 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002482/0.12, allocations: 143.5 kB / 484 MB, free: 1.617 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002108/0.1202, allocations: 155.4 kB / 484.2 MB, free: 1.465 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.416e-05/0.1203, allocations: 16 kB / 484.2 MB, free: 1.449 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001601/0.1204, allocations: 79.97 kB / 484.2 MB, free: 1.371 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001085/0.1206, allocations: 59.8 kB / 484.3 MB, free: 1.312 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001347/0.1207, allocations: 131.4 kB / 484.4 MB, free: 1.184 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003075/0.121, allocations: 279.5 kB / 484.7 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.121, allocations: 0 / 484.7 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.022e-06/0.121, allocations: 4 kB / 484.7 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.392e-06/0.1211, allocations: 0 / 484.7 MB, free: 0.9062 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: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.0009644/0.122, allocations: 0.5732 MB / 485.3 MB, free: 292 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.782e-05/0.1221, allocations: 17.95 kB / 485.3 MB, free: 276 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001764/0.1223, allocations: 28.66 kB / 485.3 MB, free: 248 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000289/0.1226, allocations: 258.5 kB / 485.6 MB, free: 15.95 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.257e-05/0.1226, allocations: 20.94 kB / 485.6 MB, free: 15.93 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.277e-05/0.1227, allocations: 24.38 kB / 485.6 MB, free: 15.91 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005356/0.1232, allocations: 273 kB / 485.9 MB, free: 15.64 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.616e-05/0.1232, allocations: 0 / 485.9 MB, free: 15.64 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.442e-05/0.1233, allocations: 12 kB / 485.9 MB, free: 15.62 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.024e-06/0.1233, allocations: 4 kB / 485.9 MB, free: 15.62 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005048/0.1238, allocations: 238.1 kB / 486.1 MB, free: 15.39 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00132/0.1251, allocations: 0.7441 MB / 486.9 MB, free: 14.59 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005464/0.1257, allocations: 246.4 kB / 487.1 MB, free: 14.34 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002591/0.1259, allocations: 140.8 kB / 487.3 MB, free: 14.2 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.008e-05/0.126, allocations: 12.06 kB / 487.3 MB, free: 14.19 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.038e-05/0.126, allocations: 34.56 kB / 487.3 MB, free: 14.15 MB / 366.1 MB Notification: Performance of pre-optimization done (n=26): time 1.482e-06/0.126, allocations: 0 / 487.3 MB, free: 14.15 MB / 366.1 MB Notification: Performance of matching and sorting (n=34): time 0.00309/0.1291, allocations: 1.405 MB / 488.7 MB, free: 12.63 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.4e-05/0.1292, allocations: 63.34 kB / 488.8 MB, free: 12.55 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002178/0.1294, allocations: 211.7 kB / 489 MB, free: 12.34 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.767e-05/0.1295, allocations: 33.7 kB / 489 MB, free: 12.3 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.417e-05/0.1296, allocations: 140.7 kB / 489.2 MB, free: 12.16 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.866e-05/0.1297, allocations: 118.3 kB / 489.3 MB, free: 12.04 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001145/0.1298, allocations: 65.69 kB / 489.3 MB, free: 11.97 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001331/0.1299, allocations: 338.8 kB / 489.7 MB, free: 11.63 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002454/0.1302, allocations: 116 kB / 489.8 MB, free: 11.52 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002807/0.1305, allocations: 167.3 kB / 489.9 MB, free: 11.34 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004239/0.1309, allocations: 236.1 kB / 490.2 MB, free: 11.1 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.302e-06/0.1309, allocations: 0 / 490.2 MB, free: 11.1 MB / 366.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0008474/0.1318, allocations: 429.7 kB / 490.6 MB, free: 10.67 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.74e-05/0.1318, allocations: 8 kB / 490.6 MB, free: 10.66 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.035e-06/0.1318, allocations: 3.938 kB / 490.6 MB, free: 10.66 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005202/0.1323, allocations: 200.1 kB / 490.8 MB, free: 10.46 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002249/0.1326, allocations: 59.84 kB / 490.9 MB, free: 10.41 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007513/0.1333, allocations: 0.7242 MB / 491.6 MB, free: 9.656 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000266/0.1336, allocations: 35.95 kB / 491.6 MB, free: 9.621 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.071e-05/0.1337, allocations: 16.05 kB / 491.6 MB, free: 9.605 MB / 366.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: 8 (bearingFriction1.free,bearingFriction1.mode,$PRE.bearingFriction1.mode,bearingFriction1.locked,bearingFriction1.startBackward,$PRE.bearingFriction1.startBackward,bearingFriction1.startForward,$PRE.bearingFriction1.startForward) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 29 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,13)} Notification: Performance of prepare postOptimizeDAE: time 0.0001566/0.1338, allocations: 149.7 kB / 491.8 MB, free: 9.449 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.27e-05/0.1339, allocations: 23.72 kB / 491.8 MB, free: 9.426 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.357e-05/0.134, allocations: 34.64 kB / 491.8 MB, free: 9.391 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.389e-06/0.134, allocations: 4 kB / 491.8 MB, free: 9.387 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/0.134, allocations: 0 / 491.8 MB, free: 9.387 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.671e-06/0.134, allocations: 4 kB / 491.8 MB, free: 9.383 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001629/0.1356, allocations: 0.9517 MB / 492.8 MB, free: 8.363 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.1357, allocations: 4 kB / 492.8 MB, free: 8.359 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002226/0.1359, allocations: 47.95 kB / 492.8 MB, free: 8.312 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003767/0.1363, allocations: 176.7 kB / 493 MB, free: 8.137 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.957e-05/0.1363, allocations: 8 kB / 493 MB, free: 8.129 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006464/0.137, allocations: 0.7044 MB / 493.7 MB, free: 7.398 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.137, allocations: 4.062 kB / 493.7 MB, free: 7.395 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001138/0.1381, allocations: 0.599 MB / 494.3 MB, free: 6.773 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001327/0.1383, allocations: 128.8 kB / 494.5 MB, free: 6.629 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.573e-05/0.1384, allocations: 12 kB / 494.5 MB, free: 6.617 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002539/0.1386, allocations: 40.02 kB / 494.5 MB, free: 6.578 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001181/0.1387, allocations: 43.92 kB / 494.5 MB, free: 6.535 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.511e-05/0.1388, allocations: 11.98 kB / 494.6 MB, free: 6.523 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001461/0.1389, allocations: 153.5 kB / 494.7 MB, free: 6.375 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.1389, allocations: 0 / 494.7 MB, free: 6.375 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003674/0.1393, allocations: 68 kB / 494.8 MB, free: 6.309 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (inertia3.phi,inertia3.w) * Number of discrete variables: 4 (bearingFriction1.startForward,bearingFriction1.startBackward,bearingFriction1.locked,bearingFriction1.mode) * Number of discrete states: 3 (bearingFriction1.mode,bearingFriction1.startBackward,bearingFriction1.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 23 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,10)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008667/0.1402, allocations: 372.5 kB / 495.1 MB, free: 6.055 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007473/0.1409, allocations: 315.6 kB / 495.4 MB, free: 5.746 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.141, allocations: 4.062 kB / 495.5 MB, free: 5.742 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003437/0.1413, allocations: 151.9 kB / 495.6 MB, free: 5.594 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004303/0.1417, allocations: 45.72 kB / 495.6 MB, free: 5.555 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001943/0.1437, allocations: 0.8918 MB / 496.5 MB, free: 4.633 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003338/0.1441, allocations: 0.7564 MB / 497.3 MB, free: 3.844 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.895e-05/0.1442, allocations: 23.42 kB / 497.3 MB, free: 3.824 MB / 366.1 MB Notification: Performance of SimCode: time 7.12e-07/0.1442, allocations: 0 / 497.3 MB, free: 3.824 MB / 366.1 MB Notification: Performance of Templates: time 0.006407/0.1506, allocations: 4.461 MB / 0.49 GB, free: 15.36 MB / 382.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.sim & ./ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/SupportTorque1/SupportTorque1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches