Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|gear.mode",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|gear.mode",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001137/0.001137, allocations: 106.2 kB / 18.25 MB, free: 4.773 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.00121/0.00121, allocations: 195.3 kB / 19.19 MB, free: 3.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.361/1.361, allocations: 205.1 MB / 225 MB, free: 12.3 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001609/0.001609, allocations: 48.14 kB / 281.3 MB, free: 3.191 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/0.1069, allocations: 46.63 MB / 327.9 MB, free: 4.496 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.005015/0.112, allocations: 2.724 MB / 330.7 MB, free: 1.746 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002607/0.1146, allocations: 1.128 MB / 331.8 MB, free: 0.6094 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003573/0.115, allocations: 8 kB / 331.8 MB, free: 0.6016 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003264/0.1154, allocations: 67.36 kB / 331.9 MB, free: 0.5352 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008939/0.1163, allocations: 198.8 kB / 332.1 MB, free: 348 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006724/0.117, allocations: 239.5 kB / 332.3 MB, free: 108 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001021/0.118, allocations: 0.6469 MB / 332.9 MB, free: 15.45 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000347/0.1184, allocations: 127.4 kB / 333.1 MB, free: 15.32 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006616/0.1191, allocations: 287.2 kB / 333.3 MB, free: 15.04 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006258/0.1197, allocations: 350.8 kB / 333.7 MB, free: 14.7 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001941/0.1199, allocations: 52 kB / 333.7 MB, free: 14.65 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004184/0.1203, allocations: 131.9 kB / 333.9 MB, free: 14.52 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002371/0.1206, allocations: 143.6 kB / 334 MB, free: 14.38 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003769/0.121, allocations: 254.8 kB / 334.3 MB, free: 14.13 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009147/0.1219, allocations: 0.6349 MB / 334.9 MB, free: 13.49 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.122e-06/0.1219, allocations: 0 / 334.9 MB, free: 13.49 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1219, allocations: 0 / 334.9 MB, free: 13.49 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.214e-05/0.122, allocations: 3.984 kB / 334.9 MB, free: 13.49 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.002149/0.1241, allocations: 0.7915 MB / 335.7 MB, free: 12.64 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.94e-05/0.1242, allocations: 19.89 kB / 335.7 MB, free: 12.62 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004701/0.1247, allocations: 64.34 kB / 335.8 MB, free: 12.56 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000657/0.1253, allocations: 358.4 kB / 336.1 MB, free: 12.17 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001612/0.1255, allocations: 100.9 kB / 336.2 MB, free: 12.06 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001052/0.1256, allocations: 40.38 kB / 336.3 MB, free: 12.02 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001214/0.1268, allocations: 0.5528 MB / 336.8 MB, free: 11.46 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.688e-05/0.1269, allocations: 7.984 kB / 336.8 MB, free: 11.45 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.594e-05/0.1269, allocations: 20 kB / 336.8 MB, free: 11.43 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.263e-05/0.127, allocations: 12 kB / 336.9 MB, free: 11.42 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001466/0.1284, allocations: 0.6285 MB / 337.5 MB, free: 10.79 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002638/0.1311, allocations: 1.299 MB / 338.8 MB, free: 9.434 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001193/0.1323, allocations: 0.5326 MB / 339.3 MB, free: 8.895 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006401/0.133, allocations: 330.5 kB / 339.6 MB, free: 8.57 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.285e-05/0.133, allocations: 16.48 kB / 339.6 MB, free: 8.555 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.162e-05/0.1331, allocations: 43.11 kB / 339.7 MB, free: 8.5 MB / 286.1 MB Notification: Performance of pre-optimization done (n=61): time 3.747e-06/0.1331, allocations: 0 / 339.7 MB, free: 8.5 MB / 286.1 MB Notification: Performance of matching and sorting (n=69): time 0.007098/0.1402, allocations: 2.86 MB / 342.6 MB, free: 5.52 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.988e-05/0.1403, allocations: 93.48 kB / 342.6 MB, free: 5.41 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004626/0.1408, allocations: 338.9 kB / 343 MB, free: 5.066 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 6.851e-05/0.1408, allocations: 41.7 kB / 343 MB, free: 5.02 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001293/0.141, allocations: 161.6 kB / 343.2 MB, free: 4.859 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002566/0.1413, allocations: 232.7 kB / 343.4 MB, free: 4.629 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002579/0.1415, allocations: 118.2 kB / 343.5 MB, free: 4.508 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001573/0.1417, allocations: 350.8 kB / 343.9 MB, free: 4.156 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006474/0.1423, allocations: 289.2 kB / 344.1 MB, free: 3.875 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006697/0.143, allocations: 358.4 kB / 344.5 MB, free: 3.512 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001103/0.1441, allocations: 0.5226 MB / 345 MB, free: 2.98 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.478e-06/0.1442, allocations: 0 / 345 MB, free: 2.98 MB / 286.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001855/0.146, allocations: 0.8851 MB / 345.9 MB, free: 2.086 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.293e-05/0.1461, allocations: 7.938 kB / 345.9 MB, free: 2.078 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.109e-05/0.1461, allocations: 4.062 kB / 345.9 MB, free: 2.074 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001113/0.1472, allocations: 477.6 kB / 346.4 MB, free: 1.605 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003849/0.1476, allocations: 87.88 kB / 346.5 MB, free: 1.52 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001397/0.149, allocations: 1.075 MB / 347.5 MB, free: 428 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005071/0.1495, allocations: 56 kB / 347.6 MB, free: 372 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.518e-05/0.1496, allocations: 27.98 kB / 347.6 MB, free: 344 kB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 15 (bearingFriction.free,gear.ideal,bearingFriction.mode,$PRE.bearingFriction.mode,bearingFriction.locked,bearingFriction.startBackward,$PRE.bearingFriction.startBackward,bearingFriction.startForward,$PRE.bearingFriction.startForward,gear.mode,$PRE.gear.mode,gear.locked,gear.startBackward,gear.startForward,gear.tau_aPos) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * 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 {(2,32)} Notification: Performance of prepare postOptimizeDAE: time 0.000292/0.1499, allocations: 181.5 kB / 347.8 MB, free: 152 kB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001141/0.15, allocations: 39.53 kB / 347.8 MB, free: 112 kB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001422/0.1502, allocations: 67.77 kB / 347.9 MB, free: 40 kB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.514e-06/0.1502, allocations: 8 kB / 347.9 MB, free: 32 kB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.506e-06/0.1502, allocations: 0 / 347.9 MB, free: 32 kB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.648e-06/0.1502, allocations: 3.984 kB / 347.9 MB, free: 28 kB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003388/0.1536, allocations: 1.754 MB / 349.7 MB, free: 14.21 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.408e-06/0.1536, allocations: 0 / 349.7 MB, free: 14.21 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003876/0.154, allocations: 83.91 kB / 349.7 MB, free: 14.12 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000962/0.155, allocations: 452.4 kB / 350.2 MB, free: 13.68 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.682e-05/0.1551, allocations: 19.98 kB / 350.2 MB, free: 13.66 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001269/0.1564, allocations: 1.044 MB / 351.3 MB, free: 12.59 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.329e-06/0.1564, allocations: 0 / 351.3 MB, free: 12.59 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002597/0.159, allocations: 1.302 MB / 352.6 MB, free: 11.27 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002646/0.1593, allocations: 176.6 kB / 352.7 MB, free: 11.08 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000113/0.1594, allocations: 23.94 kB / 352.8 MB, free: 11.05 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004571/0.1598, allocations: 52 kB / 352.8 MB, free: 11 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001944/0.16, allocations: 84.42 kB / 352.9 MB, free: 10.92 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.762e-05/0.1601, allocations: 27.98 kB / 352.9 MB, free: 10.89 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002988/0.1604, allocations: 241.9 kB / 353.1 MB, free: 10.66 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.1604, allocations: 0 / 353.1 MB, free: 10.66 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005592/0.161, allocations: 148 kB / 353.3 MB, free: 10.51 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 9 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 4 (bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 38 * 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 {(2,29)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002853/0.1613, allocations: 151.1 kB / 353.4 MB, free: 10.36 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001812/0.1631, allocations: 0.7469 MB / 354.2 MB, free: 9.609 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.857e-06/0.1631, allocations: 0 / 354.2 MB, free: 9.609 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000875/0.164, allocations: 396 kB / 354.6 MB, free: 9.219 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005341/0.1646, allocations: 54.25 kB / 354.6 MB, free: 9.168 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002817/0.1674, allocations: 1.151 MB / 355.8 MB, free: 7.98 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003895/0.1678, allocations: 0.8212 MB / 356.6 MB, free: 7.133 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001657/0.168, allocations: 47.41 kB / 356.6 MB, free: 7.086 MB / 302.1 MB Notification: Performance of SimCode: time 4.21e-07/0.168, allocations: 0 / 356.6 MB, free: 7.086 MB / 302.1 MB Notification: Performance of Templates: time 0.0119/0.1799, allocations: 7.189 MB / 363.8 MB, free: 15.89 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/LossyGearDemo2/LossyGearDemo2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,Inertia2.phi,Inertia2.w,bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode Variables in the result:Inertia2.phi,Inertia2.w,bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode,time