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.001735/0.001735, allocations: 116.5 kB / 18.45 MB, free: 4.602 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.001987/0.001987, allocations: 190.7 kB / 21.4 MB, free: 1.664 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.446/1.446, allocations: 225.6 MB / 249.8 MB, free: 3.613 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.001526/0.001526, allocations: 51.92 kB / 366.8 MB, free: 352 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1029/0.1045, allocations: 52.14 MB / 418.9 MB, free: 12.11 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.004363/0.1088, allocations: 2.745 MB / 421.7 MB, free: 9.355 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002139/0.111, allocations: 1.096 MB / 422.8 MB, free: 8.25 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001456/0.1111, allocations: 4 kB / 422.8 MB, free: 8.246 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002841/0.1114, allocations: 75.36 kB / 422.9 MB, free: 8.172 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006145/0.112, allocations: 205.6 kB / 423.1 MB, free: 7.973 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004705/0.1125, allocations: 239.6 kB / 423.3 MB, free: 7.738 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006919/0.1132, allocations: 0.643 MB / 423.9 MB, free: 7.094 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002062/0.1134, allocations: 83.47 kB / 424 MB, free: 7.004 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003924/0.1138, allocations: 295.1 kB / 424.3 MB, free: 6.715 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004779/0.1142, allocations: 362.8 kB / 424.7 MB, free: 6.359 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.533e-05/0.1143, allocations: 52 kB / 424.7 MB, free: 6.309 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002705/0.1146, allocations: 139.9 kB / 424.8 MB, free: 6.172 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002004/0.1148, allocations: 151.5 kB / 425 MB, free: 6.023 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002672/0.1151, allocations: 246.8 kB / 425.2 MB, free: 5.781 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008105/0.1159, allocations: 0.646 MB / 425.9 MB, free: 5.133 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.1159, allocations: 0 / 425.9 MB, free: 5.133 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.1159, allocations: 4 kB / 425.9 MB, free: 5.129 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.245e-06/0.1159, allocations: 0 / 425.9 MB, free: 5.129 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.001751/0.1177, allocations: 0.8104 MB / 426.7 MB, free: 4.27 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.693e-05/0.1177, allocations: 11.89 kB / 426.7 MB, free: 4.258 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003577/0.118, allocations: 72.58 kB / 426.8 MB, free: 4.188 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006255/0.1187, allocations: 362.6 kB / 427.1 MB, free: 3.793 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001405/0.1188, allocations: 92.95 kB / 427.2 MB, free: 3.691 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.094e-05/0.1189, allocations: 44.38 kB / 427.3 MB, free: 3.648 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001169/0.1201, allocations: 0.5684 MB / 427.8 MB, free: 3.066 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.083e-05/0.1201, allocations: 0 / 427.8 MB, free: 3.066 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.641e-05/0.1202, allocations: 16 kB / 427.9 MB, free: 3.051 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.564e-05/0.1202, allocations: 12 kB / 427.9 MB, free: 3.039 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001412/0.1216, allocations: 0.6363 MB / 428.5 MB, free: 2.402 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002645/0.1242, allocations: 1.295 MB / 429.8 MB, free: 1.051 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001239/0.1255, allocations: 0.5098 MB / 430.3 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006573/0.1261, allocations: 294.4 kB / 430.6 MB, free: 248 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.338e-05/0.1262, allocations: 12.67 kB / 430.6 MB, free: 236 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.213e-05/0.1262, allocations: 47.06 kB / 430.7 MB, free: 176 kB / 350.1 MB Notification: Performance of pre-optimization done (n=61): time 2.094e-06/0.1262, allocations: 0 / 430.7 MB, free: 176 kB / 350.1 MB Notification: Performance of matching and sorting (n=69): time 0.007543/0.1338, allocations: 2.849 MB / 433.5 MB, free: 13.2 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.447e-05/0.1339, allocations: 93.59 kB / 433.6 MB, free: 13.09 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004354/0.1343, allocations: 327 kB / 433.9 MB, free: 12.76 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.589e-05/0.1344, allocations: 49.69 kB / 434 MB, free: 12.71 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001273/0.1345, allocations: 157.8 kB / 434.1 MB, free: 12.55 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002252/0.1347, allocations: 245.9 kB / 434.4 MB, free: 12.3 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002249/0.1349, allocations: 126.2 kB / 434.5 MB, free: 12.18 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001793/0.1351, allocations: 346.8 kB / 434.8 MB, free: 11.83 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000638/0.1358, allocations: 293.2 kB / 435.1 MB, free: 11.54 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007113/0.1365, allocations: 354.5 kB / 435.4 MB, free: 11.18 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001141/0.1376, allocations: 0.5227 MB / 436 MB, free: 10.66 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.1376, allocations: 0 / 436 MB, free: 10.66 MB / 366.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.00185/0.1395, allocations: 0.8735 MB / 436.8 MB, free: 9.773 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.12e-05/0.1395, allocations: 10.12 kB / 436.9 MB, free: 9.766 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.483e-06/0.1395, allocations: 0 / 436.9 MB, free: 9.766 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001169/0.1407, allocations: 478.4 kB / 437.3 MB, free: 9.297 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003866/0.141, allocations: 87.94 kB / 437.4 MB, free: 9.211 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001443/0.1425, allocations: 1.075 MB / 438.5 MB, free: 8.109 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004819/0.143, allocations: 64.02 kB / 438.5 MB, free: 8.047 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.668e-05/0.143, allocations: 24 kB / 438.6 MB, free: 8.023 MB / 366.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.0002653/0.1433, allocations: 181.6 kB / 438.7 MB, free: 7.836 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001064/0.1434, allocations: 43.72 kB / 438.8 MB, free: 7.793 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001749/0.1436, allocations: 67.77 kB / 438.9 MB, free: 7.727 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.112e-06/0.1436, allocations: 4 kB / 438.9 MB, free: 7.723 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/0.1436, allocations: 4 kB / 438.9 MB, free: 7.719 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.247e-06/0.1436, allocations: 7.984 kB / 438.9 MB, free: 7.711 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003478/0.1471, allocations: 1.733 MB / 440.6 MB, free: 5.91 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.447e-06/0.1471, allocations: 0 / 440.6 MB, free: 5.91 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003912/0.1475, allocations: 75.89 kB / 440.7 MB, free: 5.836 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001083/0.1486, allocations: 460.9 kB / 441.1 MB, free: 5.383 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.184e-05/0.1486, allocations: 19.97 kB / 441.1 MB, free: 5.363 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001378/0.15, allocations: 1.036 MB / 442.2 MB, free: 4.301 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.684e-06/0.15, allocations: 0 / 442.2 MB, free: 4.301 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002682/0.1527, allocations: 1.287 MB / 443.5 MB, free: 2.988 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000246/0.1529, allocations: 180.8 kB / 443.6 MB, free: 2.793 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.744e-05/0.153, allocations: 24 kB / 443.7 MB, free: 2.77 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004516/0.1535, allocations: 51.94 kB / 443.7 MB, free: 2.719 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002193/0.1537, allocations: 88.36 kB / 443.8 MB, free: 2.633 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.936e-05/0.1537, allocations: 19.98 kB / 443.8 MB, free: 2.613 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003205/0.154, allocations: 245.9 kB / 444.1 MB, free: 2.371 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.154, allocations: 0 / 444.1 MB, free: 2.371 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000503/0.1545, allocations: 147.9 kB / 444.2 MB, free: 2.227 MB / 366.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.0002933/0.1548, allocations: 159 kB / 444.4 MB, free: 2.059 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001634/0.1565, allocations: 0.6611 MB / 445 MB, free: 1.398 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.1565, allocations: 0 / 445 MB, free: 1.398 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008523/0.1573, allocations: 360.1 kB / 445.4 MB, free: 1.047 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004873/0.1578, allocations: 54.69 kB / 445.4 MB, free: 0.9922 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1906/0.3484, allocations: 1.152 MB / 446.6 MB, free: 31.55 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002224/0.3487, allocations: 0.8192 MB / 447.4 MB, free: 30.86 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002251/0.3489, allocations: 46.75 kB / 447.5 MB, free: 30.85 MB / 366.1 MB Notification: Performance of SimCode: time 1.022e-06/0.3489, allocations: 0 / 447.5 MB, free: 30.85 MB / 366.1 MB Notification: Performance of Templates: time 0.01421/0.3631, allocations: 7.29 MB / 454.7 MB, free: 30.4 MB / 366.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: 8.981686848215759]