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.001404/0.001404, allocations: 96.25 kB / 20.96 MB, free: 3.469 MB / 18.57 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.001544/0.001544, allocations: 156.9 kB / 24.27 MB, free: 172 kB / 18.57 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.474/1.474, allocations: 177 MB / 204.4 MB, free: 5.617 MB / 186.7 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 1.493e-06/1.493e-06, allocations: 0 / 272.2 MB, free: 1.812 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.422e-05/3.572e-05, allocations: 2.312 kB / 272.2 MB, free: 1.809 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.004792/0.004828, allocations: 2.685 MB / 274.9 MB, free: 15.11 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002539/0.007368, allocations: 1.232 MB / 276.1 MB, free: 13.87 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001455/0.007513, allocations: 4 kB / 276.1 MB, free: 13.86 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000354/0.007867, allocations: 91.22 kB / 276.2 MB, free: 13.77 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005828/0.00845, allocations: 226.8 kB / 276.4 MB, free: 13.55 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005885/0.009038, allocations: 255.5 kB / 276.7 MB, free: 13.3 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008575/0.009896, allocations: 0.7286 MB / 277.4 MB, free: 12.57 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002213/0.01012, allocations: 83.97 kB / 277.5 MB, free: 12.49 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006831/0.0108, allocations: 447.1 kB / 277.9 MB, free: 12.05 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005015/0.0113, allocations: 323.3 kB / 278.2 MB, free: 11.73 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00011/0.01141, allocations: 56 kB / 278.3 MB, free: 11.68 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002919/0.0117, allocations: 151.8 kB / 278.4 MB, free: 11.53 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002292/0.01193, allocations: 167.5 kB / 278.6 MB, free: 11.37 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002605/0.01219, allocations: 199.6 kB / 278.8 MB, free: 11.17 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00103/0.01322, allocations: 0.7788 MB / 279.6 MB, free: 10.39 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.01323, allocations: 0 / 279.6 MB, free: 10.39 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.262e-06/0.01323, allocations: 0 / 279.6 MB, free: 10.39 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.364e-06/0.01324, allocations: 0 / 279.6 MB, free: 10.39 MB / 266.7 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.001854/0.01509, allocations: 0.7777 MB / 280.4 MB, free: 9.582 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.228e-05/0.01512, allocations: 8.031 kB / 280.4 MB, free: 9.574 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005309/0.01565, allocations: 108.6 kB / 280.5 MB, free: 9.469 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009281/0.01658, allocations: 324.4 kB / 280.8 MB, free: 9.129 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002121/0.01679, allocations: 152.4 kB / 280.9 MB, free: 8.953 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001207/0.01691, allocations: 40.33 kB / 281 MB, free: 8.914 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001266/0.01818, allocations: 0.5822 MB / 281.6 MB, free: 8.312 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.316e-05/0.0182, allocations: 4.172 kB / 281.6 MB, free: 8.309 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.438e-05/0.01827, allocations: 20.12 kB / 281.6 MB, free: 8.289 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.618e-05/0.01828, allocations: 12 kB / 281.6 MB, free: 8.277 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001499/0.01978, allocations: 0.6011 MB / 282.2 MB, free: 7.676 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002708/0.02249, allocations: 1.08 MB / 283.3 MB, free: 6.562 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001313/0.0238, allocations: 489.7 kB / 283.7 MB, free: 6.07 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006976/0.0245, allocations: 274.2 kB / 284 MB, free: 5.797 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.329e-05/0.02455, allocations: 12.5 kB / 284 MB, free: 5.785 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.032e-05/0.02459, allocations: 43.19 kB / 284.1 MB, free: 5.734 MB / 266.7 MB Notification: Performance of pre-optimization done (n=62): time 2.084e-06/0.0246, allocations: 0 / 284.1 MB, free: 5.734 MB / 266.7 MB Notification: Performance of matching and sorting (n=70): time 0.007647/0.03224, allocations: 2.442 MB / 286.5 MB, free: 3.246 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.754e-05/0.03233, allocations: 85.77 kB / 286.6 MB, free: 3.145 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005523/0.03288, allocations: 325.8 kB / 286.9 MB, free: 2.812 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 7.597e-05/0.03296, allocations: 45.64 kB / 287 MB, free: 2.762 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001736/0.03313, allocations: 173.6 kB / 287.1 MB, free: 2.586 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002555/0.03339, allocations: 246 kB / 287.4 MB, free: 2.344 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002568/0.03365, allocations: 126.2 kB / 287.5 MB, free: 2.215 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0004756/0.03412, allocations: 354.7 kB / 287.8 MB, free: 1.859 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006787/0.0348, allocations: 265.2 kB / 288.1 MB, free: 1.602 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007653/0.03556, allocations: 356.2 kB / 288.4 MB, free: 1.234 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001249/0.03681, allocations: 495.5 kB / 288.9 MB, free: 0.7422 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.03682, allocations: 0 / 288.9 MB, free: 0.7422 MB / 266.7 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.1083/0.1451, allocations: 0.8461 MB / 289.8 MB, free: 28.23 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.419e-05/0.1451, allocations: 5.125 kB / 289.8 MB, free: 28.23 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.01e-05/0.1451, allocations: 0 / 289.8 MB, free: 28.23 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001137/0.1463, allocations: 444.4 kB / 290.2 MB, free: 28.22 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004713/0.1467, allocations: 91.33 kB / 290.3 MB, free: 28.22 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001191/0.1479, allocations: 1.034 MB / 291.3 MB, free: 27.68 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005151/0.1484, allocations: 60.75 kB / 291.4 MB, free: 27.68 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.183e-05/0.1485, allocations: 26.42 kB / 291.4 MB, free: 27.68 MB / 266.7 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.0002421/0.1487, allocations: 183.5 kB / 291.6 MB, free: 27.57 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001552/0.1489, allocations: 65.89 kB / 291.7 MB, free: 27.57 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001455/0.149, allocations: 67.08 kB / 291.7 MB, free: 27.51 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.456e-06/0.149, allocations: 12.25 kB / 291.7 MB, free: 27.51 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.053e-06/0.1491, allocations: 0 / 291.7 MB, free: 27.51 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.604e-06/0.1491, allocations: 4.641 kB / 291.7 MB, free: 27.51 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002951/0.152, allocations: 1.503 MB / 293.3 MB, free: 26.8 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/0.152, allocations: 1.156 kB / 293.3 MB, free: 26.8 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003686/0.1524, allocations: 78.53 kB / 293.3 MB, free: 26.8 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009452/0.1533, allocations: 419.1 kB / 293.7 MB, free: 26.7 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.564e-05/0.1534, allocations: 30.23 kB / 293.8 MB, free: 26.69 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001048/0.1544, allocations: 0.982 MB / 294.7 MB, free: 25.98 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.504e-06/0.1544, allocations: 4.562 kB / 294.8 MB, free: 25.98 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002416/0.1569, allocations: 1.232 MB / 296 MB, free: 25.43 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002515/0.1571, allocations: 115.2 kB / 296.1 MB, free: 25.39 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.312e-05/0.1572, allocations: 23.56 kB / 296.1 MB, free: 25.38 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004651/0.1577, allocations: 53.7 kB / 296.2 MB, free: 25.37 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002238/0.1579, allocations: 92.16 kB / 296.3 MB, free: 25.36 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.471e-05/0.1579, allocations: 29.5 kB / 296.3 MB, free: 25.35 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002676/0.1582, allocations: 234.6 kB / 296.5 MB, free: 25.23 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1582, allocations: 3.938 kB / 296.5 MB, free: 25.22 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005198/0.1587, allocations: 143.5 kB / 296.7 MB, free: 25.2 MB / 266.7 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.001639/0.1604, allocations: 417 kB / 297.1 MB, free: 25.09 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001542/0.1619, allocations: 0.6321 MB / 297.7 MB, free: 24.89 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.524e-06/0.1619, allocations: 0 / 297.7 MB, free: 24.89 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008138/0.1627, allocations: 343.8 kB / 298 MB, free: 24.78 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005779/0.1633, allocations: 106.1 kB / 298.1 MB, free: 24.75 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002401/0.1657, allocations: 1.107 MB / 299.3 MB, free: 24.21 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001947/0.1659, allocations: 225 kB / 299.5 MB, free: 24.11 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002551/0.1662, allocations: 82.94 kB / 299.6 MB, free: 24.08 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001859/0.1663, allocations: 52.62 kB / 299.6 MB, free: 24.07 MB / 266.7 MB Notification: Performance of SimCode: time 1.272e-06/0.1663, allocations: 0 / 299.6 MB, free: 24.07 MB / 266.7 MB Notification: Performance of Templates: time 0.01265/0.179, allocations: 8.903 MB / 308.5 MB, free: 18.23 MB / 266.7 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo2/LossyGearDemo2.csv","/var/lib/jenkins/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.6418288089334965]