Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001951/0.001951, allocations: 77.7 kB / 21.25 MB, free: 0.5469 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001535/0.001535, allocations: 161.3 kB / 24.5 MB, free: 3.711 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.454/1.454, allocations: 177.1 MB / 204.7 MB, free: 8.969 MB / 190.1 MB " [Timeout remaining time 178] 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(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_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.003116/0.003116, allocations: 62.25 kB / 325.5 MB, free: 172 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1151/0.1183, allocations: 53.39 MB / 378.9 MB, free: 15.45 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.004673/0.1229, allocations: 2.694 MB / 381.6 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002444/0.1254, allocations: 1.221 MB / 382.8 MB, free: 11.52 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002553/0.1256, allocations: 7.938 kB / 382.8 MB, free: 11.51 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003595/0.126, allocations: 95.27 kB / 382.9 MB, free: 11.42 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006795/0.1267, allocations: 207 kB / 383.1 MB, free: 11.22 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006369/0.1273, allocations: 259.5 kB / 383.4 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008657/0.1282, allocations: 0.7172 MB / 384.1 MB, free: 10.25 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001903/0.1284, allocations: 79.97 kB / 384.2 MB, free: 10.16 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005761/0.1289, allocations: 335.1 kB / 384.5 MB, free: 9.828 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006334/0.1296, allocations: 354.8 kB / 384.9 MB, free: 9.48 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001075/0.1297, allocations: 60 kB / 384.9 MB, free: 9.422 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000301/0.13, allocations: 148 kB / 385.1 MB, free: 9.277 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002272/0.1302, allocations: 179.4 kB / 385.2 MB, free: 9.102 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002651/0.1305, allocations: 223.1 kB / 385.4 MB, free: 8.883 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008555/0.1313, allocations: 0.7239 MB / 386.2 MB, free: 8.156 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.1313, allocations: 0 / 386.2 MB, free: 8.156 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.1313, allocations: 4 kB / 386.2 MB, free: 8.152 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.424e-06/0.1313, allocations: 3.938 kB / 386.2 MB, free: 8.148 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: 100 * Number of variables: 100 Notification: Performance of Generate backend data structure: time 0.001676/0.133, allocations: 0.7777 MB / 387 MB, free: 7.34 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.406e-05/0.133, allocations: 8.031 kB / 387 MB, free: 7.332 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004265/0.1335, allocations: 72.62 kB / 387 MB, free: 7.262 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000626/0.1341, allocations: 317.2 kB / 387.3 MB, free: 6.926 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001844/0.1343, allocations: 152.4 kB / 387.5 MB, free: 6.75 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.75e-05/0.1344, allocations: 44.33 kB / 387.5 MB, free: 6.707 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001133/0.1355, allocations: 0.5817 MB / 388.1 MB, free: 6.109 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.558e-05/0.1355, allocations: 7.984 kB / 388.1 MB, free: 6.102 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.127e-05/0.1356, allocations: 16 kB / 388.1 MB, free: 6.086 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.748e-06/0.1356, allocations: 8 kB / 388.2 MB, free: 6.078 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001353/0.137, allocations: 0.605 MB / 388.8 MB, free: 5.473 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002411/0.1394, allocations: 1.072 MB / 389.8 MB, free: 4.367 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001186/0.1405, allocations: 493.7 kB / 390.3 MB, free: 3.871 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006258/0.1412, allocations: 270.2 kB / 390.6 MB, free: 3.605 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.434e-05/0.1412, allocations: 12.5 kB / 390.6 MB, free: 3.594 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.894e-05/0.1413, allocations: 51.12 kB / 390.6 MB, free: 3.535 MB / 350.1 MB Notification: Performance of pre-optimization done (n=62): time 2.084e-06/0.1413, allocations: 0 / 390.6 MB, free: 3.535 MB / 350.1 MB Notification: Performance of matching and sorting (n=70): time 0.00697/0.1482, allocations: 2.415 MB / 393.1 MB, free: 1.074 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.59e-05/0.1483, allocations: 89.64 kB / 393.1 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004511/0.1487, allocations: 325.8 kB / 393.5 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.713e-05/0.1488, allocations: 41.7 kB / 393.5 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001395/0.149, allocations: 177.6 kB / 393.7 MB, free: 428 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002145/0.1492, allocations: 253.9 kB / 393.9 MB, free: 172 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002137/0.1494, allocations: 126.3 kB / 394 MB, free: 36 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001916/0.1496, allocations: 346.8 kB / 394.4 MB, free: 15.69 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006366/0.1502, allocations: 269.2 kB / 394.6 MB, free: 15.43 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006974/0.1509, allocations: 352.2 kB / 395 MB, free: 15.06 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001165/0.1521, allocations: 495.5 kB / 395.5 MB, free: 14.57 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.1521, allocations: 0 / 395.5 MB, free: 14.57 MB / 366.1 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.00186/0.1539, allocations: 0.8181 MB / 396.3 MB, free: 13.75 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.922e-05/0.154, allocations: 7.938 kB / 396.3 MB, free: 13.74 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.292e-06/0.154, allocations: 0 / 396.3 MB, free: 13.74 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00113/0.1551, allocations: 445 kB / 396.7 MB, free: 13.3 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004008/0.1555, allocations: 91.86 kB / 396.8 MB, free: 13.21 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001627/0.1571, allocations: 1.022 MB / 397.8 MB, free: 12.16 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005257/0.1576, allocations: 67.92 kB / 397.9 MB, free: 12.1 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000105/0.1577, allocations: 23.98 kB / 397.9 MB, free: 12.07 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,33)} Notification: Performance of prepare postOptimizeDAE: time 0.0003694/0.1581, allocations: 181.8 kB / 398.1 MB, free: 11.89 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001164/0.1582, allocations: 39.77 kB / 398.1 MB, free: 11.85 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000151/0.1584, allocations: 63.73 kB / 398.2 MB, free: 11.79 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.897e-06/0.1584, allocations: 8 kB / 398.2 MB, free: 11.78 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.55e-06/0.1584, allocations: 0 / 398.2 MB, free: 11.78 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.778e-06/0.1584, allocations: 3.984 kB / 398.2 MB, free: 11.77 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003534/0.1619, allocations: 1.517 MB / 399.7 MB, free: 10.2 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-06/0.1619, allocations: 0 / 399.7 MB, free: 10.2 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003898/0.1623, allocations: 87.91 kB / 399.8 MB, free: 10.11 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00104/0.1634, allocations: 408.5 kB / 400.2 MB, free: 9.711 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.375e-05/0.1634, allocations: 19.97 kB / 400.2 MB, free: 9.691 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001337/0.1648, allocations: 0.9712 MB / 401.2 MB, free: 8.695 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.169e-06/0.1648, allocations: 8.047 kB / 401.2 MB, free: 8.688 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002652/0.1674, allocations: 1.215 MB / 402.4 MB, free: 7.449 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002531/0.1677, allocations: 107.7 kB / 402.5 MB, free: 7.344 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.248e-05/0.1678, allocations: 20 kB / 402.6 MB, free: 7.324 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004693/0.1682, allocations: 56 kB / 402.6 MB, free: 7.27 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002133/0.1685, allocations: 92.47 kB / 402.7 MB, free: 7.18 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.591e-05/0.1685, allocations: 23.97 kB / 402.7 MB, free: 7.156 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003117/0.1688, allocations: 237.2 kB / 403 MB, free: 6.926 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1688, allocations: 0 / 403 MB, free: 6.926 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005164/0.1693, allocations: 147.9 kB / 403.1 MB, free: 6.781 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,30)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001522/0.1709, allocations: 421.3 kB / 403.5 MB, free: 6.492 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001739/0.1726, allocations: 0.6351 MB / 404.2 MB, free: 5.859 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.759e-06/0.1726, allocations: 4 kB / 404.2 MB, free: 5.855 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008666/0.1735, allocations: 344.6 kB / 404.5 MB, free: 5.516 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005258/0.174, allocations: 64.41 kB / 404.6 MB, free: 5.449 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002736/0.1767, allocations: 1.135 MB / 405.7 MB, free: 4.285 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002391/0.177, allocations: 218 kB / 405.9 MB, free: 4.047 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002589/0.1772, allocations: 75.31 kB / 406 MB, free: 3.973 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001681/0.1774, allocations: 60.45 kB / 406 MB, free: 3.914 MB / 366.1 MB Notification: Performance of SimCode: time 4.51e-07/0.1774, allocations: 0 / 406 MB, free: 3.914 MB / 366.1 MB Notification: Performance of Templates: time 0.01623/0.1936, allocations: 8.888 MB / 414.9 MB, free: 11.07 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2 -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo2/LossyGearDemo2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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:DriveSine.amplitude,DriveSine.continuous,DriveSine.f,DriveSine.offset,DriveSine.phase,DriveSine.startTime,Inertia1.J,Inertia2.J,Inertia2.phi,Inertia2.w,bearingFriction.mode,bearingFriction.peak,bearingFriction.smoothness,bearingFriction.startBackward,bearingFriction.startForward,bearingFriction.tau_pos[1,1],bearingFriction.tau_pos[1,2],bearingFriction.tau_pos[2,1],bearingFriction.tau_pos[2,2],bearingFriction.w_small,fixed.phi0,gear.eta_mf1_0,gear.eta_mf2_0,gear.lossTable[1,1],gear.lossTable[1,2],gear.lossTable[1,3],gear.lossTable[1,4],gear.lossTable[1,5],gear.mode,gear.ratio,gear.smoothness,gear.tau_bf1_0,gear.tau_bf2_0,gear.tau_bf_a_0,load.duration,load.height,load.offset,load.startTime,time [Calling sys.exit(0), Time elapsed: 4.691409387043677]