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.001929/0.001929, allocations: 91.61 kB / 20.96 MB, free: 3.312 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.002152/0.002152, allocations: 156.9 kB / 24.27 MB, free: 12 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.561/1.561, allocations: 177 MB / 204.4 MB, free: 5.652 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.593e-06/1.593e-06, allocations: 0 / 272.2 MB, free: 1.84 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.563e-05/2.722e-05, allocations: 2.312 kB / 272.2 MB, free: 1.836 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.004774/0.004801, allocations: 2.839 MB / 275 MB, free: 14.98 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002872/0.007673, allocations: 1.24 MB / 276.3 MB, free: 13.73 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002138/0.007887, allocations: 7.938 kB / 276.3 MB, free: 13.73 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003482/0.008235, allocations: 95.2 kB / 276.4 MB, free: 13.63 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006132/0.008848, allocations: 226.8 kB / 276.6 MB, free: 13.41 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006081/0.009456, allocations: 263.4 kB / 276.8 MB, free: 13.16 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008605/0.01032, allocations: 0.7286 MB / 277.6 MB, free: 12.43 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002227/0.01054, allocations: 87.95 kB / 277.7 MB, free: 12.34 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006919/0.01123, allocations: 443.1 kB / 278.1 MB, free: 11.9 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005149/0.01175, allocations: 323.3 kB / 278.4 MB, free: 11.59 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001531/0.0119, allocations: 56 kB / 278.5 MB, free: 11.53 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003915/0.01229, allocations: 155.8 kB / 278.6 MB, free: 11.38 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002392/0.01253, allocations: 159.5 kB / 278.8 MB, free: 11.22 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002768/0.01281, allocations: 203.6 kB / 279 MB, free: 11.02 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001076/0.01388, allocations: 0.7788 MB / 279.7 MB, free: 10.24 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.01389, allocations: 4 kB / 279.8 MB, free: 10.24 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.01389, allocations: 3.938 kB / 279.8 MB, free: 10.23 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.314e-06/0.0139, allocations: 0 / 279.8 MB, free: 10.23 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.001874/0.01577, allocations: 0.8813 MB / 280.6 MB, free: 9.316 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.614e-05/0.01581, allocations: 8.031 kB / 280.6 MB, free: 9.309 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005367/0.01634, allocations: 108.6 kB / 280.8 MB, free: 9.203 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000672/0.01701, allocations: 311.3 kB / 281.1 MB, free: 8.875 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002183/0.01723, allocations: 156.3 kB / 281.2 MB, free: 8.695 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000113/0.01735, allocations: 44.33 kB / 281.3 MB, free: 8.652 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001228/0.01857, allocations: 0.576 MB / 281.8 MB, free: 8.055 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.021e-05/0.01859, allocations: 192 / 281.8 MB, free: 8.055 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.064e-05/0.01865, allocations: 20.12 kB / 281.8 MB, free: 8.035 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.359e-05/0.01867, allocations: 12 kB / 281.9 MB, free: 8.023 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001401/0.02007, allocations: 0.5504 MB / 282.4 MB, free: 7.473 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00298/0.02305, allocations: 1.148 MB / 283.6 MB, free: 6.285 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001208/0.02426, allocations: 470.1 kB / 284 MB, free: 5.812 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006248/0.02488, allocations: 253.3 kB / 284.3 MB, free: 5.559 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.096e-05/0.02494, allocations: 20.44 kB / 284.3 MB, free: 5.539 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.133e-05/0.02498, allocations: 41.88 kB / 284.3 MB, free: 5.488 MB / 266.7 MB Notification: Performance of pre-optimization done (n=62): time 2.114e-06/0.02499, allocations: 4 kB / 284.3 MB, free: 5.484 MB / 266.7 MB Notification: Performance of matching and sorting (n=70): time 0.007035/0.03202, allocations: 2.329 MB / 286.7 MB, free: 3.098 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.974e-05/0.0321, allocations: 85.77 kB / 286.7 MB, free: 2.996 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005225/0.03262, allocations: 360.3 kB / 287.1 MB, free: 2.629 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 7.662e-05/0.0327, allocations: 49.69 kB / 287.1 MB, free: 2.574 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001936/0.03289, allocations: 228.4 kB / 287.4 MB, free: 2.344 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002758/0.03317, allocations: 258 kB / 287.6 MB, free: 2.09 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002769/0.03345, allocations: 139.9 kB / 287.8 MB, free: 1.941 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0003253/0.03377, allocations: 0.543 MB / 288.3 MB, free: 1.387 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006285/0.0344, allocations: 237.2 kB / 288.5 MB, free: 1.156 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007506/0.03515, allocations: 355.5 kB / 288.9 MB, free: 0.7852 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001135/0.03629, allocations: 492 kB / 289.4 MB, free: 304 kB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.03629, allocations: 0 / 289.4 MB, free: 304 kB / 266.7 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.1077/0.144, allocations: 0.7981 MB / 290.2 MB, free: 27.92 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.315e-05/0.144, allocations: 5.531 kB / 290.2 MB, free: 27.92 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.186e-06/0.144, allocations: 0 / 290.2 MB, free: 27.92 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001102/0.1451, allocations: 421.3 kB / 290.6 MB, free: 27.91 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003816/0.1455, allocations: 84.22 kB / 290.7 MB, free: 27.91 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001198/0.1467, allocations: 1.288 MB / 291.9 MB, free: 27.1 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004432/0.1471, allocations: 48.88 kB / 292 MB, free: 27.1 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.656e-05/0.1472, allocations: 25.09 kB / 292 MB, free: 27.1 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.000211/0.1474, allocations: 216.8 kB / 292.2 MB, free: 26.93 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001513/0.1476, allocations: 70.64 kB / 292.3 MB, free: 26.93 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001668/0.1477, allocations: 62.67 kB / 292.4 MB, free: 26.93 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.735e-06/0.1477, allocations: 7.188 kB / 292.4 MB, free: 26.93 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.99e-06/0.1477, allocations: 0.8125 kB / 292.4 MB, free: 26.93 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.168e-06/0.1478, allocations: 5.078 kB / 292.4 MB, free: 26.93 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003084/0.1508, allocations: 1.562 MB / 293.9 MB, free: 26.21 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.868e-06/0.1508, allocations: 3.406 kB / 293.9 MB, free: 26.21 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003834/0.1512, allocations: 75.53 kB / 294 MB, free: 26.21 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009386/0.1522, allocations: 397.5 kB / 294.4 MB, free: 26.11 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.538e-05/0.1522, allocations: 20.48 kB / 294.4 MB, free: 26.1 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001091/0.1533, allocations: 1.237 MB / 295.7 MB, free: 25.14 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/0.1533, allocations: 12.77 kB / 295.7 MB, free: 25.14 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00231/0.1556, allocations: 1.223 MB / 296.9 MB, free: 24.59 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002724/0.1559, allocations: 109.4 kB / 297 MB, free: 24.54 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001122/0.156, allocations: 23.36 kB / 297 MB, free: 24.52 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003985/0.1564, allocations: 39.89 kB / 297.1 MB, free: 24.52 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002487/0.1567, allocations: 96.38 kB / 297.1 MB, free: 24.5 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.813e-05/0.1567, allocations: 31.58 kB / 297.2 MB, free: 24.49 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002872/0.157, allocations: 254.9 kB / 297.4 MB, free: 24.33 MB / 266.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.157, allocations: 1.312 kB / 297.4 MB, free: 24.33 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000595/0.1576, allocations: 145.9 kB / 297.6 MB, free: 24.31 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.002645/0.1602, allocations: 421 kB / 298 MB, free: 24.18 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001621/0.1619, allocations: 0.6294 MB / 298.6 MB, free: 24 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.1619, allocations: 1.031 kB / 298.6 MB, free: 24 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008297/0.1627, allocations: 373 kB / 299 MB, free: 23.89 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006148/0.1633, allocations: 102.2 kB / 299.1 MB, free: 23.87 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002269/0.1656, allocations: 1.038 MB / 300.1 MB, free: 23.32 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001946/0.1658, allocations: 220.2 kB / 300.3 MB, free: 23.22 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002601/0.166, allocations: 76.56 kB / 300.4 MB, free: 23.2 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000174/0.1662, allocations: 54.05 kB / 300.5 MB, free: 23.18 MB / 266.7 MB Notification: Performance of SimCode: time 1.032e-06/0.1662, allocations: 0 / 300.5 MB, free: 23.18 MB / 266.7 MB Notification: Performance of Templates: time 0.0136/0.1798, allocations: 8.904 MB / 309.4 MB, free: 17.07 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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1) [Timeout 240] 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.84292393992655]