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.001282/0.001281, allocations: 119.9 kB / 18.42 MB, free: 4.555 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001126/0.001126, allocations: 207.5 kB / 19.36 MB, free: 3.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.36/1.36, allocations: 227.4 MB / 247.5 MB, free: 10.35 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2242/0.2242, allocations: 46.1 MB / 344.9 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001342/0.001342, allocations: 79.66 kB / 419 MB, free: 19.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.111/0.1123, allocations: 62.44 MB / 481.5 MB, free: 4.543 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.003686/0.1161, allocations: 2.358 MB / 483.8 MB, free: 2.172 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001386/0.1175, allocations: 0.8997 MB / 484.7 MB, free: 1.266 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.966e-05/0.1176, allocations: 7.938 kB / 484.7 MB, free: 1.258 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002708/0.1179, allocations: 51.58 kB / 484.8 MB, free: 1.207 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001645/0.1181, allocations: 71.41 kB / 484.8 MB, free: 1.137 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003159/0.1184, allocations: 151.6 kB / 485 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003238/0.1187, allocations: 351.3 kB / 485.3 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001784/0.1189, allocations: 84.91 kB / 485.4 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002178/0.1191, allocations: 155.5 kB / 485.6 MB, free: 416 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002143/0.1193, allocations: 163.4 kB / 485.7 MB, free: 252 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.051e-05/0.1194, allocations: 24 kB / 485.8 MB, free: 228 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001398/0.1195, allocations: 83.98 kB / 485.8 MB, free: 144 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001112/0.1197, allocations: 75.73 kB / 485.9 MB, free: 68 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001402/0.1198, allocations: 147.4 kB / 486.1 MB, free: 15.92 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003797/0.1202, allocations: 374.8 kB / 486.4 MB, free: 15.55 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.1202, allocations: 0 / 486.4 MB, free: 15.55 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.1202, allocations: 0 / 486.4 MB, free: 15.55 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.676e-06/0.1202, allocations: 0 / 486.4 MB, free: 15.55 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: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.0008468/0.1211, allocations: 0.5809 MB / 487 MB, free: 14.93 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.361e-05/0.1211, allocations: 13.11 kB / 487 MB, free: 14.91 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001603/0.1213, allocations: 36.64 kB / 487 MB, free: 14.88 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003141/0.1216, allocations: 268.3 kB / 487.3 MB, free: 14.58 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.746e-05/0.1216, allocations: 16.94 kB / 487.3 MB, free: 14.56 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.038e-05/0.1217, allocations: 28.36 kB / 487.4 MB, free: 14.54 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004806/0.1222, allocations: 261.1 kB / 487.6 MB, free: 14.27 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.377e-05/0.1222, allocations: 4 kB / 487.6 MB, free: 14.27 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.927e-05/0.1223, allocations: 15.98 kB / 487.6 MB, free: 14.25 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.224e-06/0.1223, allocations: 4 kB / 487.6 MB, free: 14.25 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004787/0.1228, allocations: 238.1 kB / 487.9 MB, free: 14.02 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001245/0.124, allocations: 0.7327 MB / 488.6 MB, free: 13.23 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005055/0.1245, allocations: 246.4 kB / 488.8 MB, free: 12.98 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002398/0.1248, allocations: 136.7 kB / 489 MB, free: 12.85 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.063e-05/0.1248, allocations: 4 kB / 489 MB, free: 12.84 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.922e-05/0.1248, allocations: 34.56 kB / 489 MB, free: 12.8 MB / 366.1 MB Notification: Performance of pre-optimization done (n=26): time 1.362e-06/0.1249, allocations: 4 kB / 489 MB, free: 12.8 MB / 366.1 MB Notification: Performance of matching and sorting (n=34): time 0.002856/0.1277, allocations: 1.425 MB / 490.4 MB, free: 11.26 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.27e-05/0.1278, allocations: 55.41 kB / 490.5 MB, free: 11.19 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002022/0.128, allocations: 215.7 kB / 490.7 MB, free: 10.97 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.576e-05/0.128, allocations: 37.7 kB / 490.7 MB, free: 10.93 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.935e-05/0.1281, allocations: 132.7 kB / 490.9 MB, free: 10.79 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.036e-05/0.1282, allocations: 122.3 kB / 491 MB, free: 10.67 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001058/0.1283, allocations: 69.59 kB / 491.1 MB, free: 10.6 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001176/0.1284, allocations: 338.8 kB / 491.4 MB, free: 10.26 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002297/0.1287, allocations: 116 kB / 491.5 MB, free: 10.14 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002637/0.1289, allocations: 163.3 kB / 491.7 MB, free: 9.973 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003996/0.1293, allocations: 236.1 kB / 491.9 MB, free: 9.73 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.1294, allocations: 3.984 kB / 491.9 MB, free: 9.727 MB / 366.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0007866/0.1301, allocations: 429.8 kB / 492.3 MB, free: 9.297 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.423e-05/0.1302, allocations: 4 kB / 492.3 MB, free: 9.293 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.012e-06/0.1302, allocations: 7.938 kB / 492.3 MB, free: 9.285 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004207/0.1306, allocations: 192.6 kB / 492.5 MB, free: 9.094 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002135/0.1308, allocations: 55.95 kB / 492.6 MB, free: 9.039 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006766/0.1315, allocations: 0.7319 MB / 493.3 MB, free: 8.281 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002373/0.1318, allocations: 31.95 kB / 493.3 MB, free: 8.25 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.092e-05/0.1318, allocations: 16 kB / 493.3 MB, free: 8.234 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.0001444/0.132, allocations: 156.8 kB / 493.5 MB, free: 8.074 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.8e-05/0.132, allocations: 27.72 kB / 493.5 MB, free: 8.047 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.231e-05/0.1321, allocations: 38.64 kB / 493.6 MB, free: 8.008 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.957e-06/0.1321, allocations: 4 kB / 493.6 MB, free: 8.004 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.1321, allocations: 0 / 493.6 MB, free: 8.004 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.1321, allocations: 0 / 493.6 MB, free: 8.004 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001485/0.1336, allocations: 0.9438 MB / 494.5 MB, free: 6.992 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.007e-06/0.1336, allocations: 3.984 kB / 494.5 MB, free: 6.988 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002103/0.1339, allocations: 43.98 kB / 494.6 MB, free: 6.945 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000349/0.1342, allocations: 172.6 kB / 494.7 MB, free: 6.773 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.97e-05/0.1343, allocations: 19.97 kB / 494.7 MB, free: 6.754 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000594/0.1349, allocations: 0.685 MB / 495.4 MB, free: 6.043 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.233e-06/0.1349, allocations: 0 / 495.4 MB, free: 6.043 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001044/0.1359, allocations: 0.627 MB / 496.1 MB, free: 5.391 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001189/0.136, allocations: 124.8 kB / 496.2 MB, free: 5.25 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.316e-05/0.1361, allocations: 12 kB / 496.2 MB, free: 5.238 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002489/0.1364, allocations: 31.95 kB / 496.2 MB, free: 5.207 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001115/0.1365, allocations: 47.92 kB / 496.3 MB, free: 5.16 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.543e-05/0.1365, allocations: 12 kB / 496.3 MB, free: 5.148 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001274/0.1367, allocations: 157.6 kB / 496.4 MB, free: 4.996 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1367, allocations: 0 / 496.4 MB, free: 4.996 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003233/0.137, allocations: 72 kB / 496.5 MB, free: 4.926 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.0007882/0.1378, allocations: 363.2 kB / 496.9 MB, free: 4.68 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00066/0.1385, allocations: 307.8 kB / 497.2 MB, free: 4.379 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.1385, allocations: 0 / 497.2 MB, free: 4.379 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003341/0.1388, allocations: 163.8 kB / 497.3 MB, free: 4.219 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003752/0.1392, allocations: 45.27 kB / 497.4 MB, free: 4.18 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001713/0.1409, allocations: 0.7613 MB / 498.1 MB, free: 3.395 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002976/0.1412, allocations: 0.7564 MB / 498.9 MB, free: 2.613 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.26e-05/0.1413, allocations: 26.28 kB / 498.9 MB, free: 2.586 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.091e-05/0.1414, allocations: 27.42 kB / 498.9 MB, free: 2.559 MB / 366.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1414, allocations: 0 / 498.9 MB, free: 2.559 MB / 366.1 MB Notification: Performance of Templates: time 0.008291/0.1497, allocations: 5.11 MB / 0.4922 GB, free: 13.46 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 -s cvode -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