Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001526/0.001533, allocations: 119.4 kB / 18.41 MB, free: 4.648 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001721/0.001721, allocations: 192.3 kB / 21.35 MB, free: 1.711 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.467/1.467, allocations: 222.9 MB / 247 MB, free: 4.219 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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=500,variableFilter="time|Inertia2.phi|Inertia2.w|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|gear.mode",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|Inertia2.phi|Inertia2.w|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|gear.mode",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001498/0.001498, allocations: 47.92 kB / 358.6 MB, free: 8.375 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09901/0.1005, allocations: 49.45 MB / 408.1 MB, free: 6.887 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.004122/0.1047, allocations: 2.727 MB / 410.8 MB, free: 4.148 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002067/0.1068, allocations: 1.088 MB / 411.9 MB, free: 3.051 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001683/0.107, allocations: 8 kB / 411.9 MB, free: 3.043 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002564/0.1072, allocations: 67.36 kB / 412 MB, free: 2.977 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005714/0.1078, allocations: 190.8 kB / 412.2 MB, free: 2.789 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004631/0.1083, allocations: 247.5 kB / 412.4 MB, free: 2.547 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006719/0.109, allocations: 0.6507 MB / 413.1 MB, free: 1.895 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002383/0.1092, allocations: 119.4 kB / 413.2 MB, free: 1.77 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003868/0.1096, allocations: 295.1 kB / 413.5 MB, free: 1.48 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004486/0.1101, allocations: 335 kB / 413.8 MB, free: 1.152 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.202e-05/0.1102, allocations: 52 kB / 413.8 MB, free: 1.102 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002746/0.1105, allocations: 147.8 kB / 414 MB, free: 0.957 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000181/0.1107, allocations: 151.5 kB / 414.1 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002596/0.1109, allocations: 246.9 kB / 414.4 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007827/0.1117, allocations: 0.6461 MB / 415 MB, free: 15.92 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.1117, allocations: 0 / 415 MB, free: 15.92 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.1118, allocations: 0 / 415 MB, free: 15.92 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.618e-06/0.1118, allocations: 4 kB / 415 MB, free: 15.91 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001639/0.1134, allocations: 0.8104 MB / 415.8 MB, free: 15.05 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.817e-05/0.1135, allocations: 15.83 kB / 415.9 MB, free: 15.04 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003314/0.1138, allocations: 68.59 kB / 415.9 MB, free: 14.97 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006197/0.1144, allocations: 374.5 kB / 416.3 MB, free: 14.57 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001327/0.1146, allocations: 88.97 kB / 416.4 MB, free: 14.47 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.164e-05/0.1147, allocations: 44.36 kB / 416.4 MB, free: 14.43 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001068/0.1157, allocations: 0.5567 MB / 417 MB, free: 13.86 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.929e-05/0.1158, allocations: 0 / 417 MB, free: 13.86 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.717e-05/0.1158, allocations: 20 kB / 417 MB, free: 13.84 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.238e-05/0.1159, allocations: 12 kB / 417 MB, free: 13.82 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001324/0.1172, allocations: 0.6363 MB / 417.6 MB, free: 13.19 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002436/0.1196, allocations: 1.291 MB / 418.9 MB, free: 11.84 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001159/0.1208, allocations: 0.5466 MB / 419.5 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000659/0.1215, allocations: 322.4 kB / 419.8 MB, free: 10.97 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.281e-05/0.1215, allocations: 12.5 kB / 419.8 MB, free: 10.96 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.672e-05/0.1216, allocations: 39.12 kB / 419.8 MB, free: 10.91 MB / 350.1 MB Notification: Performance of pre-optimization done (n=61): time 2.224e-06/0.1216, allocations: 0 / 419.8 MB, free: 10.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=69): time 0.007083/0.1287, allocations: 2.88 MB / 422.7 MB, free: 7.906 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.131e-05/0.1288, allocations: 93.61 kB / 422.8 MB, free: 7.797 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000462/0.1293, allocations: 330.9 kB / 423.1 MB, free: 7.461 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.041e-05/0.1293, allocations: 41.7 kB / 423.2 MB, free: 7.414 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001403/0.1295, allocations: 173.7 kB / 423.3 MB, free: 7.238 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002051/0.1297, allocations: 226.1 kB / 423.6 MB, free: 7.016 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002446/0.13, allocations: 126.3 kB / 423.7 MB, free: 6.887 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001735/0.1301, allocations: 346.8 kB / 424 MB, free: 6.539 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006254/0.1308, allocations: 289.2 kB / 424.3 MB, free: 6.254 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006829/0.1315, allocations: 350.5 kB / 424.7 MB, free: 5.902 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001098/0.1326, allocations: 0.5304 MB / 425.2 MB, free: 5.367 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/0.1326, allocations: 0 / 425.2 MB, free: 5.367 MB / 350.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001864/0.1345, allocations: 0.8853 MB / 426.1 MB, free: 4.473 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.612e-05/0.1345, allocations: 11.94 kB / 426.1 MB, free: 4.461 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.123e-06/0.1345, allocations: 0 / 426.1 MB, free: 4.461 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001147/0.1357, allocations: 482.3 kB / 426.6 MB, free: 3.988 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003836/0.1361, allocations: 75.89 kB / 426.6 MB, free: 3.914 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001446/0.1375, allocations: 1.083 MB / 427.7 MB, free: 2.805 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005091/0.138, allocations: 55.94 kB / 427.8 MB, free: 2.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.528e-05/0.1381, allocations: 27.98 kB / 427.8 MB, free: 2.723 MB / 350.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.0002731/0.1384, allocations: 181.7 kB / 428 MB, free: 2.535 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001118/0.1385, allocations: 47.66 kB / 428 MB, free: 2.488 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001705/0.1387, allocations: 67.77 kB / 428.1 MB, free: 2.422 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.123e-05/0.1387, allocations: 8 kB / 428.1 MB, free: 2.414 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.062e-05/0.1387, allocations: 0 / 428.1 MB, free: 2.414 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.022e-05/0.1387, allocations: 3.984 kB / 428.1 MB, free: 2.41 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003462/0.1422, allocations: 1.761 MB / 429.9 MB, free: 0.582 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.969e-06/0.1422, allocations: 0 / 429.9 MB, free: 0.582 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003727/0.1426, allocations: 75.88 kB / 429.9 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001027/0.1436, allocations: 460.9 kB / 430.4 MB, free: 56 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.308e-05/0.1437, allocations: 15.98 kB / 430.4 MB, free: 40 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1888/0.3325, allocations: 1.037 MB / 431.4 MB, free: 22.84 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.2e-06/0.3326, allocations: 3.906 kB / 431.4 MB, free: 22.84 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002254/0.3348, allocations: 1.303 MB / 432.7 MB, free: 22.69 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000228/0.3351, allocations: 175.2 kB / 432.9 MB, free: 22.6 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.043e-05/0.3352, allocations: 21.12 kB / 432.9 MB, free: 22.6 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004136/0.3356, allocations: 51.45 kB / 433 MB, free: 22.6 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001989/0.3358, allocations: 86.53 kB / 433.1 MB, free: 22.6 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.956e-05/0.3358, allocations: 24.59 kB / 433.1 MB, free: 22.6 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002673/0.3361, allocations: 248.5 kB / 433.3 MB, free: 22.52 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3361, allocations: 2.062 kB / 433.3 MB, free: 22.52 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004769/0.3366, allocations: 145.4 kB / 433.5 MB, free: 22.52 MB / 350.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.0002374/0.3369, allocations: 153.8 kB / 433.6 MB, free: 22.43 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001455/0.3383, allocations: 0.7147 MB / 434.3 MB, free: 22.42 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.3383, allocations: 0 / 434.3 MB, free: 22.42 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008109/0.3392, allocations: 389.1 kB / 434.7 MB, free: 22.41 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004857/0.3397, allocations: 50.62 kB / 434.8 MB, free: 22.41 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002646/0.3423, allocations: 1.153 MB / 435.9 MB, free: 22.03 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002516/0.3426, allocations: 0.8225 MB / 436.7 MB, free: 21.33 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001589/0.3427, allocations: 44.62 kB / 436.8 MB, free: 21.32 MB / 350.1 MB Notification: Performance of SimCode: time 4.11e-07/0.3427, allocations: 0 / 436.8 MB, free: 21.32 MB / 350.1 MB Notification: Performance of Templates: time 0.01219/0.3549, allocations: 7.248 MB / 444 MB, free: 20.34 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo2/LossyGearDemo2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" 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 [Calling sys.exit(0), Time elapsed: 9.101268013939261]