Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.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.001359/0.001359, allocations: 84.95 kB / 20.68 MB, free: 1.035 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.001423/0.001423, allocations: 158.2 kB / 23.95 MB, free: 4.168 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.458/1.458, allocations: 177 MB / 204.1 MB, free: 9.188 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.SimpleGearShift,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|clutch.phi_rel|clutch.w_rel|engine.phi|engine.w|load.phi|load.w|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") translateModel(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|clutch.phi_rel|clutch.w_rel|engine.phi|engine.w|load.phi|load.w|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.543e-06/1.543e-06, allocations: 0 / 325 MB, free: 0.5117 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.751e-05/1.906e-05, allocations: 2.281 kB / 325 MB, free: 0.5078 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.004197/0.004216, allocations: 2.783 MB / 327.8 MB, free: 14.64 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001932/0.006148, allocations: 1.011 MB / 328.8 MB, free: 13.95 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001478/0.006296, allocations: 6.594 kB / 328.8 MB, free: 13.95 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002962/0.006592, allocations: 77.92 kB / 328.9 MB, free: 13.9 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000397/0.006989, allocations: 169.9 kB / 329 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004281/0.007417, allocations: 191 kB / 329.2 MB, free: 13.69 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007114/0.008128, allocations: 0.6144 MB / 329.9 MB, free: 13.39 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001843/0.008313, allocations: 73.16 kB / 329.9 MB, free: 13.35 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005031/0.008816, allocations: 368.4 kB / 330.3 MB, free: 13.2 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003849/0.009201, allocations: 239.6 kB / 330.5 MB, free: 13.1 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.94e-05/0.00929, allocations: 47.31 kB / 330.6 MB, free: 13.1 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000206/0.009496, allocations: 108.1 kB / 330.7 MB, free: 13.07 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001921/0.009688, allocations: 128.8 kB / 330.8 MB, free: 12.96 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000215/0.009903, allocations: 161.7 kB / 331 MB, free: 12.87 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007551/0.01066, allocations: 0.6341 MB / 331.6 MB, free: 12.39 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.966e-06/0.01066, allocations: 0 / 331.6 MB, free: 12.39 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.42e-07/0.01066, allocations: 0 / 331.6 MB, free: 12.39 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.512e-06/0.01067, allocations: 0 / 331.6 MB, free: 12.39 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.001566/0.01223, allocations: 0.7106 MB / 332.3 MB, free: 11.82 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.39e-05/0.01227, allocations: 13.58 kB / 332.3 MB, free: 11.82 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001203/0.01239, allocations: 46.66 kB / 332.4 MB, free: 11.79 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000482/0.01287, allocations: 261.6 kB / 332.6 MB, free: 11.55 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.923e-05/0.01291, allocations: 28.41 kB / 332.6 MB, free: 11.54 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.13e-05/0.01299, allocations: 39.94 kB / 332.7 MB, free: 11.52 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009607/0.01395, allocations: 441.7 kB / 333.1 MB, free: 11.25 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.214e-05/0.01397, allocations: 5.297 kB / 333.1 MB, free: 11.25 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.666e-05/0.01403, allocations: 20.17 kB / 333.1 MB, free: 11.23 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.158e-05/0.01404, allocations: 11.66 kB / 333.1 MB, free: 11.23 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001135/0.01518, allocations: 446.3 kB / 333.6 MB, free: 11 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002554/0.01773, allocations: 1.066 MB / 334.6 MB, free: 10.21 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009491/0.01868, allocations: 373.9 kB / 335 MB, free: 10.01 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005435/0.01922, allocations: 235.2 kB / 335.2 MB, free: 9.883 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.542e-05/0.01927, allocations: 6.188 kB / 335.2 MB, free: 9.883 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.465e-05/0.0193, allocations: 37.97 kB / 335.3 MB, free: 9.84 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 2.024e-06/0.01931, allocations: 0 / 335.3 MB, free: 9.84 MB / 302.1 MB Notification: Performance of matching and sorting (n=54): time 0.006051/0.02536, allocations: 1.962 MB / 337.2 MB, free: 8.676 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.433e-05/0.02542, allocations: 59.84 kB / 337.3 MB, free: 8.605 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003126/0.02573, allocations: 261.8 kB / 337.6 MB, free: 8.344 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.657e-05/0.0258, allocations: 45.7 kB / 337.6 MB, free: 8.293 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001418/0.02594, allocations: 168.9 kB / 337.8 MB, free: 8.125 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001799/0.02612, allocations: 190.4 kB / 338 MB, free: 7.938 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002204/0.02634, allocations: 94.33 kB / 338 MB, free: 7.84 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001809/0.02652, allocations: 350.7 kB / 338.4 MB, free: 7.488 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005584/0.02708, allocations: 229.2 kB / 338.6 MB, free: 7.266 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006349/0.02772, allocations: 284.1 kB / 338.9 MB, free: 6.969 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009056/0.02862, allocations: 399 kB / 339.3 MB, free: 6.562 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.02862, allocations: 4 kB / 339.3 MB, free: 6.559 MB / 302.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001863/0.03049, allocations: 0.7144 MB / 340 MB, free: 5.824 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.406e-05/0.03051, allocations: 11.94 kB / 340 MB, free: 5.812 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.813e-06/0.03052, allocations: 0 / 340 MB, free: 5.812 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001192/0.03171, allocations: 426.3 kB / 340.4 MB, free: 5.387 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002917/0.032, allocations: 75.83 kB / 340.5 MB, free: 5.312 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003451/0.03545, allocations: 3.394 MB / 343.9 MB, free: 1.684 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005799/0.03603, allocations: 76.22 kB / 344 MB, free: 1.609 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.48e-05/0.03609, allocations: 16 kB / 344 MB, free: 1.594 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 16 (brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,clutch.mode,$PRE.clutch.mode,clutch.locked,clutch.startBackward,$PRE.clutch.startBackward,clutch.startForward,$PRE.clutch.startForward,clutch.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (44): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,21)} Notification: Performance of prepare postOptimizeDAE: time 0.0002619/0.03635, allocations: 170.9 kB / 344.2 MB, free: 1.418 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001084/0.03646, allocations: 35.77 kB / 344.2 MB, free: 1.383 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001878/0.03833, allocations: 0.7068 MB / 344.9 MB, free: 0.6562 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.003e-05/0.03834, allocations: 8 kB / 344.9 MB, free: 0.6484 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.745e-06/0.03835, allocations: 0 / 344.9 MB, free: 0.6484 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.456e-06/0.03836, allocations: 3.984 kB / 344.9 MB, free: 0.6445 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00256/0.04092, allocations: 1.109 MB / 346 MB, free: 15.49 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.751e-06/0.04092, allocations: 3.938 kB / 346 MB, free: 15.48 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003047/0.04123, allocations: 59.91 kB / 346.1 MB, free: 15.43 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001095/0.04232, allocations: 412.2 kB / 346.5 MB, free: 15.02 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.994e-05/0.04237, allocations: 19.92 kB / 346.5 MB, free: 15 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00336/0.04573, allocations: 3.359 MB / 349.9 MB, free: 11.41 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.04573, allocations: 0 / 349.9 MB, free: 11.41 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002359/0.04809, allocations: 1.012 MB / 350.9 MB, free: 10.38 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002167/0.04831, allocations: 83.73 kB / 351 MB, free: 10.3 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001043/0.04841, allocations: 27.92 kB / 351 MB, free: 10.27 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005424/0.04895, allocations: 68 kB / 351 MB, free: 10.2 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000246/0.0492, allocations: 100.2 kB / 351.1 MB, free: 10.11 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.444e-05/0.04925, allocations: 23.97 kB / 351.2 MB, free: 10.08 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002173/0.04947, allocations: 185.2 kB / 351.3 MB, free: 9.902 MB / 318.1 MB Notification: Performance of sort global known variables: time 9e-08/0.04947, allocations: 0 / 351.3 MB, free: 9.902 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005384/0.05001, allocations: 120 kB / 351.5 MB, free: 9.785 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (load.w,quadraticSpeedDependentTorque.phi,clutch.phi_rel,clutch.w_rel) * Number of discrete variables: 10 (clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode) * Number of discrete states: 6 (clutch.mode,clutch.startBackward,brake.mode,brake.startBackward,brake.startForward,clutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,21)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001523/0.05153, allocations: 403.5 kB / 351.9 MB, free: 9.516 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001738/0.05327, allocations: 0.7559 MB / 352.6 MB, free: 8.73 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.05327, allocations: 3.938 kB / 352.6 MB, free: 8.727 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00102/0.05429, allocations: 0.5145 MB / 353.1 MB, free: 8.188 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006185/0.05491, allocations: 72.34 kB / 353.2 MB, free: 8.117 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002057/0.05697, allocations: 0.9127 MB / 354.1 MB, free: 7.18 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002178/0.05719, allocations: 212.2 kB / 354.3 MB, free: 6.941 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001449/0.05733, allocations: 35.27 kB / 354.4 MB, free: 6.906 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001135/0.05745, allocations: 36.48 kB / 354.4 MB, free: 6.871 MB / 318.1 MB Notification: Performance of SimCode: time 3.61e-07/0.05745, allocations: 0 / 354.4 MB, free: 6.871 MB / 318.1 MB Notification: Performance of Templates: time 0.01619/0.07364, allocations: 8.772 MB / 363.2 MB, free: 14.18 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/SimpleGearShift/SimpleGearShift.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.741105321794748]