Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001585/0.001585, allocations: 73.64 kB / 21.24 MB, free: 0.5547 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002289/0.002289, allocations: 160 kB / 24.5 MB, free: 3.715 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.439/1.439, allocations: 177.2 MB / 204.9 MB, free: 9.016 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001546/0.001546, allocations: 47.78 kB / 325.6 MB, free: 484 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08884/0.09039, allocations: 53.34 MB / 378.9 MB, free: 15.81 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.004275/0.09466, allocations: 2.683 MB / 381.6 MB, free: 13.12 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002132/0.09679, allocations: 1.225 MB / 382.8 MB, free: 11.89 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001255/0.09692, allocations: 7.938 kB / 382.8 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002927/0.09721, allocations: 99.27 kB / 382.9 MB, free: 11.79 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004994/0.09771, allocations: 211.8 kB / 383.1 MB, free: 11.58 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005258/0.09824, allocations: 263.5 kB / 383.4 MB, free: 11.32 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007562/0.09899, allocations: 0.7133 MB / 384.1 MB, free: 10.61 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001808/0.09917, allocations: 79.98 kB / 384.2 MB, free: 10.52 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004545/0.09963, allocations: 335 kB / 384.5 MB, free: 10.19 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004864/0.1001, allocations: 350.8 kB / 384.8 MB, free: 9.844 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001103/0.1002, allocations: 60 kB / 384.9 MB, free: 9.785 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000274/0.1005, allocations: 159.9 kB / 385 MB, free: 9.629 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002053/0.1007, allocations: 159.6 kB / 385.2 MB, free: 9.473 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002617/0.101, allocations: 238.9 kB / 385.4 MB, free: 9.238 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008283/0.1018, allocations: 0.724 MB / 386.2 MB, free: 8.512 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.1018, allocations: 0 / 386.2 MB, free: 8.512 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1018, allocations: 0 / 386.2 MB, free: 8.512 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.994e-06/0.1018, allocations: 0 / 386.2 MB, free: 8.512 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.001707/0.1035, allocations: 0.7738 MB / 386.9 MB, free: 7.707 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.042e-05/0.1035, allocations: 11.97 kB / 386.9 MB, free: 7.695 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004328/0.104, allocations: 72.62 kB / 387 MB, free: 7.625 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006046/0.1046, allocations: 317.2 kB / 387.3 MB, free: 7.289 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001767/0.1048, allocations: 152.4 kB / 387.5 MB, free: 7.113 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.436e-05/0.1049, allocations: 48.31 kB / 387.5 MB, free: 7.066 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001171/0.106, allocations: 0.5857 MB / 388.1 MB, free: 6.461 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.997e-05/0.106, allocations: 3.938 kB / 388.1 MB, free: 6.457 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.562e-05/0.1061, allocations: 16 kB / 388.1 MB, free: 6.441 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.798e-06/0.1061, allocations: 8 kB / 388.1 MB, free: 6.434 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001404/0.1075, allocations: 0.605 MB / 388.7 MB, free: 5.828 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002463/0.11, allocations: 1.06 MB / 389.8 MB, free: 4.734 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001214/0.1112, allocations: 0.4907 MB / 390.3 MB, free: 4.23 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006432/0.1118, allocations: 278.2 kB / 390.6 MB, free: 3.957 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.177e-05/0.1119, allocations: 4.5 kB / 390.6 MB, free: 3.953 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.188e-05/0.1119, allocations: 47 kB / 390.6 MB, free: 3.898 MB / 350.1 MB Notification: Performance of pre-optimization done (n=62): time 1.913e-06/0.1119, allocations: 0 / 390.6 MB, free: 3.898 MB / 350.1 MB Notification: Performance of matching and sorting (n=70): time 0.007079/0.119, allocations: 2.423 MB / 393 MB, free: 1.43 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.355e-05/0.1191, allocations: 89.7 kB / 393.1 MB, free: 1.324 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004237/0.1195, allocations: 321.8 kB / 393.4 MB, free: 1.004 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.532e-05/0.1195, allocations: 45.69 kB / 393.5 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001307/0.1197, allocations: 173.6 kB / 393.7 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002099/0.1199, allocations: 246 kB / 393.9 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002285/0.1201, allocations: 134.2 kB / 394 MB, free: 404 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001604/0.1203, allocations: 350.7 kB / 394.4 MB, free: 44 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006647/0.1209, allocations: 265.2 kB / 394.6 MB, free: 15.79 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007266/0.1217, allocations: 364.1 kB / 395 MB, free: 15.41 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00117/0.1228, allocations: 499.6 kB / 395.5 MB, free: 14.92 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.983e-06/0.1228, allocations: 0 / 395.5 MB, free: 14.92 MB / 366.1 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.001908/0.1247, allocations: 0.8141 MB / 396.3 MB, free: 14.09 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.791e-05/0.1248, allocations: 7.938 kB / 396.3 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.947e-06/0.1248, allocations: 7.984 kB / 396.3 MB, free: 14.08 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001153/0.1259, allocations: 445 kB / 396.7 MB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004015/0.1263, allocations: 83.88 kB / 396.8 MB, free: 13.56 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001381/0.1277, allocations: 1.027 MB / 397.8 MB, free: 12.51 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00049/0.1282, allocations: 59.98 kB / 397.9 MB, free: 12.45 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.148e-05/0.1283, allocations: 31.98 kB / 397.9 MB, free: 12.42 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.0002469/0.1285, allocations: 180.9 kB / 398.1 MB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001138/0.1286, allocations: 39.77 kB / 398.1 MB, free: 12.2 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001501/0.1288, allocations: 67.73 kB / 398.2 MB, free: 12.13 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.81e-06/0.1288, allocations: 4 kB / 398.2 MB, free: 12.12 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.1288, allocations: 0 / 398.2 MB, free: 12.12 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.729e-06/0.1288, allocations: 11.98 kB / 398.2 MB, free: 12.11 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003354/0.1321, allocations: 1.493 MB / 399.7 MB, free: 10.56 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.41e-06/0.1322, allocations: 4 kB / 399.7 MB, free: 10.56 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004167/0.1326, allocations: 87.97 kB / 399.8 MB, free: 10.47 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001045/0.1336, allocations: 412.5 kB / 400.2 MB, free: 10.07 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.606e-05/0.1337, allocations: 19.98 kB / 400.2 MB, free: 10.05 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001306/0.135, allocations: 0.9797 MB / 401.2 MB, free: 9.043 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/0.135, allocations: 4.031 kB / 401.2 MB, free: 9.039 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002666/0.1376, allocations: 1.2 MB / 402.4 MB, free: 7.816 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002517/0.1379, allocations: 115.7 kB / 402.5 MB, free: 7.703 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.372e-05/0.138, allocations: 19.94 kB / 402.6 MB, free: 7.684 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004764/0.1385, allocations: 56.06 kB / 402.6 MB, free: 7.629 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002118/0.1387, allocations: 92.47 kB / 402.7 MB, free: 7.539 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.936e-05/0.1387, allocations: 27.98 kB / 402.7 MB, free: 7.512 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003174/0.1391, allocations: 237.2 kB / 403 MB, free: 7.281 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1391, allocations: 0 / 403 MB, free: 7.281 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005283/0.1396, allocations: 143.9 kB / 403.1 MB, free: 7.141 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.001488/0.1411, allocations: 421.4 kB / 403.5 MB, free: 6.875 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001656/0.1427, allocations: 0.6352 MB / 404.1 MB, free: 6.242 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.1427, allocations: 3.938 kB / 404.1 MB, free: 6.238 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008949/0.1436, allocations: 348.6 kB / 404.5 MB, free: 5.895 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005336/0.1442, allocations: 68.42 kB / 404.6 MB, free: 5.832 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002778/0.1469, allocations: 1.138 MB / 405.7 MB, free: 4.664 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002398/0.1472, allocations: 225.9 kB / 405.9 MB, free: 4.418 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002569/0.1474, allocations: 87.41 kB / 406 MB, free: 4.332 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001664/0.1476, allocations: 48.47 kB / 406 MB, free: 4.285 MB / 366.1 MB Notification: Performance of SimCode: time 4.3e-07/0.1476, allocations: 0 / 406 MB, free: 4.285 MB / 366.1 MB Notification: Performance of Templates: time 0.01612/0.1637, allocations: 8.863 MB / 414.9 MB, free: 11.46 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2 -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_4.1.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: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.57524083298631]